ensurer

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0, MIT Imports: 6 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

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 EnsurePlacementGroup added in v0.4.2

func EnsurePlacementGroup(ctx context.Context, client *hcloud.Client, namespace string) (int, error)

EnsurePlacementGroup verifies that the placement group requested is available.

PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client namespace string Shoot namespace zone string Shoot zone

func EnsurePlacementGroupDeleted added in v0.4.2

func EnsurePlacementGroupDeleted(ctx context.Context, client *hcloud.Client, placementGroupID string) error

EnsurePlacementGroupDeleted removes any previously created placement group identified by the given fingerprint.

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

func EnsureSSHPublicKey

func EnsureSSHPublicKey(ctx context.Context, client *hcloud.Client, publicKey []byte) (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