resources

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NCP VPC Cloud LB type code : 'APPLICATION' | 'NETWORK' | 'NETWORK_PROXY'
	NcpLbType string = "NETWORK"

	// NCP VPC Cloud NLB network type code : 'PUBLIC' | 'PRIVATE' (Default: 'PUBLIC')
	NcpPublicNlBType   string = "PUBLIC"
	NcpInternalNlBType string = "PRIVATE"

	// NCP LB performance(throughput) type code : 'SMALL' | 'MEDIUM' | 'LARGE' (Default: 'SMALL')
	// You can only select 'SMALL' if the LB type is 'NETWORK' and the LB network type is 'PRIVATE'.
	DefaultThroughputType string = "SMALL"

	// NCP VPC Cloud default value for Listener and Health Monitor
	DefaultConnectionLimit        int32 = 60 // Min : 1, Max : 3600 sec(Dedicated LB : 1 ~ 480000). Default : 60 sec
	DefaultHealthCheckerInterval  int32 = 30 // Min: 5, Max: 300 (seconds). Default: 30 seconds
	DefaultHealthCheckerThreshold int32 = 2  // Min: 2, Max: 10. Default: 2

	LbTypeSubnetDefaultCidr string = ".240/28"
	LbTypeSubnetDefaultName string = "ncpvpc-subnet-for-nlb"
)
View Source
const (
	LnxTypeOs string = "LNX" // LNX (LINUX)
	WinTypeOS string = "WND" // WND (WINDOWS)
)
View Source
const (
	DefaultDiskSize string = "10"
)
View Source
const (
	// NCP VPC Snapshop Options : FULL | INCREMENTAL, Default : FULL
	NcpDefaultSnapshotTypeCode string = "FULL"
)

Variables

This section is empty.

Functions

func ConvertDiskStatus

func ConvertDiskStatus(diskStatus string) irs.DiskStatus

func ConvertImageStatus

func ConvertImageStatus(myImageStatus string) irs.MyImageStatus

func ConvertJsonString

func ConvertJsonString(v interface{}) (string, error)

Convert Cloud Object to JSON String type

func ConvertVMStatusString

func ConvertVMStatusString(vmStatus string) (irs.VMStatus, error)

func GetCallLogScheme

func GetCallLogScheme(zoneInfo string, 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)

func MappingImageInfo

func MappingImageInfo(serverImage vserver.Product) irs.ImageInfo

func MappingKeyPairInfo

func MappingKeyPairInfo(NcpKeyPairList *vserver.LoginKey) irs.KeyPairInfo

KeyPair 정보를 추출함

func String

func String(n int32) string

int32 to string 변환 : String(), int64 to string 변환 : strconv.Itoa()

Types

type NcpRegionZoneHandler

type NcpRegionZoneHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
}

func (NcpRegionZoneHandler) GetRegionZone

func (regionZoneHandler NcpRegionZoneHandler) GetRegionZone(regionCode string) (irs.RegionZoneInfo, error)

func (*NcpRegionZoneHandler) ListOrgRegion

func (regionZoneHandler *NcpRegionZoneHandler) ListOrgRegion() (string, error)

func (*NcpRegionZoneHandler) ListOrgZone

func (regionZoneHandler *NcpRegionZoneHandler) ListOrgZone() (string, error)

func (*NcpRegionZoneHandler) ListRegionZone

func (regionZoneHandler *NcpRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)

type NcpVpcDiskHandler

type NcpVpcDiskHandler struct {
	RegionInfo idrv.RegionInfo
	VMClient   *vserver.APIClient
}

func (*NcpVpcDiskHandler) AttachDisk

func (diskHandler *NcpVpcDiskHandler) AttachDisk(diskIID irs.IID, vmIID irs.IID) (irs.DiskInfo, error)

func (*NcpVpcDiskHandler) ChangeDiskSize

func (diskHandler *NcpVpcDiskHandler) ChangeDiskSize(diskIID irs.IID, size string) (bool, error)

func (*NcpVpcDiskHandler) CreateDisk

func (diskHandler *NcpVpcDiskHandler) CreateDisk(diskReqInfo irs.DiskInfo) (irs.DiskInfo, error)

