commonruntime

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HostIPorName string
View Source
var MiddleStartTime string
View Source
var ServicePort string
View Source
var ShortStartTime string
View Source
var StartTime string

Functions

func AddSubnet added in v0.3.1

func AddSubnet(connectionName string, rsType string, vpcName string, reqInfo cres.SubnetInfo) (*cres.VPCInfo, error)

(1) check exist(NameID) (2) create Resource (3) insert IID

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 CreateImage

func CreateImage(connectionName string, rsType string, reqInfo cres.ImageReqInfo) (*cres.ImageInfo, error)

================ Image Handler @todo (1) check exist(NameID) (2) create Resource (3) insert IID

func CreateKey

func CreateKey(connectionName string, rsType string, reqInfo cres.KeyPairReqInfo) (*cres.KeyPairInfo, error)

================ KeyPair Handler (1) check exist(NameID) (2) create Resource (3) insert IID

func CreateSecurity

func CreateSecurity(connectionName string, rsType string, reqInfo cres.SecurityReqInfo) (*cres.SecurityInfo, error)

================ SecurityGroup Handler (1) check exist(NameID) (2) create Resource (3) insert IID

func CreateVPC

func CreateVPC(connectionName string, rsType string, reqInfo cres.VPCReqInfo) (*cres.VPCInfo, error)

================ VPC Handler (1) check exist(NameID) (2) create Resource (3) insert IID

func DeleteCSPResource

func DeleteCSPResource(connectionName string, rsType string, systemID string) (bool, cres.VMStatus, error)

(1) delete Resource(SystemId)

func DeleteImage

func DeleteImage(connectionName string, rsType string, nameID string) (bool, error)

(1) get IID(NameId) (2) delete Resource(SystemId) (3) delete IID

func DeleteResource

func DeleteResource(connectionName string, rsType string, nameID string, force string) (bool, cres.VMStatus, error)

(1) get IID(NameId) (2) delete Resource(SystemId) (3) delete IID

func GetImage

func GetImage(connectionName string, rsType string, nameID string) (*cres.ImageInfo, error)

(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)

func GetKey

func GetKey(connectionName string, rsType string, nameID string) (*cres.KeyPairInfo, error)

(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)

func GetOrgVMSpec

func GetOrgVMSpec(connectionName string, nameID string) (string, error)

func GetRegisterImage

func GetRegisterImage(connectionName string, rsType string, nameID string) (*cres.ImageInfo, error)

(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)

func GetSecurity

func GetSecurity(connectionName string, rsType string, nameID string) (*cres.SecurityInfo, error)

(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)

func GetVM

func GetVM(connectionName string, rsType string, nameID string) (*cres.VMInfo, error)

(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)

func GetVMSpec

func GetVMSpec(connectionName string, nameID string) (*cres.VMSpecInfo, error)

func GetVMStatus

func GetVMStatus(connectionName string, rsType string, nameID string) (cres.VMStatus, error)

(1) get IID(NameId) (2) get CSP:VMStatus(SystemId)

func GetVPC

func GetVPC(connectionName string, rsType string, nameID string) (*cres.VPCInfo, error)

(1) get IID(NameId) (2) get resource(SystemId) (3) set ResourceInfo(IID.NameId)

func ListImage

func ListImage(connectionName string, rsType string) ([]*cres.ImageInfo, error)

(1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list

func ListKey

func ListKey(connectionName string, rsType string) ([]*cres.KeyPairInfo, error)

(1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list

func ListOrgVMSpec

func ListOrgVMSpec(connectionName string) (string, error)

func ListRegisterImage

func ListRegisterImage(connectionName string, rsType string) ([]*cres.ImageInfo, error)

(1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list

func ListSecurity

func ListSecurity(connectionName string, rsType string) ([]*cres.SecurityInfo, error)

(1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list

func ListVM

func ListVM(connectionName string, rsType string) ([]*cres.VMInfo, error)

(1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list

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 CSP:VMStatuslist (3) filtering CSP-VMStatuslist by IID-list

func ListVPC

func ListVPC(connectionName string, rsType string) ([]*cres.VPCInfo, error)

(1) get IID:list (2) get CSP:list (3) filtering CSP-list by IID-list

func StartVM

func StartVM(connectionName string, rsType string, reqInfo cres.VMReqInfo) (*cres.VMInfo, error)

================ VM Handler (1) check exist(NameID) (2) create Resource (3) insert IID

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

Jump to

Keyboard shortcuts

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