provider

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0, BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteVolume

func DeleteVolume(ses *session.Session, VolumeID string) error

DeleteVolume deletes the specified volume

func TerminateInstance

func TerminateInstance(ses *session.Session, instanceID string) error

TerminateInstance terminates the specified EC2 instance.

Types

type ResourcesTrackerImpl

type ResourcesTrackerImpl struct {
	MachineClass *v1alpha1.MachineClass
	SecretData   map[string][]byte
	ClusterName  string
}

ResourcesTrackerImpl type keeps a note of resources which are initialized in MCM IT suite and are used in provider IT

func (*ResourcesTrackerImpl) InitializeResourcesTracker

func (r *ResourcesTrackerImpl) InitializeResourcesTracker(machineClass *v1alpha1.MachineClass, secretData map[string][]byte, clusterName string) error

InitializeResourcesTracker initializes the type ResourcesTrackerImpl variable and tries to delete the orphan resources present before the actual IT runs.

func (*ResourcesTrackerImpl) IsOrphanedResourcesAvailable

func (r *ResourcesTrackerImpl) IsOrphanedResourcesAvailable() bool

IsOrphanedResourcesAvailable checks whether there are any orphaned resources left. If yes, then prints them and returns true. If not, then returns false

Jump to

Keyboard shortcuts

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