Documentation
¶
Index ¶
- func CreateSshKey(hclient hc.Client, name string, publicKey string, log logr.Logger) (*hc.SSHKey, error)
- func CreateVm(ctx context.Context, hclient hc.Client, vmCr *v1alpha1.VirtualMachine, ...) (*hc.ServerCreateResult, *hc.ServerCreateOpts, error)
- func DeleteVm(ctx context.Context, hclient *hc.Client, server *hc.Server, log logr.Logger) error
- func GetImage(ctx context.Context, hclient hc.Client, imageName string, log logr.Logger) (*hc.Image, error)
- func GetLocation(ctx context.Context, hclient hc.Client, locationName string, log logr.Logger) (*hc.Location, error)
- func GetServerTypeByName(ctx context.Context, hclient hc.Client, serverTypeName string, log logr.Logger) (*hc.ServerType, error)
- func GetSshKeyInfo(ctx context.Context, hclient hc.Client, sshKeyName string, log logr.Logger) (a *hc.SSHKey, err error)
- func GetSshKeys(ctx context.Context, hclient hc.Client, keyNames []string, log logr.Logger) ([]*hc.SSHKey, error)
- func GetVirtualMachineInfo(ctx context.Context, hclient hc.Client, vmName string, log logr.Logger) (a *hc.Server, err error)
- func NewHetznerCloudClient(token string, location hcloudv1alpha1.Location) (a *hc.Client, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSshKey ¶
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 GetLocation ¶
func GetServerTypeByName ¶
func GetSshKeyInfo ¶
func GetSshKeys ¶
func GetVirtualMachineInfo ¶
func NewHetznerCloudClient ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.