hcloud

package
v0.0.0-...-81d325c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSshKey

func CreateSshKey(hclient hc.Client, name string, publicKey string, log logr.Logger) (*hc.SSHKey, error)

func CreateVm

func CreateVm(ctx context.Context, hclient hc.Client, vmCr *v1alpha1.VirtualMachine, keys []*hc.SSHKey, log logr.Logger) (*hc.ServerCreateResult, *hc.ServerCreateOpts, error)

func DeleteVm

func DeleteVm(ctx context.Context, hclient *hc.Client, server *hc.Server, log logr.Logger) error

func GetImage

func GetImage(ctx context.Context, hclient hc.Client, imageName string, log logr.Logger) (*hc.Image, error)

func GetLocation

func GetLocation(ctx context.Context, hclient hc.Client, locationName string, log logr.Logger) (*hc.Location, error)

func GetServerTypeByName

func GetServerTypeByName(ctx context.Context, hclient hc.Client, serverTypeName string, log logr.Logger) (*hc.ServerType, error)

func GetSshKeyInfo

func GetSshKeyInfo(ctx context.Context, hclient hc.Client, sshKeyName string, log logr.Logger) (a *hc.SSHKey, err error)

func GetSshKeys

func GetSshKeys(ctx context.Context, hclient hc.Client, keyNames []string, log logr.Logger) ([]*hc.SSHKey, error)

func GetVirtualMachineInfo

func GetVirtualMachineInfo(ctx context.Context, hclient hc.Client, vmName string, log logr.Logger) (a *hc.Server, err error)

func NewHetznerCloudClient

func NewHetznerCloudClient(token string, location hcloudv1alpha1.Location) (a *hc.Client, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL