Documentation ¶
Overview ¶
Package ibmcloud provides a cluster-destroyer for IBM Cloud clusters.
Index ¶
- func New(logger logrus.FieldLogger, metadata *types.ClusterMetadata) (providers.Destroyer, error)
- type ClusterUninstaller
- func (o *ClusterUninstaller) COSInstanceID() (string, error)
- func (t ClusterUninstaller) GetAllPendingItems() []cloudResource
- func (o *ClusterUninstaller) ResourceGroupID() (string, error)
- func (o *ClusterUninstaller) Retry(funcToRetry func() (error, bool)) error
- func (o *ClusterUninstaller) Run() (*types.ClusterQuota, error)
- func (o *ClusterUninstaller) SetResourceGroupID(id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(logger logrus.FieldLogger, metadata *types.ClusterMetadata) (providers.Destroyer, error)
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 ¶
func (o *ClusterUninstaller) Run() (*types.ClusterQuota, error)
Run is the entrypoint to start the uninstall process
func (*ClusterUninstaller) SetResourceGroupID ¶
func (o *ClusterUninstaller) SetResourceGroupID(id string)
SetResourceGroupID sets the resource group ID
Click to show internal directories.
Click to hide internal directories.