mcir

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPIDER_URL string

Functions

func RestCheckResource

func RestCheckResource(c echo.Context) error

func RestDelAllImage

func RestDelAllImage(c echo.Context) error

func RestDelAllSecurityGroup

func RestDelAllSecurityGroup(c echo.Context) error

func RestDelAllSpec

func RestDelAllSpec(c echo.Context) error

func RestDelAllSshKey

func RestDelAllSshKey(c echo.Context) error

func RestDelAllVNet added in v0.1.3

func RestDelAllVNet(c echo.Context) error

func RestDelImage

func RestDelImage(c echo.Context) error

func RestDelSecurityGroup

func RestDelSecurityGroup(c echo.Context) error

func RestDelSpec

func RestDelSpec(c echo.Context) error

func RestDelSshKey

func RestDelSshKey(c echo.Context) error

func RestDelVNet added in v0.1.3

func RestDelVNet(c echo.Context) error

func RestFetchSpecs added in v0.1.3

func RestFetchSpecs(c echo.Context) error

func RestGetAllImage

func RestGetAllImage(c echo.Context) error

func RestGetAllSecurityGroup

func RestGetAllSecurityGroup(c echo.Context) error

func RestGetAllSpec

func RestGetAllSpec(c echo.Context) error

func RestGetAllSshKey

func RestGetAllSshKey(c echo.Context) error

func RestGetAllVNet added in v0.1.3

func RestGetAllVNet(c echo.Context) error

func RestGetImage

func RestGetImage(c echo.Context) error

func RestGetSecurityGroup

func RestGetSecurityGroup(c echo.Context) error

func RestGetSpec

func RestGetSpec(c echo.Context) error

func RestGetSshKey

func RestGetSshKey(c echo.Context) error

func RestGetVNet added in v0.1.3

func RestGetVNet(c echo.Context) error

func RestLookupSpec

func RestLookupSpec(c echo.Context) error

func RestLookupSpecList

func RestLookupSpecList(c echo.Context) error

func RestPostImage

func RestPostImage(c echo.Context) error

MCIS API Proxy: Image

func RestPostSecurityGroup

func RestPostSecurityGroup(c echo.Context) error

MCIS API Proxy: SecurityGroup

func RestPostSpec

func RestPostSpec(c echo.Context) error

MCIS API Proxy: Spec

func RestPostSshKey

func RestPostSshKey(c echo.Context) error

MCIS API Proxy: SshKey

func RestPostVNet added in v0.1.3

func RestPostVNet(c echo.Context) error

MCIS API Proxy: VNet

func RestPutImage

func RestPutImage(c echo.Context) error

func RestPutSecurityGroup

func RestPutSecurityGroup(c echo.Context) error

func RestPutSpec

func RestPutSpec(c echo.Context) error

func RestPutSshKey

func RestPutSshKey(c echo.Context) error

func RestPutVNet added in v0.1.3

func RestPutVNet(c echo.Context) error

Types

type GpuInfo

type GpuInfo struct {
	Count string
	Mfr   string
	Model string
	Mem   string
}

type ImageInfo added in v0.1.3

type ImageInfo struct {
	//IId     IID    // {NameId, SystemId}
	Name    string
	GuestOS string // Windows7, Ubuntu etc.
	Status  string // available, unavailable

	KeyValueList []common.KeyValue
}

type ImageReqInfo added in v0.1.3

type ImageReqInfo struct {
	//IId   IID 	// {NameId, SystemId}
	Name string
}

type KeyPairInfo added in v0.1.3

type KeyPairInfo struct {
	IId         common.IID // {NameId, SystemId}
	Fingerprint string
	PublicKey   string
	PrivateKey  string
	VMUserID    string

	KeyValueList []common.KeyValue
}

type KeyPairReqInfo added in v0.1.3

type KeyPairReqInfo struct {
	Name string
}

type NameOnly

type NameOnly struct {
	Name string
}

type ReturnValue

type ReturnValue struct {
	CustomStruct interface{}
}

