Documentation ¶
Index ¶
Constants ¶
View Source
const ( //TIMEOUT is default timeout used by Power VS client for operations like DeleteInstance TIMEOUT = time.Hour //DefaultCredentialNamespace is the default namespace used to create a client object DefaultCredentialNamespace = "openshift-machine-api" //DefaultCredentialSecret is the credential secret name used by node update controller to fetch API key DefaultCredentialSecret = "powervs-credentials" //InstanceStateNameShutoff is indicates the shutoff state of Power VS instance InstanceStateNameShutoff = "SHUTOFF" //InstanceStateNameActive is indicates the active state of Power VS instance InstanceStateNameActive = "ACTIVE" //InstanceStateNameBuild is indicates the build state of Power VS instance InstanceStateNameBuild = "BUILD" //PowerServiceType is the power-iaas service type of IBM Cloud PowerServiceType = "power-iaas" )
Variables ¶
View Source
var ( //ErrorInstanceNotFound is error type for Instance Not Found ErrorInstanceNotFound = errors.New("instance Not Found") )
Functions ¶
func FormatProviderID ¶
FormatProviderID formats and returns the provided instanceID
Types ¶
type Client ¶
type Client interface { CreateInstance(createParams *models.PVMInstanceCreate) (*models.PVMInstanceList, error) GetInstance(id string) (*models.PVMInstance, error) GetInstanceByName(name string) (*models.PVMInstance, error) GetInstances() (*models.PVMInstances, error) DeleteInstance(id string) error GetImages() (*models.Images, error) GetNetworks() (*models.Networks, error) GetCloudServiceInstances() ([]bluemixmodels.ServiceInstanceV2, error) GetZone() string GetRegion() string }
Client is a wrapper object for actual PowerVS SDK clients to allow for easier testing.
Click to show internal directories.
Click to hide internal directories.