Caution : Incase of NCP VPC, there must be a created VM to create a new disk volume.

func (*NcpVpcDiskHandler) DeleteDisk

func (diskHandler *NcpVpcDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)

func (*NcpVpcDiskHandler) DetachDisk

func (diskHandler *NcpVpcDiskHandler) DetachDisk(diskIID irs.IID, ownerVM irs.IID) (bool, error)

func (*NcpVpcDiskHandler) GetDisk

func (diskHandler *NcpVpcDiskHandler) GetDisk(diskIID irs.IID) (irs.DiskInfo, error)

func (*NcpVpcDiskHandler) GetDiskStatus

func (diskHandler *NcpVpcDiskHandler) GetDiskStatus(diskIID irs.IID) (irs.DiskStatus, error)

func (*NcpVpcDiskHandler) GetNcpDiskInfo

func (diskHandler *NcpVpcDiskHandler) GetNcpDiskInfo(diskIID irs.IID) (*vserver.BlockStorageInstance, error)

func (*NcpVpcDiskHandler) GetNcpVMList

func (diskHandler *NcpVpcDiskHandler) GetNcpVMList() ([]*vserver.ServerInstance, error)

func (*NcpVpcDiskHandler) IsBasicBlockStorage

func (diskHandler *NcpVpcDiskHandler) IsBasicBlockStorage(diskIID irs.IID) (bool, error)

func (*NcpVpcDiskHandler) ListDisk

func (diskHandler *NcpVpcDiskHandler) ListDisk() ([]*irs.DiskInfo, error)

func (*NcpVpcDiskHandler) MappingDiskInfo

func (diskHandler *NcpVpcDiskHandler) MappingDiskInfo(storage vserver.BlockStorageInstance) (irs.DiskInfo, error)

func (*NcpVpcDiskHandler) WaitForDiskAttachment

func (diskHandler *NcpVpcDiskHandler) WaitForDiskAttachment(diskIID irs.IID) (irs.DiskStatus, error)

Waiting for up to 500 seconds during Disk Attachment

func (*NcpVpcDiskHandler) WaitForDiskCreation

func (diskHandler *NcpVpcDiskHandler) WaitForDiskCreation(diskIID irs.IID) (irs.DiskStatus, error)

Waiting for up to 500 seconds during Disk creation until Disk info. can be get

func (*NcpVpcDiskHandler) WaitForDiskDetachment

func (diskHandler *NcpVpcDiskHandler) WaitForDiskDetachment(diskIID irs.IID) (irs.DiskStatus, error)

Waiting for up to 500 seconds during Disk Attachment

type NcpVpcImageHandler

type NcpVpcImageHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
}

func (*NcpVpcImageHandler) CheckWindowsImage

func (imageHandler *NcpVpcImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)

func (*NcpVpcImageHandler) CreateImage

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

func (*NcpVpcImageHandler) DeleteImage

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

func (*NcpVpcImageHandler) GetImage

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

func (*NcpVpcImageHandler) ListImage

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

type NcpVpcKeyPairHandler

type NcpVpcKeyPairHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
}

func (*NcpVpcKeyPairHandler) CreateKey

func (keyPairHandler *NcpVpcKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)

func (*NcpVpcKeyPairHandler) DeleteKey

func (keyPairHandler *NcpVpcKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)

func (*NcpVpcKeyPairHandler) GetKey

func (keyPairHandler *NcpVpcKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)

func (*NcpVpcKeyPairHandler) ListKey

func (keyPairHandler *NcpVpcKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)

type NcpVpcMyImageHandler

type NcpVpcMyImageHandler struct {
	RegionInfo idrv.RegionInfo
	VMClient   *vserver.APIClient
}

func (*NcpVpcMyImageHandler) CheckWindowsImage

func (myImageHandler *NcpVpcMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)

func (*NcpVpcMyImageHandler) DeleteMyImage

func (myImageHandler *NcpVpcMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)

func (*NcpVpcMyImageHandler) GetImageStatus

func (myImageHandler *NcpVpcMyImageHandler) GetImageStatus(myImageIID irs.IID) (irs.MyImageStatus, error)

