Documentation ¶
Overview ¶
Package hcloudclient defines and implements the interface for talking to Hetzner HCloud API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateLoadBalancer(context.Context, hcloud.LoadBalancerCreateOpts) (hcloud.LoadBalancerCreateResult, error) DeleteLoadBalancer(context.Context, int) error ListLoadBalancers(context.Context, hcloud.LoadBalancerListOpts) ([]*hcloud.LoadBalancer, error) AttachLoadBalancerToNetwork(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAttachToNetworkOpts) (*hcloud.Action, error) ChangeLoadBalancerType(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerChangeTypeOpts) (*hcloud.Action, error) ChangeLoadBalancerAlgorithm(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerChangeAlgorithmOpts) (*hcloud.Action, error) UpdateLoadBalancer(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerUpdateOpts) (*hcloud.LoadBalancer, error) AddTargetServerToLoadBalancer(context.Context, hcloud.LoadBalancerAddServerTargetOpts, *hcloud.LoadBalancer) (*hcloud.Action, error) DeleteTargetServerOfLoadBalancer(context.Context, *hcloud.LoadBalancer, *hcloud.Server) (*hcloud.Action, error) AddServiceToLoadBalancer(context.Context, *hcloud.LoadBalancer, hcloud.LoadBalancerAddServiceOpts) (*hcloud.Action, error) DeleteServiceFromLoadBalancer(context.Context, *hcloud.LoadBalancer, int) (*hcloud.Action, error) ListImages(context.Context, hcloud.ImageListOpts) ([]*hcloud.Image, error) CreateServer(context.Context, hcloud.ServerCreateOpts) (hcloud.ServerCreateResult, error) AttachServerToNetwork(context.Context, *hcloud.Server, hcloud.ServerAttachToNetworkOpts) (*hcloud.Action, error) ListServers(context.Context, hcloud.ServerListOpts) ([]*hcloud.Server, error) DeleteServer(context.Context, *hcloud.Server) error PowerOnServer(context.Context, *hcloud.Server) (*hcloud.Action, error) ShutdownServer(context.Context, *hcloud.Server) (*hcloud.Action, error) CreateNetwork(context.Context, hcloud.NetworkCreateOpts) (*hcloud.Network, error) ListNetworks(context.Context, hcloud.NetworkListOpts) ([]*hcloud.Network, error) DeleteNetwork(context.Context, *hcloud.Network) error ListSSHKeys(ctx context.Context, opts hcloud.SSHKeyListOpts) ([]*hcloud.SSHKey, error) CreatePlacementGroup(context.Context, hcloud.PlacementGroupCreateOpts) (hcloud.PlacementGroupCreateResult, error) DeletePlacementGroup(context.Context, int) error ListPlacementGroups(context.Context, hcloud.PlacementGroupListOpts) ([]*hcloud.PlacementGroup, error) AddServerToPlacementGroup(context.Context, *hcloud.Server, *hcloud.PlacementGroup) (*hcloud.Action, error) }
Client collects all methods used by the controller in the hcloud cloud API.
Click to show internal directories.
Click to hide internal directories.