ibmcloud

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 28 Imported by: 2

Documentation

Overview

Package ibmcloud provides a cluster-destroyer for IBM Cloud clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns an IBMCloud destroyer from ClusterMetadata.

Types

type ClusterUninstaller

type ClusterUninstaller struct {
	ClusterName         string
	Context             context.Context
	Logger              logrus.FieldLogger
	InfraID             string
	AccountID           string
	BaseDomain          string
	CISInstanceCRN      string
	DNSInstanceID       string
	Region              string
	ResourceGroupName   string
	UserProvidedSubnets []string
	UserProvidedVPC     string
	// contains filtered or unexported fields
}

ClusterUninstaller holds the various options for the cluster we want to delete

func (*ClusterUninstaller) COSInstanceID

func (o *ClusterUninstaller) COSInstanceID() (string, error)

COSInstanceID returns the ID of the Cloud Object Storage service instance created by the installer during installation.

func (ClusterUninstaller) GetAllPendingItems

func (t ClusterUninstaller) GetAllPendingItems() []cloudResource

GetAllPendintItems returns a slice of all of the pending items across all types.

func (*ClusterUninstaller) ResourceGroupID

func (o *ClusterUninstaller) ResourceGroupID() (string, error)

ResourceGroupID returns the ID of the resource group using its name

func (*ClusterUninstaller) Retry

func (o *ClusterUninstaller) Retry(funcToRetry func() (error, bool)) error

Retry ...

func (*ClusterUninstaller) Run

Run is the entrypoint to start the uninstall process

func (*ClusterUninstaller) SetResourceGroupID

func (o *ClusterUninstaller) SetResourceGroupID(id string)

SetResourceGroupID sets the resource group ID

Jump to

Keyboard shortcuts

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