func (*NcpVpcMyImageHandler) GetMyImage

func (myImageHandler *NcpVpcMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)

func (*NcpVpcMyImageHandler) GetOriginImageOSPlatform

func (myImageHandler *NcpVpcMyImageHandler) GetOriginImageOSPlatform(myImageIID irs.IID) (string, error)

func (*NcpVpcMyImageHandler) ListMyImage

func (myImageHandler *NcpVpcMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)

To Manage My Images

func (*NcpVpcMyImageHandler) MappingMyImageInfo

func (myImageHandler *NcpVpcMyImageHandler) MappingMyImageInfo(myImage *vserver.MemberServerImageInstance) (*irs.MyImageInfo, error)

func (*NcpVpcMyImageHandler) SnapshotVM

func (myImageHandler *NcpVpcMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)

To Take a Snapshot with VM ID (To Create My Image)

func (*NcpVpcMyImageHandler) WaitForImageSnapshot

func (myImageHandler *NcpVpcMyImageHandler) WaitForImageSnapshot(myImageIID irs.IID) (irs.MyImageStatus, error)

Waiting for up to 500 seconds during Taking a Snapshot from a VM

type NcpVpcNLBHandler

type NcpVpcNLBHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
	VPCClient      *vpc.APIClient
	VLBClient      *vlb.APIClient
}

func (*NcpVpcNLBHandler) AddVMs

func (nlbHandler *NcpVpcNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)

func (*NcpVpcNLBHandler) ChangeHealthCheckerInfo

func (nlbHandler *NcpVpcNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)

func (*NcpVpcNLBHandler) ChangeListener

func (nlbHandler *NcpVpcNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)

Note!! : Will be decided later if we would support bellow methoeds or not. ------ Frontend Control

func (*NcpVpcNLBHandler) ChangeVMGroupInfo

func (nlbHandler *NcpVpcNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)

------ Backend Control

func (*NcpVpcNLBHandler) CleanUpNLB

func (nlbHandler *NcpVpcNLBHandler) CleanUpNLB(vpcId *string) (bool, error)

Clean up the VMGroup and LB Type subnet

func (*NcpVpcNLBHandler) CreatNcpSubnetForNlbOnly

func (nlbHandler *NcpVpcNLBHandler) CreatNcpSubnetForNlbOnly(vpcIID irs.IID, subnetReqInfo irs.SubnetInfo) (*vpc.Subnet, error)

Only When any Subnet exists already(because of NetworkACLNo) Creat a Subnet for 'LB Only'('LB Type' Subnet)

func (*NcpVpcNLBHandler) CreateListener

func (nlbHandler *NcpVpcNLBHandler) CreateListener(nlbId string, nlbReqInfo irs.NLBInfo, vmGroupNo string) (*vlb.LoadBalancerListener, error)

func (*NcpVpcNLBHandler) CreateNLB

