powervs

package
v1.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 33 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
	DNSInstanceCRN string
	DNSZone        string
	InfraID        string
	Logger         logrus.FieldLogger
	Region         string
	ServiceGUID    string
	VPCRegion      string
	Zone           string
	TransitGateway string
	// contains filtered or unexported fields
}

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

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 TagType

type TagType int

TagType The different states deleting a job can take.

const (
	// TagTypeVPC is for Virtual Private Cloud types.
	TagTypeVPC TagType = iota

	// TagTypeLoadBalancer is for Load Balancer types.
	TagTypeLoadBalancer

	// TagTypeCloudInstance is for Virtual Machine instance types.
	TagTypeCloudInstance

	// TagTypePublicGateway is for Public Gateway types.
	TagTypePublicGateway

	// TagTypeFloatingIP is for Floating IP types.
	TagTypeFloatingIP

	// TagTypeNetworkACL is for Network Acces Control List types.
	TagTypeNetworkACL

	// TagTypeSubnet is for Subnet types.
	TagTypeSubnet

	// TagTypeSecurityGroup is for Security Group types.
	TagTypeSecurityGroup

	// TagTypeTransitGateway is for Transit Gateway types.
	TagTypeTransitGateway

	// TagTypeServiceInstance is for Service Instance types.
	TagTypeServiceInstance

	// TagTypeCloudObjectStorage is for Cloud Object Storage types.
	TagTypeCloudObjectStorage
)

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