ensurer

package
v0.0.13 Latest Latest
Warning

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

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

func EnsureDHCPServer(ctx context.Context, client *ionossdk.APIClient, datacenterID, zone string, infraConfig *apis.InfrastructureConfig, infraStatus *apis.InfrastructureStatus, wanNetworkID, workerNetworkID string) (string, error)

func EnsureDHCPServerDeleted

func EnsureDHCPServerDeleted(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID string) error

func EnsureDatacenter

func EnsureDatacenter(ctx context.Context, client *ionossdk.APIClient, zone, namespace string) (string, error)

func EnsureDatacenterDeleted

func EnsureDatacenterDeleted(ctx context.Context, client *ionossdk.APIClient, datacenterID string) error

func EnsureFloatingPool

func EnsureFloatingPool(ctx context.Context, client *ionossdk.APIClient, zone, namespace string, floatingPool *apis.FloatingPool) (string, error)

func EnsureFloatingPoolDeleted

func EnsureFloatingPoolDeleted(ctx context.Context, client *ionossdk.APIClient, floatingPoolID string) error

func EnsureNetworks

func EnsureNetworks(ctx context.Context, client *ionossdk.APIClient, datacenterID, namespace string, networks *apis.Networks) (string, string, error)

EnsureNetworks verifies the network resources requested are available.

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

func EnsureNetworksDeleted

func EnsureNetworksDeleted(ctx context.Context, client *ionossdk.APIClient, datacenterID string, networkIDs *apis.NetworkIDs) 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.NetworkIDs Network IDs struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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