Documentation
¶
Index ¶
- type CertificateClient
- type CertificateClientBase
- type Client
- type DatacenterClient
- type DatacenterClientBase
- type FirewallClient
- type FirewallClientBase
- type FloatingIPClient
- type FloatingIPClientBase
- type ISOClient
- type ISOClientBase
- type ImageClient
- type ImageClientBase
- type LoadBalancerClient
- type LoadBalancerClientBase
- type LoadBalancerTypeClient
- type LoadBalancerTypeClientBase
- type LocationClient
- type LocationClientBase
- type NetworkClient
- type NetworkClientBase
- type PlacementGroupClient
- type PlacementGroupClientBase
- type PrimaryIPClient
- type PrimaryIPClientBase
- type RDNSClient
- type RDNSClientBase
- type SSHKeyClient
- type SSHKeyClientBase
- type ServerClient
- type ServerClientBase
- type ServerTypeClient
- type ServerTypeClientBase
- type VolumeClient
- type VolumeClientBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateClient ¶ added in v1.25.0
type CertificateClient interface {
CertificateClientBase
Names() []string
LabelKeys(string) []string
}
CertificateClient embeds the Hetzner Cloud Certificate client and provides some additional helper functions.
func NewCertificateClient ¶ added in v1.25.0
func NewCertificateClient(client CertificateClientBase) CertificateClient
type CertificateClientBase ¶ added in v1.25.0
type CertificateClientBase interface {
All(context.Context) ([]*hcloud.Certificate, error)
AllWithOpts(context.Context, hcloud.CertificateListOpts) ([]*hcloud.Certificate, error)
Create(context.Context, hcloud.CertificateCreateOpts) (*hcloud.Certificate, *hcloud.Response, error)
CreateCertificate(context.Context, hcloud.CertificateCreateOpts) (hcloud.CertificateCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.Certificate) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.Certificate, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Certificate, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Certificate, *hcloud.Response, error)
List(context.Context, hcloud.CertificateListOpts) ([]*hcloud.Certificate, *hcloud.Response, error)
RetryIssuance(context.Context, *hcloud.Certificate) (*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.Certificate, hcloud.CertificateUpdateOpts) (*hcloud.Certificate, *hcloud.Response, error)
}
CertificateClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.CertificateClient".
type Client ¶
type Client interface {
Datacenter() DatacenterClient
Firewall() FirewallClient
FloatingIP() FloatingIPClient
Image() ImageClient
Location() LocationClient
Network() NetworkClient
Server() ServerClient
ServerType() ServerTypeClient
SSHKey() SSHKeyClient
Volume() VolumeClient
Certificate() CertificateClient
LoadBalancer() LoadBalancerClient
LoadBalancerType() LoadBalancerTypeClient
ISO() ISOClient
PlacementGroup() PlacementGroupClient
RDNS() RDNSClient
PrimaryIP() PrimaryIPClient
}
Client makes all API clients accessible via a single interface.
type DatacenterClient ¶
type DatacenterClient interface {
DatacenterClientBase
Names() []string
}
DatacenterClient embeds the Hetzner Cloud DataCenter client and provides some additional helper functions.
func NewDatacenterClient ¶
func NewDatacenterClient(client DatacenterClientBase) DatacenterClient
type DatacenterClientBase ¶
type DatacenterClientBase interface {
All(context.Context) ([]*hcloud.Datacenter, error)
Get(context.Context, string) (*hcloud.Datacenter, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Datacenter, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Datacenter, *hcloud.Response, error)
List(context.Context, hcloud.DatacenterListOpts) ([]*hcloud.Datacenter, *hcloud.Response, error)
}
DatacenterClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.DatacenterClient".
type FirewallClient ¶
type FirewallClient interface {
FirewallClientBase
Names() []string
LabelKeys(string) []string
}
func NewFirewallClient ¶
func NewFirewallClient(client FirewallClientBase) FirewallClient
type FirewallClientBase ¶
type FirewallClientBase interface {
All(context.Context) ([]*hcloud.Firewall, error)
AllWithOpts(context.Context, hcloud.FirewallListOpts) ([]*hcloud.Firewall, error)
ApplyResources(context.Context, *hcloud.Firewall, []hcloud.FirewallResource) ([]*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.FirewallCreateOpts) (hcloud.FirewallCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.Firewall) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.Firewall, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Firewall, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Firewall, *hcloud.Response, error)
List(context.Context, hcloud.FirewallListOpts) ([]*hcloud.Firewall, *hcloud.Response, error)
RemoveResources(context.Context, *hcloud.Firewall, []hcloud.FirewallResource) ([]*hcloud.Action, *hcloud.Response, error)
SetRules(context.Context, *hcloud.Firewall, hcloud.FirewallSetRulesOpts) ([]*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.Firewall, hcloud.FirewallUpdateOpts) (*hcloud.Firewall, *hcloud.Response, error)
}
FirewallClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.FirewallClient".
type FloatingIPClient ¶
type FloatingIPClient interface {
FloatingIPClientBase
Names() []string
LabelKeys(idOrName string) []string
}
FloatingIPClient embeds the hcloud FloatingIPClient (via an interface) and provides some additional helper functions.
func NewFloatingIPClient ¶
func NewFloatingIPClient(client FloatingIPClientBase) FloatingIPClient
NewFloatingIPClient creates a new floating IP client.
type FloatingIPClientBase ¶
type FloatingIPClientBase interface {
All(context.Context) ([]*hcloud.FloatingIP, error)
AllWithOpts(context.Context, hcloud.FloatingIPListOpts) ([]*hcloud.FloatingIP, error)
Assign(context.Context, *hcloud.FloatingIP, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
ChangeDNSPtr(context.Context, *hcloud.FloatingIP, string, *string) (*hcloud.Action, *hcloud.Response, error)
ChangeProtection(context.Context, *hcloud.FloatingIP, hcloud.FloatingIPChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.FloatingIPCreateOpts) (hcloud.FloatingIPCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.FloatingIP) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.FloatingIP, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.FloatingIP, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.FloatingIP, *hcloud.Response, error)
List(context.Context, hcloud.FloatingIPListOpts) ([]*hcloud.FloatingIP, *hcloud.Response, error)
Unassign(context.Context, *hcloud.FloatingIP) (*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.FloatingIP, hcloud.FloatingIPUpdateOpts) (*hcloud.FloatingIP, *hcloud.Response, error)
}
FloatingIPClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.FloatingIPClient".
type ISOClient ¶ added in v1.25.0
type ISOClient interface {
ISOClientBase
Names() []string
}
ISOClient embeds the Hetzner Cloud iso client and provides some additional helper functions.
func NewISOClient ¶ added in v1.25.0
func NewISOClient(client ISOClientBase) ISOClient
type ISOClientBase ¶ added in v1.25.0
type ISOClientBase interface {
All(context.Context) ([]*hcloud.ISO, error)
AllWithOpts(context.Context, hcloud.ISOListOpts) ([]*hcloud.ISO, error)
Get(context.Context, string) (*hcloud.ISO, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.ISO, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.ISO, *hcloud.Response, error)
List(context.Context, hcloud.ISOListOpts) ([]*hcloud.ISO, *hcloud.Response, error)
}
ISOClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ISOClient".
type ImageClient ¶
type ImageClient interface {
ImageClientBase
Names() []string
LabelKeys(string) []string
}
ImageClient embeds the Hetzner Cloud Image client and provides some additional helper functions.
func NewImageClient ¶
func NewImageClient(client ImageClientBase) ImageClient
type ImageClientBase ¶
type ImageClientBase interface {
All(context.Context) ([]*hcloud.Image, error)
AllWithOpts(context.Context, hcloud.ImageListOpts) ([]*hcloud.Image, error)
ChangeProtection(context.Context, *hcloud.Image, hcloud.ImageChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
Delete(context.Context, *hcloud.Image) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.Image, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Image, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Image, *hcloud.Response, error)
GetByNameAndArchitecture(context.Context, string, hcloud.Architecture) (*hcloud.Image, *hcloud.Response, error)
GetForArchitecture(context.Context, string, hcloud.Architecture) (*hcloud.Image, *hcloud.Response, error)
List(context.Context, hcloud.ImageListOpts) ([]*hcloud.Image, *hcloud.Response, error)
Update(context.Context, *hcloud.Image, hcloud.ImageUpdateOpts) (*hcloud.Image, *hcloud.Response, error)
}
ImageClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ImageClient".
type LoadBalancerClient ¶ added in v1.25.0
type LoadBalancerClient interface {
LoadBalancerClientBase
LoadBalancerName(id int) string
Names() []string
LabelKeys(string) []string
}
LoadBalancerClient embeds the Hetzner Cloud LoadBalancer client and provides some additional helper functions.
func NewLoadBalancerClient ¶ added in v1.25.0
func NewLoadBalancerClient(client LoadBalancerClientBase) LoadBalancerClient
type LoadBalancerClientBase ¶ added in v1.25.0
type LoadBalancerClientBase interface {
AddIPTarget(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAddIPTargetOpts) (*hcloud.Action, *hcloud.Response, error)
AddLabelSelectorTarget(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAddLabelSelectorTargetOpts) (*hcloud.Action, *hcloud.Response, error)
AddServerTarget(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAddServerTargetOpts) (*hcloud.Action, *hcloud.Response, error)
AddService(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAddServiceOpts) (*hcloud.Action, *hcloud.Response, error)
All(context.Context) ([]*hcloud.LoadBalancer, error)
AllWithOpts(context.Context, hcloud.LoadBalancerListOpts) ([]*hcloud.LoadBalancer, error)
AttachToNetwork(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAttachToNetworkOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeAlgorithm(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerChangeAlgorithmOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeDNSPtr(context.Context, *hcloud.LoadBalancer, string, *string) (*hcloud.Action, *hcloud.Response, error)
ChangeProtection(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeType(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerChangeTypeOpts) (*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.LoadBalancerCreateOpts) (hcloud.LoadBalancerCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.LoadBalancer) (*hcloud.Response, error)
DeleteService(context.Context, *hcloud.LoadBalancer, int) (*hcloud.Action, *hcloud.Response, error)
DetachFromNetwork(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerDetachFromNetworkOpts) (*hcloud.Action, *hcloud.Response, error)
DisablePublicInterface(context.Context, *hcloud.LoadBalancer) (*hcloud.Action, *hcloud.Response, error)
EnablePublicInterface(context.Context, *hcloud.LoadBalancer) (*hcloud.Action, *hcloud.Response, error)
Get(context.Context, string) (*hcloud.LoadBalancer, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.LoadBalancer, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.LoadBalancer, *hcloud.Response, error)
GetMetrics(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerGetMetricsOpts) (*hcloud.LoadBalancerMetrics, *hcloud.Response, error)
List(context.Context, hcloud.LoadBalancerListOpts) ([]*hcloud.LoadBalancer, *hcloud.Response, error)
RemoveIPTarget(context.Context, *hcloud.LoadBalancer, net.IP) (*hcloud.Action, *hcloud.Response, error)
RemoveLabelSelectorTarget(context.Context, *hcloud.LoadBalancer, string) (*hcloud.Action, *hcloud.Response, error)
RemoveServerTarget(context.Context, *hcloud.LoadBalancer, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerUpdateOpts) (*hcloud.LoadBalancer, *hcloud.Response, error)
UpdateService(context.Context, *hcloud.LoadBalancer, int, hcloud.LoadBalancerUpdateServiceOpts) (*hcloud.Action, *hcloud.Response, error)
}
LoadBalancerClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.LoadBalancerClient".
type LoadBalancerTypeClient ¶ added in v1.25.0
type LoadBalancerTypeClient interface {
LoadBalancerTypeClientBase
Names() []string
LoadBalancerTypeName(id int) string
LoadBalancerTypeDescription(id int) string
}
func NewLoadBalancerTypeClient ¶ added in v1.25.0
func NewLoadBalancerTypeClient(client LoadBalancerTypeClientBase) LoadBalancerTypeClient
type LoadBalancerTypeClientBase ¶ added in v1.25.0
type LoadBalancerTypeClientBase interface {
All(context.Context) ([]*hcloud.LoadBalancerType, error)
Get(context.Context, string) (*hcloud.LoadBalancerType, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.LoadBalancerType, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.LoadBalancerType, *hcloud.Response, error)
List(context.Context, hcloud.LoadBalancerTypeListOpts) ([]*hcloud.LoadBalancerType, *hcloud.Response, error)
}
LoadBalancerTypeClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.LoadBalancerTypeClient".
type LocationClient ¶
type LocationClient interface {
LocationClientBase
Names() []string
NetworkZones() []string
}
LocationClient embeds the Hetzner Cloud Location client and provides some additional helper functions.
func NewLocationClient ¶
func NewLocationClient(client LocationClientBase) LocationClient
type LocationClientBase ¶
type LocationClientBase interface {
All(context.Context) ([]*hcloud.Location, error)
Get(context.Context, string) (*hcloud.Location, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Location, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Location, *hcloud.Response, error)
List(context.Context, hcloud.LocationListOpts) ([]*hcloud.Location, *hcloud.Response, error)
}
LocationClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.LocationClient".
type NetworkClient ¶
type NetworkClient interface {
NetworkClientBase
Names() []string
Name(int) string
LabelKeys(string) []string
}
NetworkClient embeds the Hetzner Cloud Network client and provides some additional helper functions.
func NewNetworkClient ¶
func NewNetworkClient(client NetworkClientBase) NetworkClient
type NetworkClientBase ¶
type NetworkClientBase interface {
AddRoute(context.Context, *hcloud.Network, hcloud.NetworkAddRouteOpts) (*hcloud.Action, *hcloud.Response, error)
AddSubnet(context.Context, *hcloud.Network, hcloud.NetworkAddSubnetOpts) (*hcloud.Action, *hcloud.Response, error)
All(context.Context) ([]*hcloud.Network, error)
AllWithOpts(context.Context, hcloud.NetworkListOpts) ([]*hcloud.Network, error)
ChangeIPRange(context.Context, *hcloud.Network, hcloud.NetworkChangeIPRangeOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeProtection(context.Context, *hcloud.Network, hcloud.NetworkChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.NetworkCreateOpts) (*hcloud.Network, *hcloud.Response, error)
Delete(context.Context, *hcloud.Network) (*hcloud.Response, error)
DeleteRoute(context.Context, *hcloud.Network, hcloud.NetworkDeleteRouteOpts) (*hcloud.Action, *hcloud.Response, error)
DeleteSubnet(context.Context, *hcloud.Network, hcloud.NetworkDeleteSubnetOpts) (*hcloud.Action, *hcloud.Response, error)
Get(context.Context, string) (*hcloud.Network, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Network, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Network, *hcloud.Response, error)
List(context.Context, hcloud.NetworkListOpts) ([]*hcloud.Network, *hcloud.Response, error)
Update(context.Context, *hcloud.Network, hcloud.NetworkUpdateOpts) (*hcloud.Network, *hcloud.Response, error)
}
NetworkClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.NetworkClient".
type PlacementGroupClient ¶ added in v1.27.0
type PlacementGroupClient interface {
PlacementGroupClientBase
Names() []string
LabelKeys(string) []string
}
func NewPlacementGroupClient ¶ added in v1.27.0
func NewPlacementGroupClient(client PlacementGroupClientBase) PlacementGroupClient
type PlacementGroupClientBase ¶ added in v1.27.0
type PlacementGroupClientBase interface {
All(context.Context) ([]*hcloud.PlacementGroup, error)
AllWithOpts(context.Context, hcloud.PlacementGroupListOpts) ([]*hcloud.PlacementGroup, error)
Create(context.Context, hcloud.PlacementGroupCreateOpts) (hcloud.PlacementGroupCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.PlacementGroup) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.PlacementGroup, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.PlacementGroup, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.PlacementGroup, *hcloud.Response, error)
List(context.Context, hcloud.PlacementGroupListOpts) ([]*hcloud.PlacementGroup, *hcloud.Response, error)
Update(context.Context, *hcloud.PlacementGroup, hcloud.PlacementGroupUpdateOpts) (*hcloud.PlacementGroup, *hcloud.Response, error)
}
PlacementGroupClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.PlacementGroupClient".
type PrimaryIPClient ¶ added in v1.30.0
type PrimaryIPClient interface {
PrimaryIPClientBase
Names() []string
IPv4Names() []string
IPv6Names() []string
LabelKeys(idOrName string) []string
}
PrimaryIPClient embeds the hcloud PrimaryIPClient (via an interface) and provides some additional helper functions.
func NewPrimaryIPClient ¶ added in v1.30.0
func NewPrimaryIPClient(client PrimaryIPClientBase) PrimaryIPClient
NewPrimaryIPClient creates a new primary IP client.
type PrimaryIPClientBase ¶ added in v1.30.0
type PrimaryIPClientBase interface {
All(context.Context) ([]*hcloud.PrimaryIP, error)
AllWithOpts(context.Context, hcloud.PrimaryIPListOpts) ([]*hcloud.PrimaryIP, error)
Assign(context.Context, hcloud.PrimaryIPAssignOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeDNSPtr(context.Context, hcloud.PrimaryIPChangeDNSPtrOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeProtection(context.Context, hcloud.PrimaryIPChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.PrimaryIPCreateOpts) (*hcloud.PrimaryIPCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.PrimaryIP) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.PrimaryIP, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.PrimaryIP, *hcloud.Response, error)
GetByIP(context.Context, string) (*hcloud.PrimaryIP, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.PrimaryIP, *hcloud.Response, error)
List(context.Context, hcloud.PrimaryIPListOpts) ([]*hcloud.PrimaryIP, *hcloud.Response, error)
Unassign(context.Context, int) (*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.PrimaryIP, hcloud.PrimaryIPUpdateOpts) (*hcloud.PrimaryIP, *hcloud.Response, error)
}
PrimaryIPClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.PrimaryIPClient".
type RDNSClient ¶ added in v1.28.1
type RDNSClient interface {
RDNSClientBase
}
NewRDNSClient embeds the Hetzner Cloud rdns client.
func NewRDNSClient ¶ added in v1.28.1
func NewRDNSClient(client RDNSClientBase) RDNSClient
type RDNSClientBase ¶ added in v1.28.1
type RDNSClientBase interface {
ChangeDNSPtr(context.Context, hcloud.RDNSSupporter, net.IP, *string) (*hcloud.Action, *hcloud.Response, error)
}
RDNSClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.RDNSClient".
type SSHKeyClient ¶
type SSHKeyClient interface {
SSHKeyClientBase
Names() []string
LabelKeys(idOrName string) []string
}
SSHKeyClient embeds the Hetzner Cloud SSHKey client and provides some additional helper functions.
func NewSSHKeyClient ¶
func NewSSHKeyClient(client SSHKeyClientBase) SSHKeyClient
type SSHKeyClientBase ¶
type SSHKeyClientBase interface {
All(context.Context) ([]*hcloud.SSHKey, error)
AllWithOpts(context.Context, hcloud.SSHKeyListOpts) ([]*hcloud.SSHKey, error)
Create(context.Context, hcloud.SSHKeyCreateOpts) (*hcloud.SSHKey, *hcloud.Response, error)
Delete(context.Context, *hcloud.SSHKey) (*hcloud.Response, error)
Get(context.Context, string) (*hcloud.SSHKey, *hcloud.Response, error)
GetByFingerprint(context.Context, string) (*hcloud.SSHKey, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.SSHKey, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.SSHKey, *hcloud.Response, error)
List(context.Context, hcloud.SSHKeyListOpts) ([]*hcloud.SSHKey, *hcloud.Response, error)
Update(context.Context, *hcloud.SSHKey, hcloud.SSHKeyUpdateOpts) (*hcloud.SSHKey, *hcloud.Response, error)
}
SSHKeyClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.SSHKeyClient".
type ServerClient ¶
type ServerClient interface {
ServerClientBase
ServerName(id int) string
Names() []string
LabelKeys(idOrName string) []string
}
func NewServerClient ¶
func NewServerClient(client *hcloud.ServerClient) ServerClient
type ServerClientBase ¶
type ServerClientBase interface {
AddToPlacementGroup(context.Context, *hcloud.Server, *hcloud.PlacementGroup) (*hcloud.Action, *hcloud.Response, error)
All(context.Context) ([]*hcloud.Server, error)
AllWithOpts(context.Context, hcloud.ServerListOpts) ([]*hcloud.Server, error)
AttachISO(context.Context, *hcloud.Server, *hcloud.ISO) (*hcloud.Action, *hcloud.Response, error)
AttachToNetwork(context.Context, *hcloud.Server, hcloud.ServerAttachToNetworkOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeAliasIPs(context.Context, *hcloud.Server, hcloud.ServerChangeAliasIPsOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeDNSPtr(context.Context, *hcloud.Server, string, *string) (*hcloud.Action, *hcloud.Response, error)
ChangeProtection(context.Context, *hcloud.Server, hcloud.ServerChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeType(context.Context, *hcloud.Server, hcloud.ServerChangeTypeOpts) (*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.ServerCreateOpts) (hcloud.ServerCreateResult, *hcloud.Response, error)
CreateImage(context.Context, *hcloud.Server, *hcloud.ServerCreateImageOpts) (hcloud.ServerCreateImageResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.Server) (*hcloud.Response, error)
DeleteWithResult(context.Context, *hcloud.Server) (*hcloud.ServerDeleteResult, *hcloud.Response, error)
DetachFromNetwork(context.Context, *hcloud.Server, hcloud.ServerDetachFromNetworkOpts) (*hcloud.Action, *hcloud.Response, error)
DetachISO(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
DisableBackup(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
DisableRescue(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
EnableBackup(context.Context, *hcloud.Server, string) (*hcloud.Action, *hcloud.Response, error)
EnableRescue(context.Context, *hcloud.Server, hcloud.ServerEnableRescueOpts) (hcloud.ServerEnableRescueResult, *hcloud.Response, error)
Get(context.Context, string) (*hcloud.Server, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Server, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Server, *hcloud.Response, error)
GetMetrics(context.Context, *hcloud.Server, hcloud.ServerGetMetricsOpts) (*hcloud.ServerMetrics, *hcloud.Response, error)
List(context.Context, hcloud.ServerListOpts) ([]*hcloud.Server, *hcloud.Response, error)
Poweroff(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Poweron(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Reboot(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Rebuild(context.Context, *hcloud.Server, hcloud.ServerRebuildOpts) (*hcloud.Action, *hcloud.Response, error)
RebuildWithResult(context.Context, *hcloud.Server, hcloud.ServerRebuildOpts) (hcloud.ServerRebuildResult, *hcloud.Response, error)
RemoveFromPlacementGroup(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
RequestConsole(context.Context, *hcloud.Server) (hcloud.ServerRequestConsoleResult, *hcloud.Response, error)
Reset(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
ResetPassword(context.Context, *hcloud.Server) (hcloud.ServerResetPasswordResult, *hcloud.Response, error)
Shutdown(context.Context, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.Server, hcloud.ServerUpdateOpts) (*hcloud.Server, *hcloud.Response, error)
}
ServerClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ServerClient".
type ServerTypeClient ¶
type ServerTypeClient interface {
ServerTypeClientBase
Names() []string
ServerTypeName(id int) string
ServerTypeDescription(id int) string
}
func NewServerTypeClient ¶
func NewServerTypeClient(client ServerTypeClientBase) ServerTypeClient
type ServerTypeClientBase ¶
type ServerTypeClientBase interface {
All(context.Context) ([]*hcloud.ServerType, error)
Get(context.Context, string) (*hcloud.ServerType, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.ServerType, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.ServerType, *hcloud.Response, error)
List(context.Context, hcloud.ServerTypeListOpts) ([]*hcloud.ServerType, *hcloud.Response, error)
}
ServerTypeClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.ServerTypeClient".
type VolumeClient ¶
type VolumeClient interface {
VolumeClientBase
Names() []string
LabelKeys(idOrName string) []string
}
VolumeClient embeds the Hetzner Cloud Volume client and provides some additional helper functions.
func NewVolumeClient ¶
func NewVolumeClient(client VolumeClientBase) VolumeClient
type VolumeClientBase ¶
type VolumeClientBase interface {
All(context.Context) ([]*hcloud.Volume, error)
AllWithOpts(context.Context, hcloud.VolumeListOpts) ([]*hcloud.Volume, error)
Attach(context.Context, *hcloud.Volume, *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)
AttachWithOpts(context.Context, *hcloud.Volume, hcloud.VolumeAttachOpts) (*hcloud.Action, *hcloud.Response, error)
ChangeProtection(context.Context, *hcloud.Volume, hcloud.VolumeChangeProtectionOpts) (*hcloud.Action, *hcloud.Response, error)
Create(context.Context, hcloud.VolumeCreateOpts) (hcloud.VolumeCreateResult, *hcloud.Response, error)
Delete(context.Context, *hcloud.Volume) (*hcloud.Response, error)
Detach(context.Context, *hcloud.Volume) (*hcloud.Action, *hcloud.Response, error)
Get(context.Context, string) (*hcloud.Volume, *hcloud.Response, error)
GetByID(context.Context, int) (*hcloud.Volume, *hcloud.Response, error)
GetByName(context.Context, string) (*hcloud.Volume, *hcloud.Response, error)
List(context.Context, hcloud.VolumeListOpts) ([]*hcloud.Volume, *hcloud.Response, error)
Resize(context.Context, *hcloud.Volume, int) (*hcloud.Action, *hcloud.Response, error)
Update(context.Context, *hcloud.Volume, hcloud.VolumeUpdateOpts) (*hcloud.Volume, *hcloud.Response, error)
}
VolumeClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.VolumeClient".
Source Files
¶
- certificate.go
- client.go
- datacenter.go
- firewall.go
- floatingip.go
- image.go
- interface_gen.go
- iso.go
- labels.go
- load_balancer_type.go
- loadbalancer.go
- location.go
- network.go
- placement_group.go
- primaryip.go
- rdns.go
- server.go
- server_type.go
- sshkey.go
- volume.go
- zz_certificate_client_base.go
- zz_datacenter_client_base.go
- zz_firewall_client_base.go
- zz_floating_ip_client_base.go
- zz_image_client_base.go
- zz_iso_client_base.go
- zz_loadbalancer_client_base.go
- zz_loadbalancer_type_client_base.go
- zz_location_client_base.go
- zz_network_client_base.go
- zz_placement_group_client_base.go
- zz_primary_ip_client_base.go
- zz_rdns_client_base.go
- zz_server_client_base.go
- zz_server_type_client_base.go
- zz_ssh_key_client_base.go
- zz_volume_client_base.go