powervs

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: 30 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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