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 ¶
- func EnsureNetworks(ctx context.Context, client *hcloud.Client, namespace, zone string, ...) (int, error)
- func EnsureNetworksDeleted(ctx context.Context, client *hcloud.Client, namespace string, ...) error
- func EnsurePlacementGroup(ctx context.Context, client *hcloud.Client, namespace string) (int, error)
- func EnsurePlacementGroupDeleted(ctx context.Context, client *hcloud.Client, placementGroupID string) error
- func EnsureSSHPublicKey(ctx context.Context, client *hcloud.Client, publicKey []byte) (string, error)
- func EnsureSSHPublicKeyDeleted(ctx context.Context, client *hcloud.Client, fingerprint string) error
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.