ensurer

package
v0.6.26 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ensurer provides functions used to ensure infrastructure changes to be applied

Package ensurer provides functions used to ensure infrastructure changes to be applied

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNetworks

func EnsureNetworks(ctx context.Context, client *hcloud.Client, namespace, zone string, networks *apis.InfrastructureConfigNetworks) (int, error)

EnsureNetworks verifies the network resources requested are available.

PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client namespace string Shoot namespace zone string Shoot zone networks *apis.InfrastructureConfigNetworks Networks struct

func EnsureNetworksDeleted

func EnsureNetworksDeleted(ctx context.Context, client *hcloud.Client, namespace string, networks *apis.InfrastructureConfigNetworkIDs) error

EnsureNetworksDeleted removes any previously created network resources.

PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client namespace string Shoot namespace networks *apis.InfrastructureConfigNetworkIDs Network IDs struct

func EnsureSSHPublicKey

func EnsureSSHPublicKey(ctx context.Context, client *hcloud.Client, cluster *extensionscontroller.Cluster, infra *extensionsv1alpha1.Infrastructure) (string, error)

EnsureSSHPublicKey verifies that the SSH public key resource requested is available.

PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client publicKey []byte SSH public key

func EnsureSSHPublicKeyDeleted added in v0.3.6

func EnsureSSHPublicKeyDeleted(ctx context.Context, client *hcloud.Client, fingerprint string) error

EnsureSSHPublicKeyDeleted removes any previously created SSH public key resource identified by the given fingerprint.

PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client fingerprint string SSH fingerprint

Types

This section is empty.

Jump to

Keyboard shortcuts

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