func (nlbHandler *NcpVpcNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (createNLB irs.NLBInfo, newErr error)

Note : Cloud-Barista supports only this case => [ LB : Listener : VMGroup : Health Checker = 1 : 1 : 1 : 1 ] ------ NLB Management

func (*NcpVpcNLBHandler) CreateVMGroup

func (nlbHandler *NcpVpcNLBHandler) CreateVMGroup(vpcId string, nlbReqInfo irs.NLBInfo) (*vlb.TargetGroup, error)

func (*NcpVpcNLBHandler) DeleteNLB

func (nlbHandler *NcpVpcNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)

func (*NcpVpcNLBHandler) DeleteVMGroup

func (nlbHandler *NcpVpcNLBHandler) DeleteVMGroup(vmGroupId string) (bool, error)

func (*NcpVpcNLBHandler) GetHealthCheckerInfo

func (nlbHandler *NcpVpcNLBHandler) GetHealthCheckerInfo(nlb vlb.LoadBalancerInstance) (irs.HealthCheckerInfo, error)

func (*NcpVpcNLBHandler) GetListenerInfo

func (nlbHandler *NcpVpcNLBHandler) GetListenerInfo(listenerId string, loadBalancerId string) (*irs.ListenerInfo, error)

func (*NcpVpcNLBHandler) GetNLB

func (nlbHandler *NcpVpcNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)

func (*NcpVpcNLBHandler) GetNcpNlbInfo

func (nlbHandler *NcpVpcNLBHandler) GetNcpNlbInfo(nlbIID irs.IID) (*vlb.LoadBalancerInstance, error)

func (*NcpVpcNLBHandler) GetNcpNlbListWithVpcId

func (nlbHandler *NcpVpcNLBHandler) GetNcpNlbListWithVpcId(vpcId *string) ([]*vlb.LoadBalancerInstance, error)

func (*NcpVpcNLBHandler) GetNcpNlbStatus

func (nlbHandler *NcpVpcNLBHandler) GetNcpNlbStatus(nlbIID irs.IID) (string, error)

NCP VPC LoadBalancerInstanceStatusName : Creating, Running, Changing, Terminating, Terminated, Repairing

func (*NcpVpcNLBHandler) GetNcpTargetGroupListWithVpcId

func (nlbHandler *NcpVpcNLBHandler) GetNcpTargetGroupListWithVpcId(vpcId string) ([]*vlb.TargetGroup, error)

func (*NcpVpcNLBHandler) GetNcpTargetVMList

func (nlbHandler *NcpVpcNLBHandler) GetNcpTargetVMList(targetGroupId string) ([]*vlb.Target, error)

Get VM Members of the NLB with the targetGroupId

func (*NcpVpcNLBHandler) GetNcpVpcInfoWithName

func (nlbHandler *NcpVpcNLBHandler) GetNcpVpcInfoWithName(vpcName string) (*vpc.Vpc, error)

func (*NcpVpcNLBHandler) GetSubnetIdForNlbOnly

func (nlbHandler *NcpVpcNLBHandler) GetSubnetIdForNlbOnly(vpcId string) (string, error)

Get SubnetId for 'LB Only' subnet('LB Type' subnet)

func (*NcpVpcNLBHandler) GetVMGroupHealthInfo

func (nlbHandler *NcpVpcNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)

func (*NcpVpcNLBHandler) GetVMGroupInfo

func (nlbHandler *NcpVpcNLBHandler) GetVMGroupInfo(nlb vlb.LoadBalancerInstance) (irs.VMGroupInfo, error)

func (*NcpVpcNLBHandler) ListNLB

func (nlbHandler *NcpVpcNLBHandler) ListNLB() ([]*irs.NLBInfo, error)

func (*NcpVpcNLBHandler) MappingListenerInfo

func (nlbHandler *NcpVpcNLBHandler) MappingListenerInfo(listener vlb.LoadBalancerListener) (irs.ListenerInfo, error)

func (*NcpVpcNLBHandler) MappingNlbInfo

func (nlbHandler *NcpVpcNLBHandler) MappingNlbInfo(nlb vlb.LoadBalancerInstance) (irs.NLBInfo, error)

NCP LB resource Def. : https://api.ncloud-docs.com/docs/en/common-vapidatatype-loadbalancerinstance

func (*NcpVpcNLBHandler) RemoveVMs

func (nlbHandler *NcpVpcNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)

func (*NcpVpcNLBHandler) WaitForDelNlb

func (nlbHandler *NcpVpcNLBHandler) WaitForDelNlb(nlbIID irs.IID) (bool, error)

func (*NcpVpcNLBHandler) WaitToGetNlbInfo

func (nlbHandler *NcpVpcNLBHandler) WaitToGetNlbInfo(nlbIID irs.IID) (bool, error)

type NcpVpcSecurityHandler

type NcpVpcSecurityHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
}

func (*NcpVpcSecurityHandler) AddRules

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

func (*NcpVpcSecurityHandler) CreateSecurity

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

func (*NcpVpcSecurityHandler) DeleteSecurity

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

func (*NcpVpcSecurityHandler) ExtractSecurityRuleInfo

func (securityHandler *NcpVpcSecurityHandler) ExtractSecurityRuleInfo(ncpVpcSGId string) ([]irs.SecurityRuleInfo, error)

Search NCP VPC SecurityGroup Rule List

func (*NcpVpcSecurityHandler) GetSecurity

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

