diff --git a/go.mod b/go.mod index 3da86911..9b495fe1 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.3 github.com/hashicorp/go-multierror v1.1.1 - github.com/hetznercloud/hcloud-go/v2 v2.43.0 + github.com/hetznercloud/hcloud-go/v2 v2.44.0 github.com/jackc/pgx/v5 v5.10.0 github.com/johannesboyne/gofakes3 v0.0.0-20260208201424-4c385a1f6a73 github.com/lestrrat-go/jwx/v4 v4.0.2 diff --git a/go.sum b/go.sum index 20dae804..98d3b07e 100644 --- a/go.sum +++ b/go.sum @@ -250,6 +250,8 @@ github.com/hetznercloud/hcloud-go/v2 v2.41.2 h1:fO5zsMgp5oejrtnFj8mYuqlp+iMuirpa github.com/hetznercloud/hcloud-go/v2 v2.41.2/go.mod h1:9OGvC//jbHE4sv2Oyo0bQ2vEWuUMKYoNMyj9Qxz2qcc= github.com/hetznercloud/hcloud-go/v2 v2.43.0 h1:soqEUxJJqbf8UICQmDXfUwY/khfROAk0fi1s0bnBtd8= github.com/hetznercloud/hcloud-go/v2 v2.43.0/go.mod h1:d0s2WLe7jSoStamv3eHoWgBSOxc/K17tYSXsqUkbse0= +github.com/hetznercloud/hcloud-go/v2 v2.44.0 h1:1p9qwaZ/H55nLP9c7WfuwUA0LfsexS2YHOhD8+iBga8= +github.com/hetznercloud/hcloud-go/v2 v2.44.0/go.mod h1:d0s2WLe7jSoStamv3eHoWgBSOxc/K17tYSXsqUkbse0= github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= diff --git a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/client.go b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/client.go index 6aca929a..5b34e01e 100644 --- a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/client.go +++ b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/client.go @@ -103,7 +103,6 @@ type Client struct { Action ActionClient Certificate CertificateClient - Datacenter DatacenterClient Firewall FirewallClient FloatingIP FloatingIPClient Image ImageClient @@ -123,6 +122,10 @@ type Client struct { PrimaryIP PrimaryIPClient StorageBoxType StorageBoxTypeClient Zone ZoneClient + + // Deprecated: [DatacenterClient] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. + Datacenter DatacenterClient } // A ClientOption is used to configure a Client. diff --git a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/datacenter.go b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/datacenter.go index bbd87dfa..94eac56d 100644 --- a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/datacenter.go +++ b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/datacenter.go @@ -11,6 +11,9 @@ import ( ) // Datacenter represents a datacenter in the Hetzner Cloud. +// +// Deprecated: [Datacenter] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. type Datacenter struct { ID int64 Name string @@ -33,11 +36,17 @@ type DatacenterServerTypes struct { } // DatacenterClient is a client for the datacenter API. +// +// Deprecated: [DatacenterClient] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. type DatacenterClient struct { client *Client } // GetByID retrieves a datacenter by its ID. If the datacenter does not exist, nil is returned. +// +// Deprecated: [DatacenterClient.GetByID] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. func (c *DatacenterClient) GetByID(ctx context.Context, id int64) (*Datacenter, *Response, error) { const opPath = "/datacenters/%d" ctx = ctxutil.SetOpPath(ctx, opPath) @@ -56,6 +65,9 @@ func (c *DatacenterClient) GetByID(ctx context.Context, id int64) (*Datacenter, } // GetByName retrieves a datacenter by its name. If the datacenter does not exist, nil is returned. +// +// Deprecated: [DatacenterClient.GetByName] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. func (c *DatacenterClient) GetByName(ctx context.Context, name string) (*Datacenter, *Response, error) { return firstByName(name, func() ([]*Datacenter, *Response, error) { return c.List(ctx, DatacenterListOpts{Name: name}) @@ -64,6 +76,9 @@ func (c *DatacenterClient) GetByName(ctx context.Context, name string) (*Datacen // Get retrieves a datacenter by its ID if the input can be parsed as an integer, otherwise it // retrieves a datacenter by its name. If the datacenter does not exist, nil is returned. +// +// Deprecated: [DatacenterClient.Get] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. func (c *DatacenterClient) Get(ctx context.Context, idOrName string) (*Datacenter, *Response, error) { if id, err := strconv.ParseInt(idOrName, 10, 64); err == nil { return c.GetByID(ctx, id) @@ -72,6 +87,9 @@ func (c *DatacenterClient) Get(ctx context.Context, idOrName string) (*Datacente } // DatacenterListOpts specifies options for listing datacenters. +// +// Deprecated: [DatacenterListOpts] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. type DatacenterListOpts struct { ListOpts Name string @@ -93,6 +111,9 @@ func (l DatacenterListOpts) Values() url.Values { // // Please note that filters specified in opts are not taken into account // when their value corresponds to their zero value or when they are empty. +// +// Deprecated: [DatacenterClient.List] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. func (c *DatacenterClient) List(ctx context.Context, opts DatacenterListOpts) ([]*Datacenter, *Response, error) { const opPath = "/datacenters?%s" ctx = ctxutil.SetOpPath(ctx, opPath) @@ -108,11 +129,17 @@ func (c *DatacenterClient) List(ctx context.Context, opts DatacenterListOpts) ([ } // All returns all datacenters. +// +// Deprecated: [DatacenterClient.All] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. func (c *DatacenterClient) All(ctx context.Context) ([]*Datacenter, error) { return c.AllWithOpts(ctx, DatacenterListOpts{}) } // AllWithOpts returns all datacenters for the given options. +// +// Deprecated: [DatacenterClient.AllWithOpts] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. func (c *DatacenterClient) AllWithOpts(ctx context.Context, opts DatacenterListOpts) ([]*Datacenter, error) { if opts.ListOpts.PerPage == 0 { opts.ListOpts.PerPage = 50 diff --git a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/hcloud.go b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/hcloud.go index aa09bfa4..b1f4ce4b 100644 --- a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/hcloud.go +++ b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/hcloud.go @@ -81,4 +81,4 @@ breaking changes. package hcloud // Version is the library's version following Semantic Versioning. -const Version = "2.43.0" // x-releaser-pleaser-version +const Version = "2.44.0" // x-releaser-pleaser-version diff --git a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/schema/datacenter.go b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/schema/datacenter.go index b9020fd7..b15385a1 100644 --- a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/schema/datacenter.go +++ b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/schema/datacenter.go @@ -1,6 +1,9 @@ package schema // Datacenter defines the schema of a datacenter. +// +// Deprecated: [Datacenter] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. type Datacenter struct { ID int64 `json:"id"` Name string `json:"name"` @@ -23,11 +26,17 @@ type DatacenterServerTypes struct { } // DatacenterGetResponse defines the schema of the response when retrieving a single datacenter. +// +// Deprecated: [Datacenter] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. type DatacenterGetResponse struct { Datacenter Datacenter `json:"datacenter"` } // DatacenterListResponse defines the schema of the response when listing datacenters. +// +// Deprecated: [Datacenter] is deprecated and will be removed after the 2026-10-01. See +// https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. type DatacenterListResponse struct { Datacenters []Datacenter `json:"datacenters"` } diff --git a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/zz_datacenter_client_iface.go b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/zz_datacenter_client_iface.go index f9376756..c7f11344 100644 --- a/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/zz_datacenter_client_iface.go +++ b/vendor/github.com/hetznercloud/hcloud-go/v2/hcloud/zz_datacenter_client_iface.go @@ -9,19 +9,37 @@ import ( // IDatacenterClient ... type IDatacenterClient interface { // GetByID retrieves a datacenter by its ID. If the datacenter does not exist, nil is returned. + // + // Deprecated: [DatacenterClient.GetByID] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. GetByID(ctx context.Context, id int64) (*Datacenter, *Response, error) // GetByName retrieves a datacenter by its name. If the datacenter does not exist, nil is returned. + // + // Deprecated: [DatacenterClient.GetByName] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. GetByName(ctx context.Context, name string) (*Datacenter, *Response, error) // Get retrieves a datacenter by its ID if the input can be parsed as an integer, otherwise it // retrieves a datacenter by its name. If the datacenter does not exist, nil is returned. + // + // Deprecated: [DatacenterClient.Get] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. Get(ctx context.Context, idOrName string) (*Datacenter, *Response, error) // List returns a list of datacenters for a specific page. // // Please note that filters specified in opts are not taken into account // when their value corresponds to their zero value or when they are empty. + // + // Deprecated: [DatacenterClient.List] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. List(ctx context.Context, opts DatacenterListOpts) ([]*Datacenter, *Response, error) // All returns all datacenters. + // + // Deprecated: [DatacenterClient.All] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. All(ctx context.Context) ([]*Datacenter, error) // AllWithOpts returns all datacenters for the given options. + // + // Deprecated: [DatacenterClient.AllWithOpts] is deprecated and will be removed after the 2026-10-01. See + // https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated. AllWithOpts(ctx context.Context, opts DatacenterListOpts) ([]*Datacenter, error) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 98ce2a99..043fbd77 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -481,7 +481,7 @@ github.com/hashicorp/errwrap # github.com/hashicorp/go-multierror v1.1.1 ## explicit; go 1.13 github.com/hashicorp/go-multierror -# github.com/hetznercloud/hcloud-go/v2 v2.43.0 +# github.com/hetznercloud/hcloud-go/v2 v2.44.0 ## explicit; go 1.25.0 github.com/hetznercloud/hcloud-go/v2/hcloud github.com/hetznercloud/hcloud-go/v2/hcloud/exp/ctxutil