Documentation
¶
Index ¶
- Constants
- func CreateHashString(credentialInfo idrv.CredentialInfo) (string, error)
- func GetCallLogScheme(region idrv.RegionInfo, resourceType call.RES_TYPE, resourceName string, ...) call.CLOUDLOGSCHEMA
- func GetPublicKey(credentialInfo idrv.CredentialInfo, keyPairName string) (string, error)
- func GetVmSpecFromPreset(preset datatypes.Product_Package_Preset, Region string) (irs.VMSpecInfo, error)
- func InitLog()
- func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
- func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
- type IbmImageHandler
- func (imageHandler *IbmImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *IbmImageHandler) DeleteImage(iid irs.IID) (bool, error)
- func (imageHandler *IbmImageHandler) GetImage(iid irs.IID) (irs.ImageInfo, error)
- func (imageHandler *IbmImageHandler) ListImage() ([]*irs.ImageInfo, error)
- type IbmInfoParameter
- type IbmKeyPairHandler
- func (keyPairHandler *IbmKeyPairHandler) CheckKeyPairFolder(folderPath string) error
- func (keyPairHandler *IbmKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
- func (keyPairHandler *IbmKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
- func (keyPairHandler *IbmKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
- func (keyPairHandler *IbmKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type IbmSecurityHandler
- func (securityHandler *IbmSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *IbmSecurityHandler) DeleteSecurity(keyIID irs.IID) (bool, error)
- func (securityHandler *IbmSecurityHandler) GetSecurity(keyIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *IbmSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- type IbmVMHandler
- func (vmHandler *IbmVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)
- func (vmHandler *IbmVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *IbmVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *IbmVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *IbmVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *IbmVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *IbmVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)
- func (vmHandler *IbmVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *IbmVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)
- type IbmVPCHandler
- func (vpcHandler *IbmVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
- func (vpcHandler *IbmVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
- func (vpcHandler *IbmVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
- func (vpcHandler *IbmVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)
- func (vpcHandler *IbmVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
- func (vpcHandler *IbmVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)
- type IbmVmSpecHandler
- func (vmHandler *IbmVmSpecHandler) GetOrgVMSpec(Region string, Name string) (string, error)
- func (vmHandler *IbmVmSpecHandler) GetVMSpec(Region string, Name string) (irs.VMSpecInfo, error)
- func (vmHandler *IbmVmSpecHandler) ListOrgVMSpec(Region string) (string, error)
- func (vmHandler *IbmVmSpecHandler) ListVMSpec(Region string) ([]*irs.VMSpecInfo, error)
Constants ¶
View Source
const ( CBDefaultVmUserName string = "cb-user" CBKeyPairPath = "/cloud-driver-libs/.ssh-ibm/" CBCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-ibm/cloud-init" )
View Source
const IbmVmStatusHalted = "Halted"
View Source
const IbmVmStatusPaused = "Paused"
View Source
const IbmVmStatusRunning = "Running"
View Source
const IbmVmStatusSuspended = "Suspended"
View Source
const IbmVmStatusUnknown = "Unknown"
Variables ¶
This section is empty.
Functions ¶
func CreateHashString ¶
func CreateHashString(credentialInfo idrv.CredentialInfo) (string, error)
func GetCallLogScheme ¶
func GetCallLogScheme(region idrv.RegionInfo, resourceType call.RES_TYPE, resourceName string, apiName string) call.CLOUDLOGSCHEMA
func GetPublicKey ¶
func GetPublicKey(credentialInfo idrv.CredentialInfo, keyPairName string) (string, error)
func GetVmSpecFromPreset ¶
func GetVmSpecFromPreset(preset datatypes.Product_Package_Preset, Region string) (irs.VMSpecInfo, error)
func LoggingError ¶
func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
func LoggingInfo ¶
func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
Types ¶
type IbmImageHandler ¶
type IbmImageHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo AccountClient *services.Account ProductPackageClient *services.Product_Package }
func (*IbmImageHandler) CreateImage ¶
func (imageHandler *IbmImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*IbmImageHandler) DeleteImage ¶
func (imageHandler *IbmImageHandler) DeleteImage(iid irs.IID) (bool, error)
type IbmInfoParameter ¶
type IbmKeyPairHandler ¶
type IbmKeyPairHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo AccountClient *services.Account SecuritySshKeyClient *services.Security_Ssh_Key }
func (*IbmKeyPairHandler) CheckKeyPairFolder ¶
func (keyPairHandler *IbmKeyPairHandler) CheckKeyPairFolder(folderPath string) error
func (*IbmKeyPairHandler) CreateKey ¶
func (keyPairHandler *IbmKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*IbmKeyPairHandler) DeleteKey ¶
func (keyPairHandler *IbmKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
func (*IbmKeyPairHandler) GetKey ¶
func (keyPairHandler *IbmKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
func (*IbmKeyPairHandler) ListKey ¶
func (keyPairHandler *IbmKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type IbmSecurityHandler ¶
type IbmSecurityHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo AccountClient *services.Account SecurityGroupClient *services.Network_SecurityGroup }
func (*IbmSecurityHandler) CreateSecurity ¶
func (securityHandler *IbmSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*IbmSecurityHandler) DeleteSecurity ¶
func (securityHandler *IbmSecurityHandler) DeleteSecurity(keyIID irs.IID) (bool, error)
func (*IbmSecurityHandler) GetSecurity ¶
func (securityHandler *IbmSecurityHandler) GetSecurity(keyIID irs.IID) (irs.SecurityInfo, error)
func (*IbmSecurityHandler) ListSecurity ¶
func (securityHandler *IbmSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
type IbmVMHandler ¶
type IbmVMHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo AccountClient *services.Account VirtualGuestClient *services.Virtual_Guest ProductPackageClient *services.Product_Package LocationDatacenterClient *services.Location_Datacenter ProductOrderClient *services.Product_Order SecuritySshKeyClient *services.Security_Ssh_Key }
func (*IbmVMHandler) GetVMStatus ¶
func (*IbmVMHandler) ListVMStatus ¶
func (vmHandler *IbmVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*IbmVMHandler) TerminateVM ¶
type IbmVPCHandler ¶
type IbmVPCHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo AccountClient *services.Account NetworkVlanClient *services.Network_Vlan ProductPackageClient *services.Product_Package ProductOrderClient *services.Product_Order NetworkSubnetClient *services.Network_Subnet BillingItemClient *services.Billing_Item LocationDatacenterClient *services.Location_Datacenter }
func (*IbmVPCHandler) AddSubnet ¶
func (vpcHandler *IbmVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
func (*IbmVPCHandler) CreateVPC ¶
func (vpcHandler *IbmVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
func (*IbmVPCHandler) DeleteVPC ¶
func (vpcHandler *IbmVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
func (*IbmVPCHandler) RemoveSubnet ¶
type IbmVmSpecHandler ¶
type IbmVmSpecHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo ProductPackageClient *services.Product_Package }
func (*IbmVmSpecHandler) GetOrgVMSpec ¶
func (vmHandler *IbmVmSpecHandler) GetOrgVMSpec(Region string, Name string) (string, error)
return string: json format
func (*IbmVmSpecHandler) GetVMSpec ¶
func (vmHandler *IbmVmSpecHandler) GetVMSpec(Region string, Name string) (irs.VMSpecInfo, error)
func (*IbmVmSpecHandler) ListOrgVMSpec ¶
func (vmHandler *IbmVmSpecHandler) ListOrgVMSpec(Region string) (string, error)
return string: json format
func (*IbmVmSpecHandler) ListVMSpec ¶
func (vmHandler *IbmVmSpecHandler) ListVMSpec(Region string) ([]*irs.VMSpecInfo, error)
Click to show internal directories.
Click to hide internal directories.