func (*NcpVpcSecurityHandler) ListSecurity

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

func (*NcpVpcSecurityHandler) MappingSecurityInfo

func (securityHandler *NcpVpcSecurityHandler) MappingSecurityInfo(ncpVpcSG vserver.AccessControlGroup) (irs.SecurityInfo, error)

func (*NcpVpcSecurityHandler) OpenOutboundAllProtocol

func (securityHandler *NcpVpcSecurityHandler) OpenOutboundAllProtocol(sgIID irs.IID) error

func (*NcpVpcSecurityHandler) RemoveRules

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

type NcpVpcVMHandler

type NcpVpcVMHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
}

func (*NcpVpcVMHandler) CreateLinuxInitScript

func (vmHandler *NcpVpcVMHandler) CreateLinuxInitScript(imageIID irs.IID, keyPairId string) (*string, error)

func (*NcpVpcVMHandler) CreateWinInitScript

func (vmHandler *NcpVpcVMHandler) CreateWinInitScript(passWord string) (*string, error)

func (*NcpVpcVMHandler) DeleteInitScript

func (vmHandler *NcpVpcVMHandler) DeleteInitScript(initScriptNum *string) (*string, error)

func (*NcpVpcVMHandler) DeletePublicIP

func (vmHandler *NcpVpcVMHandler) DeletePublicIP(vmInfo irs.VMInfo) (irs.VMStatus, error)

Whenever a VM is terminated, Delete the public IP that the VM has

func (*NcpVpcVMHandler) GetNcpVMInfo

func (vmHandler *NcpVpcVMHandler) GetNcpVMInfo(instanceId string) (*vserver.ServerInstance, error)

func (*NcpVpcVMHandler) GetNetworkInterfaceName

func (vmHandler *NcpVpcVMHandler) GetNetworkInterfaceName(netInterfaceNo *string) (*string, error)

func (*NcpVpcVMHandler) GetRootPassword

func (vmHandler *NcpVpcVMHandler) GetRootPassword(vmId *string, privateKey *string) (*string, error)

func (*NcpVpcVMHandler) GetVM

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

func (*NcpVpcVMHandler) GetVMStatus

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

func (*NcpVpcVMHandler) GetVmDataDiskList

func (vmHandler *NcpVpcVMHandler) GetVmDataDiskList(vmId *string) ([]irs.IID, error)

func (*NcpVpcVMHandler) GetVmIdByName

func (vmHandler *NcpVpcVMHandler) GetVmIdByName(vmNameId string) (string, error)

func (*NcpVpcVMHandler) GetVmRootDiskInfo

func (vmHandler *NcpVpcVMHandler) GetVmRootDiskInfo(vmId *string) (*string, *string, error)

func (*NcpVpcVMHandler) ListVM

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

func (*NcpVpcVMHandler) ListVMStatus

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

func (*NcpVpcVMHandler) MappingServerInfo

func (vmHandler *NcpVpcVMHandler) MappingServerInfo(NcpInstance *vserver.ServerInstance) (irs.VMInfo, error)

func (*NcpVpcVMHandler) RebootVM

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

func (*NcpVpcVMHandler) ResumeVM

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

func (*NcpVpcVMHandler) StartVM

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

func (*NcpVpcVMHandler) SuspendVM

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

func (*NcpVpcVMHandler) TerminateVM

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

func (*NcpVpcVMHandler) WaitToDelPublicIp

func (vmHandler *NcpVpcVMHandler) WaitToDelPublicIp(vmIID irs.IID) (irs.VMStatus, error)

Waiting for up to 600 seconds until Public IP can be Deleted.

func (*NcpVpcVMHandler) WaitToGetInfo

func (vmHandler *NcpVpcVMHandler) WaitToGetInfo(vmIID irs.IID) (irs.VMStatus, error)

Waiting for up to 500 seconds until VM info. can be Get

type NcpVpcVMSpecHandler

type NcpVpcVMSpecHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VMClient       *vserver.APIClient
}

func (*NcpVpcVMSpecHandler) GetOrgVMSpec

func (vmSpecHandler *NcpVpcVMSpecHandler) GetOrgVMSpec(specName string) (string, error)

