From 70e382e56d48521cd3b630208b4edce7f1963341 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:44:45 +0000 Subject: [PATCH] Bump github.com/vultr/govultr/v3 from 3.8.1 to 3.9.1 Bumps [github.com/vultr/govultr/v3](https://github.com/vultr/govultr) from 3.8.1 to 3.9.1. - [Release notes](https://github.com/vultr/govultr/releases) - [Changelog](https://github.com/vultr/govultr/blob/master/CHANGELOG.md) - [Commits](https://github.com/vultr/govultr/compare/v3.8.1...v3.9.1) --- updated-dependencies: - dependency-name: github.com/vultr/govultr/v3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- .../github.com/vultr/govultr/v3/CHANGELOG.md | 11 + vendor/github.com/vultr/govultr/v3/cdn.go | 376 ++++++++++++++++++ .../github.com/vultr/govultr/v3/database.go | 26 +- vendor/github.com/vultr/govultr/v3/govultr.go | 4 +- vendor/modules.txt | 2 +- 7 files changed, 419 insertions(+), 6 deletions(-) create mode 100644 vendor/github.com/vultr/govultr/v3/cdn.go diff --git a/go.mod b/go.mod index ab407b1e..f3f47328 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 github.com/spf13/pflag v1.0.5 - github.com/vultr/govultr/v3 v3.8.1 + github.com/vultr/govultr/v3 v3.9.1 github.com/vultr/metadata v1.1.0 golang.org/x/oauth2 v0.18.0 k8s.io/api v0.28.2 diff --git a/go.sum b/go.sum index 52349567..484d903a 100644 --- a/go.sum +++ b/go.sum @@ -191,8 +191,8 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7otjonDflCTK0BCfls4SPy3NcCVb5dqqmbRknE= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75/go.mod h1:KO6IkyS8Y3j8OdNO85qEYBsRPuteD+YciPomcXdrMnk= -github.com/vultr/govultr/v3 v3.8.1 h1:vBcXOA1BjFmo5D4ZPLOD1PVGfFEOgTCUpgedbhB7/Ig= -github.com/vultr/govultr/v3 v3.8.1/go.mod h1:Rd8ebpXm7jxH3MDmhnEs+zrlYW212ouhx+HeUMfHm2o= +github.com/vultr/govultr/v3 v3.9.1 h1:uxSIb8Miel7tqTs3ee+z3t+JelZikwqBBsZzCOPBy/8= +github.com/vultr/govultr/v3 v3.9.1/go.mod h1:Rd8ebpXm7jxH3MDmhnEs+zrlYW212ouhx+HeUMfHm2o= github.com/vultr/metadata v1.1.0 h1:RUjCnH5Mdlz7uuyfb1jOZNkU72zl/HwK76jLzVFdiOo= github.com/vultr/metadata v1.1.0/go.mod h1:4yocaI6h2EFJzwN0m1KnnC/vDCx2axIqnyxmtF/LWoQ= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= diff --git a/vendor/github.com/vultr/govultr/v3/CHANGELOG.md b/vendor/github.com/vultr/govultr/v3/CHANGELOG.md index 1380e94d..71ac9ae5 100644 --- a/vendor/github.com/vultr/govultr/v3/CHANGELOG.md +++ b/vendor/github.com/vultr/govultr/v3/CHANGELOG.md @@ -1,4 +1,15 @@ # Change Log +## [3.9.1](https://github.com/vultr/govultr/compare/v3.9.0...v3.9.1) (2024-08-13) +### Enhancements +* Database: Add support for Managed MySQL advanced config [PR 322](https://github.com/vultr/govultr/pull/322) + +### Bug Fixes +* CDN: Fix http method used on push zone file delete [PR 321](https://github.com/vultr/govultr/pull/321) + +## [3.9.0](https://github.com/vultr/govultr/compare/v3.8.1...v3.9.0) (2024-06-30) +### Enhancements +* CDN: Full support added [PR 319](https://github.com/vultr/govultr/pull/319) + ## [3.8.1](https://github.com/vultr/govultr/compare/v3.8.0...v3.8.1) (2023-06-06) ### Automation * Update goreleaser github action from v2 to v6 [PR 317](https://github.com/vultr/govultr/pull/317) diff --git a/vendor/github.com/vultr/govultr/v3/cdn.go b/vendor/github.com/vultr/govultr/v3/cdn.go new file mode 100644 index 00000000..1b19ced5 --- /dev/null +++ b/vendor/github.com/vultr/govultr/v3/cdn.go @@ -0,0 +1,376 @@ +package govultr + +import ( + "context" + "fmt" + "net/http" +) + +const cdnPath string = "/v2/cdns" + +var ( + cdnPullPath string = fmt.Sprintf("%s/pull-zones", cdnPath) + cdnPushPath string = fmt.Sprintf("%s/push-zones", cdnPath) +) + +// CDNService is the interface to interact with the CDN endpoints on the Vultr API +// Link : https://www.vultr.com/api/#tag/CDNs +type CDNService interface { + ListPullZones(ctx context.Context) ([]CDNZone, *Meta, *http.Response, error) + GetPullZone(ctx context.Context, zoneID string) (*CDNZone, *http.Response, error) + CreatePullZone(ctx context.Context, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) + UpdatePullZone(ctx context.Context, zoneID string, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) + DeletePullZone(ctx context.Context, zoneID string) error + PurgePullZone(ctx context.Context, zoneID string) error + + ListPushZones(ctx context.Context) ([]CDNZone, *Meta, *http.Response, error) + GetPushZone(ctx context.Context, zoneID string) (*CDNZone, *http.Response, error) + CreatePushZone(ctx context.Context, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) + UpdatePushZone(ctx context.Context, zoneID string, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) + DeletePushZone(ctx context.Context, zoneID string) error + + ListPushZoneFiles(ctx context.Context, zoneID string) (*CDNZoneFileData, *http.Response, error) + GetPushZoneFile(ctx context.Context, zoneID, fileName string) (*CDNZoneFile, *http.Response, error) + DeletePushZoneFile(ctx context.Context, zoneID, fileName string) error + CreatePushZoneFileEndpoint(ctx context.Context, zoneID string, endpointReq *CDNZoneEndpointReq) (*CDNZoneEndpoint, *http.Response, error) //nolint:lll +} + +// CDNZone represents the CDN push/pull zone data +type CDNZone struct { + ID string `json:"id"` + DateCreated string `json:"date_created"` + Status string `json:"status"` + Label string `json:"label"` + OriginScheme string `json:"origin_scheme,omitempty"` + OriginDomain string `json:"origin_domain,omitempty"` + CDNURL string `json:"cdn_url"` + CacheSize int `json:"cache_size"` + Requests int `json:"requests"` + BytesIn int `json:"in_bytes"` + BytesOut int `json:"out_bytes"` + PacketsPerSec int `json:"packets_per_sec"` + DatePurged string `json:"last_purge,omitempty"` + CORS bool `json:"cors"` + GZIP bool `json:"gzip"` + BlockAI bool `json:"block_ai"` + BlockBadBots bool `json:"block_bad_bots"` + Regions []string `json:"regions"` +} + +// CDNZoneReq is the data used to create a push/pull zone +type CDNZoneReq struct { + Label string `json:"label"` + OriginScheme string `json:"origin_scheme,omitempty"` + OriginDomain string `json:"origin_domain,omitempty"` + CORS bool `json:"cors"` + GZIP bool `json:"gzip"` + BlockAI bool `json:"block_ai"` + BlockBadBots bool `json:"block_bad_bots"` + Regions []string `json:"regions,omitempty"` +} + +// CDNZoneFileData represents the push zone files and metadata +type CDNZoneFileData struct { + Files []CDNZoneFile `json:"files"` + Count int `json:"count"` + Size int `json:"total_size"` +} + +// CDNZoneFile is the data for a push zone file +type CDNZoneFile struct { + Name string `json:"name"` + Size int `json:"size"` + DateModified string `json:"last_modified"` +} + +// CDNZoneEndpointReq is the data used to create a push zone upload endpoint +type CDNZoneEndpointReq struct { + Name string `json:"name"` + Size int `json:"size"` +} + +// CDNZoneEndpoint is the data for a push zone file endpoint +type CDNZoneEndpoint struct { + URL string `json:"url"` + Inputs CDNZoneEndpointInputs `json:"inputs"` +} + +// CDNZoneEndpointInputs is the data for push zone file endpoint inputs +type CDNZoneEndpointInputs struct { + ACL string `json:"acl"` + Key string `json:"key"` + Policy string `json:"policy"` + Credential string `json:"x-amz-credential"` + Algorithm string `json:"x-amz-algorithm"` + Signature string `json:"x-amz-signature"` +} + +type cdnPullZonesBase struct { + PullZones []CDNZone `json:"pull_zones"` + Meta *Meta `json:"meta"` +} + +type cdnPullZoneBase struct { + PullZone CDNZone `json:"pull_zone"` +} + +type cdnPushZonesBase struct { + PushZones []CDNZone `json:"push_zones"` + Meta *Meta `json:"meta"` +} + +type cdnPushZoneBase struct { + PushZone CDNZone `json:"push_zone"` +} + +type cdnPushZoneEndpointBase struct { + Endpoint CDNZoneEndpoint `json:"upload_endpoint"` +} + +// CDNServiceHandler handles interaction with the CDN methods for the Vultr API +type CDNServiceHandler struct { + client *Client +} + +// ListPullZones will retrieve a CDN pull zone +func (c *CDNServiceHandler) ListPullZones(ctx context.Context) ([]CDNZone, *Meta, *http.Response, error) { + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnPullPath, nil) + if err != nil { + return nil, nil, nil, err + } + + zones := new(cdnPullZonesBase) + resp, err := c.client.DoWithContext(ctx, req, &zones) + if err != nil { + return nil, nil, resp, err + } + + return zones.PullZones, zones.Meta, resp, nil +} + +// GetPullZone will retrieve data for a CDN pull zone +func (c *CDNServiceHandler) GetPullZone(ctx context.Context, zoneID string) (*CDNZone, *http.Response, error) { + cdnPullGetPath := fmt.Sprintf("%s/%s", cdnPullPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnPullGetPath, nil) + if err != nil { + return nil, nil, err + } + + zone := new(cdnPullZoneBase) + resp, err := c.client.DoWithContext(ctx, req, &zone) + if err != nil { + return nil, resp, err + } + + return &zone.PullZone, resp, nil +} + +// CreatePullZone will create a new CDN pull zone +func (c *CDNServiceHandler) CreatePullZone(ctx context.Context, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) { + req, err := c.client.NewRequest(ctx, http.MethodPost, cdnPullPath, zoneReq) + if err != nil { + return nil, nil, err + } + + zone := new(cdnPullZoneBase) + resp, err := c.client.DoWithContext(ctx, req, &zone) + if err != nil { + return nil, resp, err + } + + return &zone.PullZone, resp, nil +} + +// UpdatePullZone will update an existing CDN pull zone +func (c *CDNServiceHandler) UpdatePullZone(ctx context.Context, zoneID string, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) { //nolint:dupl,lll + cndPullUpdatePath := fmt.Sprintf("%s/%s", cdnPullPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodPut, cndPullUpdatePath, zoneReq) + if err != nil { + return nil, nil, err + } + + zone := new(cdnPullZoneBase) + resp, err := c.client.DoWithContext(ctx, req, &zone) + if err != nil { + return nil, resp, err + } + + return &zone.PullZone, resp, nil +} + +// DeletePullZone will delete a CDN pull zone +func (c *CDNServiceHandler) DeletePullZone(ctx context.Context, zoneID string) error { + cdnPullDeletePath := fmt.Sprintf("%s/%s", cdnPullPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodDelete, cdnPullDeletePath, nil) + if err != nil { + return err + } + + _, err = c.client.DoWithContext(ctx, req, nil) + if err != nil { + return err + } + + return nil +} + +// PurgePullZone will clear the cache on a CDN pull zone +func (c *CDNServiceHandler) PurgePullZone(ctx context.Context, zoneID string) error { + cdnPullPurgePath := fmt.Sprintf("%s/%s", cdnPullPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnPullPurgePath, nil) + if err != nil { + return err + } + + _, err = c.client.DoWithContext(ctx, req, nil) + if err != nil { + return err + } + + return nil +} + +// ListPushZones will retrieve a CDN push zone +func (c *CDNServiceHandler) ListPushZones(ctx context.Context) ([]CDNZone, *Meta, *http.Response, error) { + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnPushPath, nil) + if err != nil { + return nil, nil, nil, err + } + + zones := new(cdnPushZonesBase) + resp, err := c.client.DoWithContext(ctx, req, &zones) + if err != nil { + return nil, nil, resp, err + } + + return zones.PushZones, zones.Meta, resp, nil +} + +// GetPushZone will retrieve data for a CDN push zone +func (c *CDNServiceHandler) GetPushZone(ctx context.Context, zoneID string) (*CDNZone, *http.Response, error) { + cdnPushGetPath := fmt.Sprintf("%s/%s", cdnPushPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnPushGetPath, nil) + if err != nil { + return nil, nil, err + } + + zone := new(cdnPushZoneBase) + resp, err := c.client.DoWithContext(ctx, req, &zone) + if err != nil { + return nil, resp, err + } + + return &zone.PushZone, resp, nil +} + +// CreatePushZone will create a new CDN push zone +func (c *CDNServiceHandler) CreatePushZone(ctx context.Context, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) { + req, err := c.client.NewRequest(ctx, http.MethodPost, cdnPushPath, zoneReq) + if err != nil { + return nil, nil, err + } + + zone := new(cdnPushZoneBase) + resp, err := c.client.DoWithContext(ctx, req, &zone) + if err != nil { + return nil, resp, err + } + + return &zone.PushZone, resp, nil +} + +// UpdatePushZone will update an existing CDN push zone +func (c *CDNServiceHandler) UpdatePushZone(ctx context.Context, zoneID string, zoneReq *CDNZoneReq) (*CDNZone, *http.Response, error) { //nolint:dupl,lll + cndPushUpdatePath := fmt.Sprintf("%s/%s", cdnPushPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodPut, cndPushUpdatePath, zoneReq) + if err != nil { + return nil, nil, err + } + + zone := new(cdnPushZoneBase) + resp, err := c.client.DoWithContext(ctx, req, &zone) + if err != nil { + return nil, resp, err + } + + return &zone.PushZone, resp, nil +} + +// DeletePushZone will delete a CDN push zone +func (c *CDNServiceHandler) DeletePushZone(ctx context.Context, zoneID string) error { + cdnPushDeletePath := fmt.Sprintf("%s/%s", cdnPushPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodDelete, cdnPushDeletePath, nil) + if err != nil { + return err + } + + _, err = c.client.DoWithContext(ctx, req, nil) + if err != nil { + return err + } + + return nil +} + +// CreatePushZoneFileEndpoint will create a new CDN push zone file upload +// endpoint +func (c *CDNServiceHandler) CreatePushZoneFileEndpoint(ctx context.Context, zoneID string, zoneEndpointReq *CDNZoneEndpointReq) (*CDNZoneEndpoint, *http.Response, error) { //nolint:lll,dupl + cdnPushEnpointPath := fmt.Sprintf("%s/%s/files", cdnPushPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodPost, cdnPushEnpointPath, zoneEndpointReq) + if err != nil { + return nil, nil, err + } + + endpoint := new(cdnPushZoneEndpointBase) + resp, err := c.client.DoWithContext(ctx, req, &endpoint) + if err != nil { + return nil, resp, err + } + + return &endpoint.Endpoint, resp, nil +} + +// ListPushZoneFiles will retrieve all CDN push zone file data that have been +// uploaded +func (c *CDNServiceHandler) ListPushZoneFiles(ctx context.Context, zoneID string) (*CDNZoneFileData, *http.Response, error) { + cdnPushFilesPath := fmt.Sprintf("%s/%s", cdnPushPath, zoneID) + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnPushFilesPath, nil) + if err != nil { + return nil, nil, err + } + + fd := new(CDNZoneFileData) + resp, err := c.client.DoWithContext(ctx, req, &fd) + if err != nil { + return nil, resp, err + } + + return fd, resp, nil +} + +// GetPushZoneFile will retrieve data on a file in a CDN push zone +func (c *CDNServiceHandler) GetPushZoneFile(ctx context.Context, zoneID, fileName string) (*CDNZoneFile, *http.Response, error) { + cdnFileGetPath := fmt.Sprintf("%s/%s/files/%s", cdnPushPath, zoneID, fileName) + req, err := c.client.NewRequest(ctx, http.MethodGet, cdnFileGetPath, nil) + if err != nil { + return nil, nil, err + } + + file := new(CDNZoneFile) + resp, err := c.client.DoWithContext(ctx, req, &file) + if err != nil { + return nil, resp, err + } + + return file, resp, nil +} + +// DeletePushZoneFile delete a file in a CDN push zone +func (c *CDNServiceHandler) DeletePushZoneFile(ctx context.Context, zoneID, fileName string) error { + cdnFileDelPath := fmt.Sprintf("%s/%s/files/%s", cdnPushPath, zoneID, fileName) + if _, err := c.client.NewRequest(ctx, http.MethodDelete, cdnFileDelPath, nil); err != nil { + return err + } + + return nil +} diff --git a/vendor/github.com/vultr/govultr/v3/database.go b/vendor/github.com/vultr/govultr/v3/database.go index b1df5368..8952949e 100644 --- a/vendor/github.com/vultr/govultr/v3/database.go +++ b/vendor/github.com/vultr/govultr/v3/database.go @@ -463,7 +463,7 @@ type DatabaseConnectionPoolUpdateReq struct { Size int `json:"size,omitempty"` } -// DatabaseAdvancedOptions represents user configurable advanced options within a PostgreSQL Managed Database cluster +// DatabaseAdvancedOptions represents user configurable advanced options within a MySQL/PostgreSQL Managed Database cluster type DatabaseAdvancedOptions struct { AutovacuumAnalyzeScaleFactor float32 `json:"autovacuum_analyze_scale_factor,omitempty"` AutovacuumAnalyzeThreshold int `json:"autovacuum_analyze_threshold,omitempty"` @@ -478,15 +478,33 @@ type DatabaseAdvancedOptions struct { BGWRITERFlushAFter int `json:"bgwriter_flush_after,omitempty"` BGWRITERLRUMaxPages int `json:"bgwriter_lru_maxpages,omitempty"` BGWRITERLRUMultiplier float32 `json:"bgwriter_lru_multiplier,omitempty"` + ConnectTimeout int `json:"connect_timeout,omitempty"` DeadlockTimeout int `json:"deadlock_timeout,omitempty"` DefaultToastCompression string `json:"default_toast_compression,omitempty"` + GroupConcatMaxLen int `json:"group_concat_max_len,omitempty"` IdleInTransactionSessionTimeout int `json:"idle_in_transaction_session_timeout,omitempty"` + InnoDBChangeBufferMaxSize int `json:"innodb_change_buffer_max_size,omitempty"` + InnoDBFlushNeighbors int `json:"innodb_flush_neighbors,omitempty"` + InnoDBFTMinTokenSize int `json:"innodb_ft_min_token_size,omitempty"` + InnoDBFTServerStopwordTable string `json:"innodb_ft_server_stopword_table,omitempty"` + InnoDBLockWaitTimeout int `json:"innodb_lock_wait_timeout,omitempty"` + InnoDBLogBufferSize int `json:"innodb_log_buffer_size,omitempty"` + InnoDBOnlineAlterLogMaxSize int `json:"innodb_online_alter_log_max_size,omitempty"` + InnoDBPrintAllDeadlocks *bool `json:"innodb_print_all_deadlocks,omitempty"` + InnoDBReadIOThreads int `json:"innodb_read_io_threads,omitempty"` + InnoDBRollbackOnTimeout *bool `json:"innodb_rollback_on_timeout,omitempty"` + InnoDBThreadConcurrency int `json:"innodb_thread_concurrency,omitempty"` + InnoDBWriteIOThreads int `json:"innodb_write_io_threads,omitempty"` + InteractiveTimeout int `json:"interactive_timeout,omitempty"` + InternalTmpMemStorageEngine string `json:"internal_tmp_mem_storage_engine,omitempty"` Jit *bool `json:"jit,omitempty"` LogAutovacuumMinDuration int `json:"log_autovacuum_min_duration,omitempty"` LogErrorVerbosity string `json:"log_error_verbosity,omitempty"` LogLinePrefix string `json:"log_line_prefix,omitempty"` LogMinDurationStatement int `json:"log_min_duration_statement,omitempty"` + MaxAllowedPacket int `json:"max_allowed_packet,omitempty"` MaxFilesPerProcess int `json:"max_files_per_process,omitempty"` + MaxHeapTableSize int `json:"max_heap_table_size,omitempty"` MaxLocksPerTransaction int `json:"max_locks_per_transaction,omitempty"` MaxLogicalReplicationWorkers int `json:"max_logical_replication_workers,omitempty"` MaxParallelWorkers int `json:"max_parallel_workers,omitempty"` @@ -499,14 +517,20 @@ type DatabaseAdvancedOptions struct { MaxStandbyStreamingDelay int `json:"max_standby_streaming_delay,omitempty"` MaxWalSenders int `json:"max_wal_senders,omitempty"` MaxWorkerProcesses int `json:"max_worker_processes,omitempty"` + NetBufferLength int `json:"net_buffer_length,omitempty"` + NetReadTimeout int `json:"net_read_timeout,omitempty"` + NetWriteTimeout int `json:"net_write_timeout,omitempty"` PGPartmanBGWInterval int `json:"pg_partman_bgw.interval,omitempty"` PGPartmanBGWRole string `json:"pg_partman_bgw.role,omitempty"` PGStateStatementsTrack string `json:"pg_stat_statements.track,omitempty"` + SortBufferSize int `json:"sort_buffer_size,omitempty"` TempFileLimit int `json:"temp_file_limit,omitempty"` + TmpTableSize int `json:"tmp_table_size,omitempty"` TrackActivityQuerySize int `json:"track_activity_query_size,omitempty"` TrackCommitTimestamp string `json:"track_commit_timestamp,omitempty"` TrackFunctions string `json:"track_functions,omitempty"` TrackIOTiming string `json:"track_io_timing,omitempty"` + WaitTimeout int `json:"wait_timeout,omitempty"` WALSenderTImeout int `json:"wal_sender_timeout,omitempty"` WALWriterDelay int `json:"wal_writer_delay,omitempty"` } diff --git a/vendor/github.com/vultr/govultr/v3/govultr.go b/vendor/github.com/vultr/govultr/v3/govultr.go index e2bc3e65..4d8af5d6 100644 --- a/vendor/github.com/vultr/govultr/v3/govultr.go +++ b/vendor/github.com/vultr/govultr/v3/govultr.go @@ -19,7 +19,7 @@ import ( ) const ( - version = "3.8.1" + version = "3.9.1" defaultBase = "https://api.vultr.com" userAgent = "govultr/" + version rateLimit = 500 * time.Millisecond @@ -47,6 +47,7 @@ type Client struct { BareMetalServer BareMetalServerService Billing BillingService BlockStorage BlockStorageService + CDN CDNService ContainerRegistry ContainerRegistryService Database DatabaseService Domain DomainService @@ -122,6 +123,7 @@ func NewClient(httpClient *http.Client) *Client { client.Billing = &BillingServiceHandler{client} client.BlockStorage = &BlockStorageServiceHandler{client} client.ContainerRegistry = &ContainerRegistryServiceHandler{client} + client.CDN = &CDNServiceHandler{client} client.Database = &DatabaseServiceHandler{client} client.Domain = &DomainServiceHandler{client} client.DomainRecord = &DomainRecordsServiceHandler{client} diff --git a/vendor/modules.txt b/vendor/modules.txt index ed67f89b..0931f781 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -204,7 +204,7 @@ github.com/spf13/pflag # github.com/stoewer/go-strcase v1.3.0 ## explicit; go 1.11 github.com/stoewer/go-strcase -# github.com/vultr/govultr/v3 v3.8.1 +# github.com/vultr/govultr/v3 v3.9.1 ## explicit; go 1.21 github.com/vultr/govultr/v3 # github.com/vultr/metadata v1.1.0