Documentation
¶
Index ¶
- Constants
- Variables
- func AddNLBVMs(connectionName string, nlbName string, vmNames []string) (*cres.NLBInfo, error)
- func AddNodeGroup(connectionName string, rsType string, clusterName string, ...) (*cres.ClusterInfo, error)
- func AddRules(connectionName string, sgName string, reqInfoList []cres.SecurityRuleInfo) (*cres.SecurityInfo, error)
- func AddSubnet(connectionName string, rsType string, vpcName string, reqInfo cres.SubnetInfo, ...) (*cres.VPCInfo, error)
- func AnyCall(connectionName string, reqInfo cres.AnyCallInfo) (*cres.AnyCallInfo, error)
- func AttachDisk(connectionName string, diskName string, ownerVMName string) (*cres.DiskInfo, error)
- func ChangeDiskSize(connectionName string, diskName string, size string) (bool, error)
- func ChangeHealthChecker(connectionName string, nlbName string, healthChecker cres.HealthCheckerInfo) (*cres.NLBInfo, error)
- func ChangeListener(connectionName string, nlbName string, listener cres.ListenerInfo) (*cres.NLBInfo, error)
- func ChangeNodeGroupScaling(connectionName string, clusterName string, nodeGroupName string, ...) (cres.NodeGroupInfo, error)
- func ChangeVMGroup(connectionName string, nlbName string, vmGroup cres.VMGroupInfo) (*cres.NLBInfo, error)
- func ControlVM(connectionName string, rsType string, nameID string, action string) (cres.VMStatus, error)
- func CreateCluster(connectionName string, rsType string, reqInfo cres.ClusterInfo, ...) (*cres.ClusterInfo, error)
- func CreateDisk(connectionName string, rsType string, reqInfo cres.DiskInfo, ...) (*cres.DiskInfo, error)
- func CreateKey(connectionName string, rsType string, reqInfo cres.KeyPairReqInfo, ...) (*cres.KeyPairInfo, error)
- func CreateNLB(connectionName string, rsType string, reqInfo cres.NLBInfo, ...) (*cres.NLBInfo, error)
- func CreateSecurity(connectionName string, rsType string, reqInfo cres.SecurityReqInfo, ...) (*cres.SecurityInfo, error)
- func CreateVPC(connectionName string, rsType string, reqInfo cres.VPCReqInfo, ...) (*cres.VPCInfo, error)
- func DeleteCSPResource(connectionName string, rsType string, systemID string) (bool, cres.VMStatus, error)
- func DeleteCluster(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DeleteDisk(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DeleteKey(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DeleteMyImage(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DeleteNLB(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DeleteSecurity(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DeleteVM(connectionName string, rsType string, nameID string, force string) (bool, cres.VMStatus, error)
- func DeleteVPC(connectionName string, rsType string, nameID string, force string) (bool, error)
- func DetachDisk(connectionName string, diskName string, ownerVMName string) (bool, error)
- func EmptyCheckAndTrim(inputName string, inputValue string) (string, error)
- func GetAllSPLockInfo() []string
- func GetCSPResourceInfo(connectionName string, rsType string, systemID string) ([]byte, error)
- func GetCSPResourceName(connectionName string, rsType string, nameID string) (string, error)
- func GetCSPVM(connectionName string, rsType string, cspID string) (*cres.VMInfo, error)
- func GetCluster(connectionName string, rsType string, clusterName string) (*cres.ClusterInfo, error)
- func GetClusterOwnerVPC(connectionName string, cspID string) (owerVPC cres.IID, err error)
- func GetDisk(connectionName string, rsType string, nameID string) (*cres.DiskInfo, error)
- func GetID_MGMT(thisMode string) string
- func GetImage(connectionName string, rsType string, nameID string) (*cres.ImageInfo, error)
- func GetKey(connectionName string, rsType string, nameID string) (*cres.KeyPairInfo, error)
- func GetMyImage(connectionName string, rsType string, nameID string) (*cres.MyImageInfo, error)
- func GetNLB(connectionName string, rsType string, nameID string) (*cres.NLBInfo, error)
- func GetNLBOwnerVPC(connectionName string, cspID string) (owerVPC cres.IID, err error)
- func GetOrgVMSpec(connectionName string, nameID string) (string, error)
- func GetPriceInfo(connectionName string, productFamily string, regionName string, ...) (string, error)
- func GetRegionZone(connectionName string, nameID string) (*cres.RegionZoneInfo, error)
- func GetRegionZonePreConfig(driverName string, credentialName string, nameID string) (*cres.RegionZoneInfo, error)
- func GetSGOwnerVPC(connectionName string, cspID string) (owerVPC cres.IID, err error)
- func GetSecurity(connectionName string, rsType string, nameID string) (*cres.SecurityInfo, error)
- func GetVM(connectionName string, rsType string, nameID string) (*cres.VMInfo, error)
- func GetVMGroupHealthInfo(connectionName string, nlbName string) (*cres.HealthInfo, error)
- func GetVMSpec(connectionName string, nameID string) (*cres.VMSpecInfo, error)
- func GetVMStatus(connectionName string, rsType string, nameID string) (cres.VMStatus, error)
- func GetVPC(connectionName string, rsType string, nameID string) (*cres.VPCInfo, error)
- func ListCluster(connectionName string, nameSpace string, rsType string) ([]*cres.ClusterInfo, error)
- func ListDisk(connectionName string, rsType string) ([]*cres.DiskInfo, error)
- func ListImage(connectionName string, rsType string) ([]*cres.ImageInfo, error)
- func ListKey(connectionName string, rsType string) ([]*cres.KeyPairInfo, error)
- func ListMyImage(connectionName string, rsType string) ([]*cres.MyImageInfo, error)
- func ListNLB(connectionName string, rsType string) ([]*cres.NLBInfo, error)
- func ListOrgRegion(connectionName string) (string, error)
- func ListOrgRegionPreConfig(driverName string, credentialName string) (string, error)
- func ListOrgVMSpec(connectionName string) (string, error)
- func ListOrgZone(connectionName string) (string, error)
- func ListProductFamily(connectionName string, regionName string) ([]string, error)
- func ListRegionZone(connectionName string) ([]*cres.RegionZoneInfo, error)
- func ListRegionZonePreConfig(driverName string, credentialName string) ([]*cres.RegionZoneInfo, error)
- func ListSecurity(connectionName string, rsType string) ([]*cres.SecurityInfo, error)
- func ListVM(connectionName string, rsType string) ([]*cres.VMInfo, error)
- func ListVMSpec(connectionName string) ([]*cres.VMSpecInfo, error)
- func ListVMStatus(connectionName string, rsType string) ([]*cres.VMStatusInfo, error)
- func ListVPC(connectionName string, rsType string) ([]*cres.VPCInfo, error)
- func RegisterCluster(connectionName string, vpcUserID string, userIID cres.IID) (*cres.ClusterInfo, error)
- func RegisterDisk(connectionName string, zoneId string, userIID cres.IID) (*cres.DiskInfo, error)
- func RegisterKey(connectionName string, userIID cres.IID) (*cres.KeyPairInfo, error)
- func RegisterMyImage(connectionName string, userIID cres.IID) (*cres.MyImageInfo, error)
- func RegisterNLB(connectionName string, vpcUserID string, userIID cres.IID) (*cres.NLBInfo, error)
- func RegisterSecurity(connectionName string, vpcUserID string, userIID cres.IID) (*cres.SecurityInfo, error)
- func RegisterSubnet(connectionName string, vpcName string, userIID cres.IID) (*cres.VPCInfo, error)
- func RegisterVM(connectionName string, userIID cres.IID) (*cres.VMInfo, error)
- func RegisterVPC(connectionName string, userIID cres.IID) (*cres.VPCInfo, error)
- func RemoveCSPNodeGroup(connectionName string, clusterName string, systemID string) (bool, error)
- func RemoveCSPSubnet(connectionName string, vpcName string, systemID string) (bool, error)
- func RemoveNLBVMs(connectionName string, nlbName string, vmNames []string) (bool, error)
- func RemoveNodeGroup(connectionName string, clusterName string, nodeGroupName string, force string) (bool, error)
- func RemoveRules(connectionName string, sgName string, reqRuleInfoList []cres.SecurityRuleInfo) (bool, error)
- func RemoveSubnet(connectionName string, vpcName string, nameID string, force string) (bool, error)
- func RsTypeString(rsType string) string
- func SetNodeGroupAutoScaling(connectionName string, clusterName string, nodeGroupName string, on bool) (bool, error)
- func SnapshotVM(connectionName string, rsType string, reqInfo cres.MyImageInfo, ...) (*cres.MyImageInfo, error)
- func StartVM(connectionName string, rsType string, reqInfo cres.VMReqInfo, ...) (*cres.VMInfo, error)
- func UnregisterResource(connectionName string, rsType string, nameId string) (bool, error)
- func UnregisterSubnet(connectionName string, vpcName string, nameId string) (bool, error)
- func UpgradeCluster(connectionName string, clusterName string, newVersion string) (cres.ClusterInfo, error)
- func ValidateStruct(is interface{}, emptyPermissionList []string) error
- type AllResourceList
- type ClusterDependentIIDInfo
- type ClusterIIDInfo
- type DiskIIDInfo
- type FirstIIDInfo
- type KeyIIDInfo
- type MyImageIIDInfo
- type NLBIIDInfo
- type NodeGroupIIDInfo
- type ResultVMInfo
- type ResultVPCInfo
- type SGIIDInfo
- type SubnetIIDInfo
- type VMIIDInfo
- type VMUsingResources
- type VPCDependentIIDInfo
- type VPCIIDInfo
- type WAITER
- type ZoneLevelIIDInfo
Constants ¶
const CONNECTION_NAME_COLUMN = "connection_name"
==================================================================== Common column name and struct for GORM
const NAME_ID_COLUMN = "name_id"
const OWNER_CLUSTER_NAME_COLUMN = "owner_cluster_name"
const OWNER_VPC_NAME_COLUMN = "owner_vpc_name"
const SYSTEM_ID_COLUMN = "system_id"
Variables ¶
var GoServicePort string
GO Service Port
var MiddleStartTime string
var ServerIPorName string
// CB-Spider Servcie Address Configuration // cf) https://github.com/cloud-barista/cb-spider/wiki/CB-Spider-Service-Address-Configuration REST and GO SERVER_ADDRESS since v0.4.4
var ServerPort string
var ServiceIPorName string
REST SERVICE_ADDRESS for AdminWeb since v0.4.4
var ServicePort string
var ShortStartTime string
var StartTime string
Functions ¶
func AddNLBVMs ¶ added in v0.5.11
(1) check exist(NameID) and VMs (2) add VMs (3) Get NLBInfo (4) Set ResoureInfo
func AddNodeGroup ¶ added in v0.6.13
func AddNodeGroup(connectionName string, rsType string, clusterName string, reqInfo cres.NodeGroupInfo) (*cres.ClusterInfo, error)
(1) check exist(NameID) (2) add NodeGroup (3) Get ClusterInfo (4) Set ResoureInfo
func AddRules ¶ added in v0.5.4
func AddRules(connectionName string, sgName string, reqInfoList []cres.SecurityRuleInfo) (*cres.SecurityInfo, error)
(1) check exist(NameID) (2) add Rules
func AddSubnet ¶ added in v0.3.1
func AddSubnet(connectionName string, rsType string, vpcName string, reqInfo cres.SubnetInfo, IDTransformMode string) (*cres.VPCInfo, error)
(1) check exist(NameID) (2) create Resource (3) insert IID
func AnyCall ¶ added in v0.6.9
func AnyCall(connectionName string, reqInfo cres.AnyCallInfo) (*cres.AnyCallInfo, error)
================ AnyCall Handler
func AttachDisk ¶ added in v0.6.7
(1) check exist(NameID) and VMs (2) attach disk to VM (3) Set ResoureInfo
func ChangeDiskSize ¶ added in v0.6.7
func ChangeHealthChecker ¶ added in v0.5.10
func ChangeHealthChecker(connectionName string, nlbName string, healthChecker cres.HealthCheckerInfo) (*cres.NLBInfo, error)
---------------------------------------------------// @todo To support or not will be decided later. // ---------------------------------------------------// (1) check exist(NameID) (2) change HealthCheckerInfo (3) Get NLBInfo (4) Set ResoureInfo
func ChangeListener ¶ added in v0.5.10
func ChangeListener(connectionName string, nlbName string, listener cres.ListenerInfo) (*cres.NLBInfo, error)
---------------------------------------------------// @todo To support or not will be decided later. // ---------------------------------------------------// (1) check exist(NameID) (2) change listener (3) Get NLBInfo (4) Set ResoureInfo
func ChangeNodeGroupScaling ¶ added in v0.6.13
func ChangeVMGroup ¶ added in v0.5.10
func ChangeVMGroup(connectionName string, nlbName string, vmGroup cres.VMGroupInfo) (*cres.NLBInfo, error)
---------------------------------------------------// @todo To support or not will be decided later. // ---------------------------------------------------// (1) check exist(NameID) (2) change VMGroup (3) Get NLBInfo (4) Set ResoureInfo
func ControlVM ¶
func ControlVM(connectionName string, rsType string, nameID string, action string) (cres.VMStatus, error)
(1) get IID(NameId) (2) control CSP:VM(SystemId)
func CreateCluster ¶ added in v0.6.13
func CreateCluster(connectionName string, rsType string, reqInfo cres.ClusterInfo, IDTransformMode string) (*cres.ClusterInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID (7) set used Resources's userIID
func CreateDisk ¶ added in v0.6.7
func CreateDisk(connectionName string, rsType string, reqInfo cres.DiskInfo, IDTransformMode string) (*cres.DiskInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID
func CreateKey ¶
func CreateKey(connectionName string, rsType string, reqInfo cres.KeyPairReqInfo, IDTransformMode string) (*cres.KeyPairInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID
func CreateNLB ¶ added in v0.5.10
func CreateNLB(connectionName string, rsType string, reqInfo cres.NLBInfo, IDTransformMode string) (*cres.NLBInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID
func CreateSecurity ¶
func CreateSecurity(connectionName string, rsType string, reqInfo cres.SecurityReqInfo, IDTransformMode string) (*cres.SecurityInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID
func CreateVPC ¶
func CreateVPC(connectionName string, rsType string, reqInfo cres.VPCReqInfo, IDTransformMode string) (*cres.VPCInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID
func DeleteCSPResource ¶
func DeleteCSPResource(connectionName string, rsType string, systemID string) (bool, cres.VMStatus, error)
delete CSP's Resource(SystemId)
func DeleteCluster ¶ added in v0.7.6
func DeleteDisk ¶ added in v0.7.6
func DeleteMyImage ¶ added in v0.7.6
func DeleteSecurity ¶ added in v0.7.6
func DeleteSecurity(connectionName string, rsType string, nameID string, force string) (bool, error)
(1) get spiderIID (2) delete Resource(SystemId) (3) delete IID
func DetachDisk ¶ added in v0.6.7
(1) check exist(NameID) (2) detach disk from VM
func EmptyCheckAndTrim ¶ added in v0.4.15
func GetAllSPLockInfo ¶ added in v0.5.7
func GetAllSPLockInfo() []string
func GetCSPResourceInfo ¶ added in v0.6.17
Get Json string of CSP's Resource(SystemId) Info
func GetCSPResourceName ¶ added in v0.6.6
================ get CSP Name
func GetCluster ¶ added in v0.6.13
func GetCluster(connectionName string, rsType string, clusterName string) (*cres.ClusterInfo, error)
(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)
func GetClusterOwnerVPC ¶ added in v0.6.13
func GetDisk ¶ added in v0.6.7
(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)
func GetID_MGMT ¶ added in v0.8.15
func GetMyImage ¶ added in v0.6.10
(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)
func GetNLB ¶ added in v0.5.10
(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)
func GetNLBOwnerVPC ¶ added in v0.5.10
func GetPriceInfo ¶ added in v0.8.2
func GetRegionZone ¶ added in v0.7.6
func GetRegionZone(connectionName string, nameID string) (*cres.RegionZoneInfo, error)
func GetRegionZonePreConfig ¶ added in v0.8.5
func GetSGOwnerVPC ¶ added in v0.5.5
func GetSecurity ¶
(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)
func GetVMGroupHealthInfo ¶ added in v0.5.10
func GetVMGroupHealthInfo(connectionName string, nlbName string) (*cres.HealthInfo, error)
(1) check exist(NameID) (2) Get HealthInfo (3) Get NLBInfo (4) Set ResoureInfo
func GetVMStatus ¶
(1) get IID(NameId) (2) get CSP:VMStatus(SystemId)
func ListCluster ¶ added in v0.6.13
func ListCluster(connectionName string, nameSpace string, rsType string) ([]*cres.ClusterInfo, error)
(1) get IID:list (2) get ClusterInfo:list (3) set userIID, and ...
func ListKey ¶
func ListKey(connectionName string, rsType string) ([]*cres.KeyPairInfo, error)
(1) get IID:list (2) get KeyInfo:list
func ListMyImage ¶ added in v0.6.10
func ListMyImage(connectionName string, rsType string) ([]*cres.MyImageInfo, error)
(1) get IID:list (2) get MyImageInfo:list (3) set userIID, and ...
func ListOrgRegion ¶ added in v0.7.6
func ListOrgRegionPreConfig ¶ added in v0.8.5
func ListOrgVMSpec ¶
func ListOrgZone ¶ added in v0.7.6
func ListProductFamily ¶ added in v0.8.2
================ PriceInfo Handler
func ListRegionZone ¶ added in v0.7.6
func ListRegionZone(connectionName string) ([]*cres.RegionZoneInfo, error)
================ RegionZone Handler
func ListRegionZonePreConfig ¶ added in v0.8.5
func ListRegionZonePreConfig(driverName string, credentialName string) ([]*cres.RegionZoneInfo, error)
func ListSecurity ¶
func ListSecurity(connectionName string, rsType string) ([]*cres.SecurityInfo, error)
(1) get IID:list (2) get SecurityInfo:list (3) set userIID, and ...
func ListVMSpec ¶
func ListVMSpec(connectionName string) ([]*cres.VMSpecInfo, error)
================ VMSpec Handler
func ListVMStatus ¶
func ListVMStatus(connectionName string, rsType string) ([]*cres.VMStatusInfo, error)
(1) get IID:list (2) get VMStatusInfo:list
func RegisterCluster ¶ added in v0.6.13
func RegisterCluster(connectionName string, vpcUserID string, userIID cres.IID) (*cres.ClusterInfo, error)
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (0) check VPC existence(VPC UserID) (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterDisk ¶ added in v0.6.7
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterKey ¶ added in v0.4.12
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterMyImage ¶ added in v0.6.10
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterNLB ¶ added in v0.5.10
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (0) check VPC existence(VPC UserID) (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterSecurity ¶ added in v0.4.12
func RegisterSecurity(connectionName string, vpcUserID string, userIID cres.IID) (*cres.SecurityInfo, error)
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (0) check VPC existence(VPC UserID) (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterSubnet ¶ added in v0.7.6
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterVM ¶ added in v0.4.12
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RegisterVPC ¶ added in v0.4.12
UserIID{UserID, CSP-ID} => SpiderIID{UserID, SP-XID:CSP-ID} (1) check existence(UserID) (2) get resource info(CSP-ID) (3) create spiderIID: {UserID, SP-XID:CSP-ID} (4) insert spiderIID
func RemoveCSPNodeGroup ¶ added in v0.6.14
func RemoveCSPSubnet ¶ added in v0.4.11
remove CSP's Subnet(SystemId)
func RemoveNLBVMs ¶ added in v0.5.11
(1) check exist(NameID) (2) remove VMs
func RemoveNodeGroup ¶ added in v0.6.13
func RemoveRules ¶ added in v0.5.4
func RemoveRules(connectionName string, sgName string, reqRuleInfoList []cres.SecurityRuleInfo) (bool, error)
(1) check exist(NameID) (2) remove Rules
func RemoveSubnet ¶ added in v0.4.11
(1) get spiderIID (2) delete Resource(SystemId) (3) delete IID
func RsTypeString ¶ added in v0.5.1
func SetNodeGroupAutoScaling ¶ added in v0.6.13
func SnapshotVM ¶ added in v0.6.10
func SnapshotVM(connectionName string, rsType string, reqInfo cres.MyImageInfo, IDTransformMode string) (*cres.MyImageInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) create Resource (4) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (5) insert spiderIID (6) create userIID
func StartVM ¶
func StartVM(connectionName string, rsType string, reqInfo cres.VMReqInfo, IDTransformMode string) (*cres.VMInfo, error)
(1) check exist(NameID) (2) generate SP-XID and create reqIID, driverIID (3) clone the reqInfo with DriverIID (4) create Resource (5) create spiderIID: {reqNameID, "driverNameID:driverSystemID"} (6) insert spiderIID (7) create userIID
func UnregisterResource ¶ added in v0.4.12
UnregisterResource API does not delete the real resource. This API just unregister the resource from Spider. (1) check exist(NameID) (2) delete SpiderIID
func UnregisterSubnet ¶ added in v0.7.6
func UpgradeCluster ¶ added in v0.6.14
func ValidateStruct ¶ added in v0.4.15
Types ¶
type AllResourceList ¶
type AllResourceList struct { AllList struct { MappedList []*cres.IID `json:"MappedList"` OnlySpiderList []*cres.IID `json:"OnlySpiderList"` OnlyCSPList []*cres.IID `json:"OnlyCSPList"` } }
func ListAllResource ¶
func ListAllResource(connectionName string, rsType string) (AllResourceList, error)
list all Resources for management (1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list (4) make MappedList, OnlySpiderList, OnlyCSPList
type ClusterDependentIIDInfo ¶ added in v0.7.6
type ClusterIIDInfo ¶ added in v0.7.6
type ClusterIIDInfo VPCDependentIIDInfo
==================================================================== type for GORM
func (ClusterIIDInfo) TableName ¶ added in v0.7.6
func (ClusterIIDInfo) TableName() string
type DiskIIDInfo ¶ added in v0.7.6
type DiskIIDInfo ZoneLevelIIDInfo
func (DiskIIDInfo) TableName ¶ added in v0.7.6
func (DiskIIDInfo) TableName() string
type FirstIIDInfo ¶ added in v0.7.6
type KeyIIDInfo ¶ added in v0.7.6
type KeyIIDInfo FirstIIDInfo
func (KeyIIDInfo) TableName ¶ added in v0.7.6
func (KeyIIDInfo) TableName() string
type MyImageIIDInfo ¶ added in v0.7.6
type MyImageIIDInfo FirstIIDInfo
func (MyImageIIDInfo) TableName ¶ added in v0.7.6
func (MyImageIIDInfo) TableName() string
type NLBIIDInfo ¶ added in v0.7.6
type NLBIIDInfo VPCDependentIIDInfo
func (NLBIIDInfo) TableName ¶ added in v0.7.6
func (NLBIIDInfo) TableName() string
type NodeGroupIIDInfo ¶ added in v0.7.6
type NodeGroupIIDInfo ClusterDependentIIDInfo
func (NodeGroupIIDInfo) TableName ¶ added in v0.7.6
func (NodeGroupIIDInfo) TableName() string
type ResultVMInfo ¶ added in v0.5.9
type ResultVMInfo struct {
// contains filtered or unexported fields
}
type ResultVPCInfo ¶ added in v0.5.9
type ResultVPCInfo struct {
// contains filtered or unexported fields
}
type SGIIDInfo ¶ added in v0.7.6
type SGIIDInfo VPCDependentIIDInfo
type SubnetIIDInfo ¶ added in v0.7.6
type SubnetIIDInfo VPCDependentIIDInfo
func (SubnetIIDInfo) TableName ¶ added in v0.7.6
func (SubnetIIDInfo) TableName() string
type VMIIDInfo ¶ added in v0.7.6
type VMIIDInfo FirstIIDInfo
type VMUsingResources ¶ added in v0.5.5
type VMUsingResources struct { Resources struct { VPC *cres.IID `json:"VPC"` SGList []*cres.IID `json:"SGList"` VMKey *cres.IID `json:"VMKey"` } }
func GetVMUsingRS ¶ added in v0.5.5
func GetVMUsingRS(connectionName string, cspID string) (VMUsingResources, error)
type VPCDependentIIDInfo ¶ added in v0.7.6
type VPCIIDInfo ¶ added in v0.7.6
type VPCIIDInfo FirstIIDInfo
==================================================================== type for GORM
func (VPCIIDInfo) TableName ¶ added in v0.7.6
func (VPCIIDInfo) TableName() string