func (*NcpVpcVMSpecHandler) GetVMSpec

func (vmSpecHandler *NcpVpcVMSpecHandler) GetVMSpec(specName string) (irs.VMSpecInfo, error)

func (*NcpVpcVMSpecHandler) ListOrgVMSpec

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

func (*NcpVpcVMSpecHandler) ListVMSpec

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

func (*NcpVpcVMSpecHandler) MappingVMSpecInfo

func (vmSpecHandler *NcpVpcVMSpecHandler) MappingVMSpecInfo(ImageId string, NcpVMSpec *vserver.Product) irs.VMSpecInfo

type NcpVpcVPCHandler

type NcpVpcVPCHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	VPCClient      *vpc.APIClient
}

func (*NcpVpcVPCHandler) AddSubnet

func (vpcHandler *NcpVpcVPCHandler) AddSubnet(vpcIID irs.IID, subnetReqInfo irs.SubnetInfo) (irs.VPCInfo, error)

Only When any Subnet exists already(because of NetworkACLNo)

func (*NcpVpcVPCHandler) CreateSubnet

func (vpcHandler *NcpVpcVPCHandler) CreateSubnet(vpcIID irs.IID, netAclNo *string, subnetUsageType *string, subnetReqInfo irs.SubnetInfo) (*vpc.Subnet, error)

func (*NcpVpcVPCHandler) CreateVPC

func (vpcHandler *NcpVpcVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)

func (*NcpVpcVPCHandler) DeleteVPC

func (vpcHandler *NcpVpcVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)

func (*NcpVpcVPCHandler) GetDefaultNetworkAclNo

func (vpcHandler *NcpVpcVPCHandler) GetDefaultNetworkAclNo(vpcIID irs.IID) (*string, error)

func (*NcpVpcVPCHandler) GetNcpSubnetInfo

func (vpcHandler *NcpVpcVPCHandler) GetNcpSubnetInfo(sunbnetId *string) (*vpc.Subnet, error)

func (*NcpVpcVPCHandler) GetNcpVpcInfo

func (vpcHandler *NcpVpcVPCHandler) GetNcpVpcInfo(vpcId *string) (*vpc.Vpc, error)

func (*NcpVpcVPCHandler) GetSubnet

func (vpcHandler *NcpVpcVPCHandler) GetSubnet(sunbnetIID irs.IID) (irs.SubnetInfo, error)

func (*NcpVpcVPCHandler) GetVPC

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

func (*NcpVpcVPCHandler) ListSubnet

func (vpcHandler *NcpVpcVPCHandler) ListSubnet(vpcNo *string) ([]*irs.SubnetInfo, error)

func (*NcpVpcVPCHandler) ListVPC

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

func (*NcpVpcVPCHandler) MappingSubnetInfo

func (vpcHandler *NcpVpcVPCHandler) MappingSubnetInfo(subnet *vpc.Subnet) *irs.SubnetInfo

func (*NcpVpcVPCHandler) MappingVpcInfo

func (vpcHandler *NcpVpcVPCHandler) MappingVpcInfo(vpc *vpc.Vpc) (*irs.VPCInfo, error)

func (*NcpVpcVPCHandler) RemoveSubnet

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

func (*NcpVpcVPCHandler) WaitForCreateSubnet

func (vpcHandler *NcpVpcVPCHandler) WaitForCreateSubnet(subnetId *string) (string, error)

Waiting for up to 600 seconds until Subnet Creation processes are Finished.

func (*NcpVpcVPCHandler) WaitForCreateVPC

func (vpcHandler *NcpVpcVPCHandler) WaitForCreateVPC(vpcIID irs.IID) (string, error)

Waiting for up to 600 seconds until VPC and Network ACL Creation processes are Finished.

func (*NcpVpcVPCHandler) WaitForDeleteSubnet

func (vpcHandler *NcpVpcVPCHandler) WaitForDeleteSubnet(vpcNo string, subnetIID irs.IID) (string, error)

Waiting for up to 600 seconds until VPC and Network ACL Creation processes are Finished.

Jump to

Keyboard shortcuts

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