resources

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CBDefaultVmUserName string = "cb-user"
	CBCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-ibm/cloud-init"
)

Variables

This section is empty.

Functions

func GetCallLogScheme

func GetCallLogScheme(region idrv.RegionInfo, resourceType call.RES_TYPE, resourceName string, apiName string) call.CLOUDLOGSCHEMA

func InitLog

func InitLog()

func LoggingError

func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)

func LoggingInfo

func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)

Types

type IBMIPBindReqInfo

type IBMIPBindReqInfo struct {
	NetworkInterfaceID string
	// contains filtered or unexported fields
}

type IbmImageHandler

type IbmImageHandler struct {
	CredentialInfo idrv.CredentialInfo
	Region         idrv.RegionInfo
	VpcService     *vpcv1.VpcV1
	Ctx            context.Context
}

func (*IbmImageHandler) CreateImage

func (imageHandler *IbmImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)

func (*IbmImageHandler) DeleteImage

func (imageHandler *IbmImageHandler) DeleteImage(imageIID irs.IID) (bool, error)

func (*IbmImageHandler) GetImage

func (imageHandler *IbmImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)

func (*IbmImageHandler) ListImage

func (imageHandler *IbmImageHandler) ListImage() ([]*irs.ImageInfo, error)

type IbmKeyPairHandler

type IbmKeyPairHandler struct {
	CredentialInfo idrv.CredentialInfo
	Region         idrv.RegionInfo
	VpcService     *vpcv1.VpcV1
	Ctx            context.Context
}

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
	VpcService     *vpcv1.VpcV1
	Ctx            context.Context
}

func (*IbmSecurityHandler) AddRules added in v0.5.4

func (securityHandler *IbmSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)

func (*IbmSecurityHandler) CreateSecurity

func (securityHandler *IbmSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)

func (*IbmSecurityHandler) DeleteSecurity

func (securityHandler *IbmSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)

func (*IbmSecurityHandler) GetSecurity

func (securityHandler *IbmSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)

func (*IbmSecurityHandler) ListSecurity

func (securityHandler *IbmSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)

func (*IbmSecurityHandler) RemoveRules added in v0.5.4

func (securityHandler *IbmSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)

type IbmVMHandler

type IbmVMHandler struct {
	CredentialInfo idrv.CredentialInfo
	Region         idrv.RegionInfo
	VpcService     *vpcv1.VpcV1
	Ctx            context.Context
}

func (*IbmVMHandler) GetVM

func (vmHandler *IbmVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)

func (*IbmVMHandler) GetVMStatus

func (vmHandler *IbmVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)

func (*IbmVMHandler) ListVM

func (vmHandler *IbmVMHandler) ListVM() ([]*irs.VMInfo, error)

func (*IbmVMHandler) ListVMStatus

func (vmHandler *IbmVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)

func (*IbmVMHandler) RebootVM

func (vmHandler *IbmVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)

func (*IbmVMHandler) ResumeVM

func (vmHandler *IbmVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)

func (*IbmVMHandler) StartVM

func (vmHandler *IbmVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)

func (*IbmVMHandler) SuspendVM

func (vmHandler *IbmVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)

func (*IbmVMHandler) TerminateVM

func (vmHandler *IbmVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)

type IbmVPCHandler

type IbmVPCHandler struct {
	CredentialInfo idrv.CredentialInfo
	Region         idrv.RegionInfo
	VpcService     *vpcv1.VpcV1
	Ctx            context.Context
}

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) GetVPC

func (vpcHandler *IbmVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)

func (*IbmVPCHandler) ListVPC

func (vpcHandler *IbmVPCHandler) ListVPC() ([]*irs.VPCInfo, error)

func (*IbmVPCHandler) RemoveSubnet

func (vpcHandler *IbmVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)

type IbmVmSpecHandler

type IbmVmSpecHandler struct {
	CredentialInfo idrv.CredentialInfo
	Region         idrv.RegionInfo
	VpcService     *vpcv1.VpcV1
	Ctx            context.Context
}

func (*IbmVmSpecHandler) GetOrgVMSpec

func (vmSpecHandler *IbmVmSpecHandler) GetOrgVMSpec(Name string) (string, error)

func (*IbmVmSpecHandler) GetVMSpec

func (vmSpecHandler *IbmVmSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)

func (*IbmVmSpecHandler) ListOrgVMSpec

func (vmSpecHandler *IbmVmSpecHandler) ListOrgVMSpec() (string, error)

func (*IbmVmSpecHandler) ListVMSpec

func (vmSpecHandler *IbmVmSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)

Jump to

Keyboard shortcuts

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