Documentation
¶
Index ¶
Constants ¶
View Source
const ( TIMEOUT = time.Hour DefaultCredentialNamespace = "openshift-machine-api" DefaultCredentialSecret = "powervs-credentials-secret" InstanceStateNameShutoff = "SHUTOFF" InstanceStateNameActive = "ACTIVE" InstanceStateNameBuild = "BUILD" PowerServiceType = "power-iaas" )
Variables ¶
View Source
var (
ErrorInstanceNotFound = errors.New("Instance Not Found")
)
Functions ¶
func FormatProviderID ¶
Types ¶
type Client ¶
type Client interface {
CreateInstance(*p_cloud_p_vm_instances.PcloudPvminstancesPostParams) (*models.PVMInstanceList, error)
GetInstance(id string) (*models.PVMInstance, error)
GetInstanceByName(name string) (*models.PVMInstance, error)
GetInstances() (*models.PVMInstances, error)
DeleteInstance(id string) error
GetCloudServiceInstances() ([]bluemixmodels.ServiceInstanceV2, error)
}
Client is a wrapper object for actual PowerVS SDK clients to allow for easier testing.
func NewClientMinimal ¶
NewClientMinimal is bare minimal client can be used for quarrying the resources
Click to show internal directories.
Click to hide internal directories.