powervs

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 30 Imported by: 2

Documentation

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 {
	APIKey         string
	BaseDomain     string
	CISInstanceCRN string
	ClusterName    string
	Context        context.Context
	DNSInstanceCRN string
	DNSZone        string
	InfraID        string
	Logger         logrus.FieldLogger
	Region         string
	ServiceGUID    string
	VPCRegion      string
	Zone           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) PolledRun

func (o *ClusterUninstaller) PolledRun() (bool, error)

PolledRun is the Run function which will be called with Polling.

func (*ClusterUninstaller) Run

Run is the entrypoint to start the uninstall process.

func (*ClusterUninstaller) ServiceInstanceNameToGUID added in v0.9.153

func (o *ClusterUninstaller) ServiceInstanceNameToGUID(ctx context.Context, name string) (string, error)

ServiceInstanceNameToGUID returns the GUID of the matching service instance name which was passed in.

type DeleteJobResult

type DeleteJobResult int

DeleteJobResult The different states deleting a job can take.

const (
	// DeleteJobSuccess A job has finished successfully.
	DeleteJobSuccess DeleteJobResult = iota

	// DeleteJobRunning A job is currently running.
	DeleteJobRunning

	// DeleteJobError A job has resulted in an error.
	DeleteJobError
)

type User

type User struct {
	ID      string
	Email   string
	Account string
	// contains filtered or unexported fields
}

User information.

Jump to

Keyboard shortcuts

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