Documentation
¶
Index ¶
- type ActionClient
- type CertificateClient
- type Client
- type DatacenterClient
- type FirewallClient
- type FloatingIPClient
- type ISOClient
- type ImageClient
- type LoadBalancerClient
- type LoadBalancerTypeClient
- type LocationClient
- type NetworkClient
- type PlacementGroupClient
- type PrimaryIPClient
- type RDNSClient
- type SSHKeyClient
- type ServerClient
- type ServerTypeClient
- type VolumeClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionClient ¶ added in v1.42.0
type ActionClient interface {
hcloud.IActionClient
}
ActionClient embeds the Hetzner Cloud Action client
func NewActionClient ¶ added in v1.42.0
func NewActionClient(client hcloud.IActionClient) ActionClient
type CertificateClient ¶ added in v1.25.0
type CertificateClient interface {
hcloud.ICertificateClient
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 hcloud.ICertificateClient) CertificateClient
type Client ¶
type Client interface {
Action() ActionClient
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
WithOpts(...hcloud.ClientOption)
}
Client makes all API clients accessible via a single interface.
func NewClient ¶
func NewClient(opts ...hcloud.ClientOption) Client
NewClient creates a new CLI API client extending hcloud.Client.
type DatacenterClient ¶
type DatacenterClient interface {
hcloud.IDatacenterClient
Names() []string
}
DatacenterClient embeds the Hetzner Cloud DataCenter client and provides some additional helper functions.
func NewDatacenterClient ¶
func NewDatacenterClient(client hcloud.IDatacenterClient) DatacenterClient
type FirewallClient ¶
type FirewallClient interface {
hcloud.IFirewallClient
Names() []string
LabelKeys(string) []string
}
func NewFirewallClient ¶
func NewFirewallClient(client hcloud.IFirewallClient) FirewallClient
type FloatingIPClient ¶
type FloatingIPClient interface {
hcloud.IFloatingIPClient
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 hcloud.IFloatingIPClient) FloatingIPClient
NewFloatingIPClient creates a new floating IP client.
type ISOClient ¶ added in v1.25.0
type ISOClient interface {
hcloud.IISOClient
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 hcloud.IISOClient) ISOClient
type ImageClient ¶
type ImageClient interface {
hcloud.IImageClient
Names() []string
LabelKeys(string) []string
}
ImageClient embeds the Hetzner Cloud Image client and provides some additional helper functions.
func NewImageClient ¶
func NewImageClient(client hcloud.IImageClient) ImageClient
type LoadBalancerClient ¶ added in v1.25.0
type LoadBalancerClient interface {
hcloud.ILoadBalancerClient
LoadBalancerName(id int64) 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 hcloud.ILoadBalancerClient) LoadBalancerClient
type LoadBalancerTypeClient ¶ added in v1.25.0
type LoadBalancerTypeClient interface {
hcloud.ILoadBalancerTypeClient
Names() []string
LoadBalancerTypeName(id int64) string
LoadBalancerTypeDescription(id int64) string
}
func NewLoadBalancerTypeClient ¶ added in v1.25.0
func NewLoadBalancerTypeClient(client hcloud.ILoadBalancerTypeClient) LoadBalancerTypeClient
type LocationClient ¶
type LocationClient interface {
hcloud.ILocationClient
Names() []string
NetworkZones() []string
}
LocationClient embeds the Hetzner Cloud Location client and provides some additional helper functions.
func NewLocationClient ¶
func NewLocationClient(client hcloud.ILocationClient) LocationClient
type NetworkClient ¶
type NetworkClient interface {
hcloud.INetworkClient
Names() []string
Name(int64) string
LabelKeys(string) []string
}
NetworkClient embeds the Hetzner Cloud Network client and provides some additional helper functions.
func NewNetworkClient ¶
func NewNetworkClient(client hcloud.INetworkClient) NetworkClient
type PlacementGroupClient ¶ added in v1.27.0
type PlacementGroupClient interface {
hcloud.IPlacementGroupClient
Names() []string
LabelKeys(string) []string
}
func NewPlacementGroupClient ¶ added in v1.27.0
func NewPlacementGroupClient(client hcloud.IPlacementGroupClient) PlacementGroupClient
type PrimaryIPClient ¶ added in v1.30.0
type PrimaryIPClient interface {
hcloud.IPrimaryIPClient
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 hcloud.IPrimaryIPClient) PrimaryIPClient
NewPrimaryIPClient creates a new primary IP client.
type RDNSClient ¶ added in v1.28.1
type RDNSClient interface {
hcloud.IRDNSClient
}
NewRDNSClient embeds the Hetzner Cloud rdns client.
func NewRDNSClient ¶ added in v1.28.1
func NewRDNSClient(client hcloud.IRDNSClient) RDNSClient
type SSHKeyClient ¶
type SSHKeyClient interface {
hcloud.ISSHKeyClient
Names() []string
LabelKeys(idOrName string) []string
}
SSHKeyClient embeds the Hetzner Cloud SSHKey client and provides some additional helper functions.
func NewSSHKeyClient ¶
func NewSSHKeyClient(client hcloud.ISSHKeyClient) SSHKeyClient
type ServerClient ¶
type ServerClient interface {
hcloud.IServerClient
ServerName(id int64) string
Names() []string
LabelKeys(idOrName string) []string
}
func NewServerClient ¶
func NewServerClient(client *hcloud.ServerClient) ServerClient
type ServerTypeClient ¶
type ServerTypeClient interface {
hcloud.IServerTypeClient
Names() []string
ServerTypeName(id int64) string
ServerTypeDescription(id int64) string
}
func NewServerTypeClient ¶
func NewServerTypeClient(client hcloud.IServerTypeClient) ServerTypeClient
type VolumeClient ¶
type VolumeClient interface {
hcloud.IVolumeClient
Names() []string
LabelKeys(idOrName string) []string
}
VolumeClient embeds the Hetzner Cloud Volume client and provides some additional helper functions.
func NewVolumeClient ¶
func NewVolumeClient(client hcloud.IVolumeClient) VolumeClient