type SecurityInfo added in v0.1.3

type SecurityInfo struct {
	IId           common.IID // {NameId, SystemId}
	VpcIID        common.IID // {NameId, SystemId}
	Direction     string     // @todo userd??
	SecurityRules *[]SecurityRuleInfo

	KeyValueList []common.KeyValue
}

type SecurityReqInfo added in v0.1.3

type SecurityReqInfo struct {
	Name          string
	VPCName       string
	SecurityRules *[]SecurityRuleInfo
}

type SecurityRuleInfo added in v0.1.3

type SecurityRuleInfo struct {
	FromPort   string `json:"fromPort"`
	ToPort     string `json:"toPort"`
	IPProtocol string `json:"ipProtocol"`
	Direction  string `json:"direction"`
}

type SpecInfo

type SpecInfo struct {
	Id             string `json:"id"`
	ConnectionName string `json:"connectionName"`
	CspSpecName    string `json:"cspSpecName"`
	Name           string `json:"name"`
	Os_type        string `json:"os_type"`
	Num_vCPU       string `json:"num_vCPU"`
	Num_core       string `json:"num_core"`
	Mem_GiB        string `json:"mem_GiB"`
	Mem_MiB        string `json:"mem_MiB"`
	Storage_GiB    string `json:"storage_GiB"`
	Description    string `json:"description"`

	Cost_per_hour         string `json:"cost_per_hour"`
	Num_storage           string `json:"num_storage"`
	Max_num_storage       string `json:"max_num_storage"`
	Max_total_storage_TiB string `json:"max_total_storage_TiB"`
	Net_bw_Gbps           string `json:"net_bw_Gbps"`
	Ebs_bw_Mbps           string `json:"ebs_bw_Mbps"`
	Gpu_model             string `json:"gpu_model"`
	Num_gpu               string `json:"num_gpu"`
	Gpumem_GiB            string `json:"gpumem_GiB"`
	Gpu_p2p               string `json:"gpu_p2p"`
}

type SpiderImageReqInfo added in v0.1.3

type SpiderImageReqInfo struct {
	ConnectionName string
	ReqInfo        ImageReqInfo
}

type SpiderKeyPairReqInfo added in v0.1.3

type SpiderKeyPairReqInfo struct {
	ConnectionName string
	ReqInfo        KeyPairReqInfo
}

type SpiderSecurityReqInfo added in v0.1.3

type SpiderSecurityReqInfo struct {
	ConnectionName string
	ReqInfo        SecurityReqInfo
}

type SpiderSpecInfo

type SpiderSpecInfo struct {
	Region string
	Name   string
	VCpu   VCpuInfo
	Mem    string
	Gpu    []GpuInfo

	KeyValueList []common.KeyValue
}

type SpiderSpecList added in v0.1.3

type SpiderSpecList struct {
	Vmspec []SpiderSpecInfo `json:"vmspec"`
}

func LookupSpecList

func LookupSpecList(connConfig string) (SpiderSpecList, error)

type SpiderVPCReqInfo added in v0.1.3

type SpiderVPCReqInfo struct {
	ConnectionName string
	ReqInfo        VPCReqInfo
}

type SubnetInfo added in v0.1.3

type SubnetInfo struct {
	IId       common.IID // {NameId, SystemId}
	IPv4_CIDR string

	KeyValueList []common.KeyValue
}

type SubnetReqInfo added in v0.1.3

type SubnetReqInfo struct {
	Name      string
	IPv4_CIDR string

	KeyValueList []common.KeyValue
}

type VCpuInfo

type VCpuInfo struct {
	Count string
	Clock string // GHz
}

type VPCInfo added in v0.1.3

type VPCInfo struct {
	IId            common.IID // {NameId, SystemId}
	IPv4_CIDR      string
	SubnetInfoList []SubnetInfo

	KeyValueList []common.KeyValue
}

type VPCReqInfo added in v0.1.3

type VPCReqInfo struct {
	Name           string
	IPv4_CIDR      string
	SubnetInfoList []SubnetReqInfo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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