mcir

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterSpecsByRangeRequest

type FilterSpecsByRangeRequest struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	ProviderName   string `json:"providerName"`
	RegionName     string `json:"regionName"`
	Description    string `json:"description"`
	ConnectionName string `json:"connectionName"`
	CspSpecName    string `json:"cspSpecName"`
	OsType         string `json:"osType"`

	CostPerHour Range `json:"costPerHour"`
	EbsBwMbps   Range `json:"ebsBwMbps"`

	EvaluationScore01 Range  `json:"evaluationScore01"`
	EvaluationScore02 Range  `json:"evaluationScore02"`
	EvaluationScore03 Range  `json:"evaluationScore03"`
	EvaluationScore04 Range  `json:"evaluationScore04"`
	EvaluationScore05 Range  `json:"evaluationScore05"`
	EvaluationScore06 Range  `json:"evaluationScore06"`
	EvaluationScore07 Range  `json:"evaluationScore07"`
	EvaluationScore08 Range  `json:"evaluationScore08"`
	EvaluationScore09 Range  `json:"evaluationScore09"`
	EvaluationScore10 Range  `json:"evaluationScore10"`
	EvaluationStatus  string `json:"evaluationStatus"`

	GpuModel string `json:"gpuModel"`
	GpuP2p   string `json:"gpuP2p"`

	MaxNumStorage      Range `json:"maxNumStorage"`
	MaxTotalStorageTiB Range `json:"maxTotalStorageTiB"`
	MemGiB             Range `json:"memGiB"`

	NetBwGbps  Range `json:"netBwGbps"`
	NumCore    Range `json:"numCore"`
	NumGpu     Range `json:"numGpu"`
	NumStorage Range `json:"numStorage"`
	NumVCPU    Range `json:"numvCPU"`
	StorageGiB Range `json:"storageGiB"`
}

type Range

type Range struct {
	MAX int `json:"max"`
	MIN int `json:"min"`
}

type RestFilterSpecsResponse

type RestFilterSpecsResponse struct {
	SpaceInfo []TbSpecInfo `json:"spec"`
}

type RestGetAllImageResponse

type RestGetAllImageResponse struct {
	Image []TbImageInfo `json:"image"`
}

type RestGetAllSecurityGroupResponse

type RestGetAllSecurityGroupResponse struct {
	SecurityGroup TbSecurityGroupInfo `json:"securityGroup"`
}

type RestGetAllSpecResponse

type RestGetAllSpecResponse struct {
	Spec []TbSpecInfo `json:"spec"`
}

type RestGetAllSshKeyResponse

type RestGetAllSshKeyResponse struct {
	SshKey TbSshKeyInfo `json:"sshKey"`
}

type RestGetAllVNetResponse

type RestGetAllVNetResponse struct {
	// contains filtered or unexported fields
}

type RestGetAvailableDataDisksResponse added in v0.6.1

type RestGetAvailableDataDisksResponse struct {
	//DataDisk []string `json:"dataDisk"`
	DataDisk []TbDataDiskInfo `json:"dataDisk"`
}

type RestLookupImageRequest

type RestLookupImageRequest struct {
	ConnectionName string `json:"connectionName"`
	CspImageId     string `json:"cspImageId"`
}

type RestLookupSpecRequest

type RestLookupSpecRequest struct {
	ConnectionName string `json:"connectionName"`
	CspSpecName    string `json:"cspSpecName"`
}

type RestSearchImageRequest

type RestSearchImageRequest struct {
	Keywords []string `json:"keywords"`
}

type SpiderGpuInfo

type SpiderGpuInfo struct {
	Count string `json:"count"`
	Mem   string `json:"mem"`
	Mfr   string `json:"mfr"`
	Model string `json:"model"`
}

type SpiderGpuInfos

type SpiderGpuInfos []SpiderGpuInfo

type SpiderImageInfo

type SpiderImageInfo struct {
	GuestOS      string                `json:"guestOS"`
	IID          tbcommon.TbIID        `json:"iid"`
	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
	Name         string                `json:"name"`
	Status       string                `json:"status"`
}

type SpiderImageInfos

type SpiderImageInfos []SpiderImageInfo

type SpiderSpecInfo

type SpiderSpecInfo struct {
	Gpu          SpiderGpuInfo       `json:"gpu"`
	KeyValueList tbcommon.TbKeyValue `json:"keyValueList"`
	Mem          string              `json:"mem"`
	Name         string              `json:"name"`
	Region       string              `json:"region"`
	Vcpu         SpiderVCpuInfo      `json:"vCpu"`
}

type SpiderSpecInfos

type SpiderSpecInfos []SpiderSpecInfo

type SpiderSubnetInfo

type SpiderSubnetInfo struct {
	IID          tbcommon.TbIID        `json:"iid"`
	Ipv4_CIDR    string                `json:"ipv4_CIDR"`
	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
}

type SpiderSubnetInfos

type SpiderSubnetInfos []SpiderSubnetInfo

type SpiderSubnetReqInfo

type SpiderSubnetReqInfo struct {
	Name         string                `json:"name"`
	Ipv4_CIDR    string                `json:"ipv4_CIDR"`
	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
}

type SpiderVCpuInfo

type SpiderVCpuInfo struct {
	Clock string `json:"clock"`
	// GHz string `json:""`
	Count string `json:"count"`
}

type TbAttachDetachDataDiskReq added in v0.6.1

type TbAttachDetachDataDiskReq struct {
	DataDiskId string `json:"dataDiskId"`
}

type TbCustomImageInfo added in v0.6.1

type TbCustomImageInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`
	ConnectionName       string   `json:"connectionName"`
	CreationDate         string   `json:"creationDate"`
	CspCustomImageId     string   `json:"cspCustomImageId"`
	CspCustomImageName   string   `json:"cspCustomImageName"`
	Description          string   `json:"description"`
	GuestOS              string   `json:"guestOS"`
	ID                   string   `json:"id"`

	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
	Name         string                `json:"name"`
	NameSpaceID  string                `json:"namespace"`
	Status       string                `json:"status"`
	SystemLabel  string                `json:"systemLabel"`
	SourceVmId   string                `json:"sourceVmId"`
	// contains filtered or unexported fields
}

type TbCustomImageReq added in v0.6.1

type TbCustomImageReq struct {
	ConnectionName   string `json:"connectionName"`
	CspCustomImageId string `json:"cspCustomImageId"`

	Description string `json:"description"`
	Name        string `json:"name"`

	SourceVmID string `json:"sourceVmId"`
}

type TbDataDiskInfo added in v0.6.1

type TbDataDiskInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`
	ConnectionName       string   `json:"connectionName"`
	CreatedTime          string   `json:"createdTime"`
	CspDataDiskId        string   `json:"cspDataDiskId"`
	CspDataDiskName      string   `json:"cspDataDiskName"`
	Description          string   `json:"description"`
	DiskSize             string   `json:"diskSize"`
	DiskType             string   `json:"diskType"`

	ID string `json:"id"`

	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
	Name         string                `json:"name"`
	Status       string                `json:"status"`
	SystemLabel  string                `json:"systemLabel"`
	// contains filtered or unexported fields
}

type TbDataDiskReq added in v0.6.1

type TbDataDiskReq struct {
	ConnectionName string `json:"connectionName"`
	CspDataDiskId  string `json:"cspDataDiskId"`
	Description    string `json:"description"`
	DiskSize       string `json:"diskSize"`
	DiskType       string `json:"diskType"`

	Name string `json:"name"`
}

type TbDataDiskUpsizeReq added in v0.6.1

type TbDataDiskUpsizeReq struct {
	Description string `json:"description"`
	DiskSize    string `json:"diskSize"`
}

type TbFirewallRuleInfo added in v0.5.1

type TbFirewallRuleInfo struct {
	Cidr       string `json:"cidr"`
	Direction  string `json:"direction" validate:"required"`
	FromPort   string `json:"fromPort" validate:"required"`
	ToPort     string `json:"toPort" validate:"required"`
	IpProtocol string `json:"ipprotocol" validate:"required"`
}

type TbFirewallRulesWrapper added in v0.5.1

type TbFirewallRulesWrapper struct {
	FirewallRules []TbFirewallRuleInfo `json:"firewallRules"`
}

type TbImageInfo

type TbImageInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`

	ConnectionName  string `json:"connectionName"`
	CreationDate    string `json:"creationDate"`
	CspImageId      string `json:"cspImageId"`
	CspImageName    string `json:"cspImageName"`
	Description     string `json:"description"`
	GuestOS         string `json:"guestOS"`
	ID              string `json:"id"`
	IsAutoGenerated string `json:"isAutoGenerated"`

	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
	Name         string                `json:"name"`
	Namespace    string                `json:"namespace"` //required
	Status       string                `json:"status"`
	SystemLabel  string                `json:"systemLabel"`
}

type TbImageInfos

type TbImageInfos []TbImageInfo

type TbImageReq

type TbImageReq struct {
	ConnectionName string `json:"connectionName"`
	CspImageId     string `json:"cspImageId"`
	Name           string `json:"name"`
}

type TbSecurityGroupInfo

type TbSecurityGroupInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`

	ConnectionName       string               `json:"connectionName"`
	CspSecurityGroupId   string               `json:"cspSecurityGroupId"`
	CspSecurityGroupName string               `json:"cspSecurityGroupName"`
	Description          string               `json:"description"`
	FirewallRules        []TbFirewallRuleInfo `json:"firewallRules"`
	ID                   string               `json:"id"`
	IsAutoGenerated      string               `json:"isAutoGenerated"`

	KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
	Name         string                `json:"name"`
	SystemLabel  string                `json:"systemLabel"`
	VNetID       string                `json:"vNetId"`
}

type TbSecurityGroupInfos

type TbSecurityGroupInfos []TbSecurityGroupInfo

type TbSecurityGroupReq

type TbSecurityGroupReq struct {
	ConnectionName     string               `json:"connectionName"`
	Description        string               `json:"description"`
	FirewallRules      []TbFirewallRuleInfo `json:"firewallRules"`
	Name               string               `json:"name"`
	VNetID             string               `json:"vNetId"`
	CspSecurityGroupId string               `json:"cspSecurityGroupId"`
}

type TbSpecInfo

type TbSpecInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`

	ConnectionName string  `json:"connectionName"`
	ProviderName   string  `json:"providerName"`
	RegionName     string  `json:"regionName"`
	SystemLabel    string  `json:"systemLabel"`
	CostPerHour    float32 `json:"costPerHour"`
	CspSpecName    string  `json:"cspSpecName"`
	Description    string  `json:"description"`
	EbsBwMbps      int     `json:"ebsBwMbps"`

	EvaluationScore01 float32 `json:"evaluationScore01"`
	EvaluationScore02 float32 `json:"evaluationScore02"`
	EvaluationScore03 float32 `json:"evaluationScore03"`
	EvaluationScore04 float32 `json:"evaluationScore04"`
	EvaluationScore05 float32 `json:"evaluationScore05"`
	EvaluationScore06 float32 `json:"evaluationScore06"`
	EvaluationScore07 float32 `json:"evaluationScore07"`
	EvaluationScore08 float32 `json:"evaluationScore08"`
	EvaluationScore09 float32 `json:"evaluationScore09"`
	EvaluationScore10 float32 `json:"evaluationScore10"`
	EvaluationStatus  string  `json:"evaluationStatus"`

	GpuMemGiB          float32 `json:"gpuMemGiB"`
	GpuModel           string  `json:"gpuModel"`
	GpuP2p             string  `json:"gpuP2p"`
	ID                 string  `json:"id"`
	IsAutoGenerated    bool    `json:"isAutoGenerated"`
	MaxNumStorage      int     `json:"maxNumStorage"`
	MaxTotalStorageTiB int     `json:"maxTotalStorageTiB"`
	MemGiB             float32 `json:"memGiB"`
	Name               string  `json:"name"`
	Namespace          string  `json:"namespace"`

	NetBwGbps             int    `json:"netBwGbps"`
	NumCore               int    `json:"numCore"`
	NumGpu                int    `json:"numGpu"`
	NumStorage            int    `json:"numStorage"`
	NumVCPU               int    `json:"numvCPU"`
	OrderInFilteredResult int    `json:"orderInFilteredResult"`
	OsType                string `json:"osType"`
	StorageGiB            int    `json:"storageGiB"`
	RootDiskSize          string `json:"rootDiskSize"`
	RootDiskType          string `json:"rootDiskType"`
}

type TbSpecInfos

type TbSpecInfos []TbSpecInfo

type TbSpecReq

type TbSpecReq struct {
	ConnectionName string `json:"connectionName"`
	CspSpecName    string `json:"cspSpecName"`
	Description    string `json:"description"`
	Name           string `json:"name"`
}

type TbSshKeyInfo

type TbSshKeyInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`

	ConnectionName string `json:"connectionName"`
	CspSshKeyName  string `json:"cspSshKeyName"`
	CspSshKeyId    string `json:"cspSshKeyId"`
	SystemLabel    string `json:"systemLabel"`

	Description     string                `json:"description"`
	Fingerprint     string                `json:"fingerprint"`
	ID              string                `json:"id"`
	IsAutoGenerated bool                  `json:"isAutoGenerated"`
	KeyValueInfos   []tbcommon.TbKeyValue `json:"keyValueList"`

	Name             string `json:"name"`
	PrivateKey       string `json:"privateKey"`
	PublicKey        string `json:"publicKey"`
	Username         string `json:"username"`
	VerifiedUsername string `json:"verifiedUsername"`
}

type TbSshKeyInfos

type TbSshKeyInfos []TbSshKeyInfo

type TbSshKeyReq

type TbSshKeyReq struct {
	ConnectionName   string `json:"connectionName"`
	CspSshKeyId      string `json:"cspSshKeyId"`
	Description      string `json:"description"`
	Fingerprint      string `json:"fingerprint"`
	Name             string `json:"name"`
	PrivateKey       string `json:"privateKey"`
	PublicKey        string `json:"publicKey"`
	Username         string `json:"username"`
	VerifiedUsername string `json:"verifiedUsername"`
}

type TbSubnetInfo

type TbSubnetInfo struct {
	Description   string                `json:"description"`
	ID            string                `json:"id"`
	Ipv4_CIDR     string                `json:"ipv4_CIDR" validate:"required"`
	KeyValueInfos []tbcommon.TbKeyValue `json:"keyValueList"`

	Name string `json:"name" validate:"required"`
}

type TbSubnetInfos

type TbSubnetInfos []TbSubnetInfo

type TbSubnetReq

type TbSubnetReq struct {
	Description   string                `json:"description"`
	Ipv4_CIDR     string                `json:"ipv4_CIDR"`
	KeyValueInfos []tbcommon.TbKeyValue `json:"keyValueList"`

	Name string `json:"name"`
}

type TbSubnetReqs

type TbSubnetReqs []TbSubnetReq

type TbVNetInfo

type TbVNetInfo struct {
	AssociatedObjectList []string `json:"associatedObjectList"`

	CidrBlock      string `json:"cidrBlock"`
	ConnectionName string `json:"connectionName"`
	CspVNetID      string `json:"cspVNetId"`
	CspVNetName    string `json:"cspVNetName"`

	Description     string                `json:"description"`
	ID              string                `json:"id"`
	IsAutoGenerated bool                  `json:"isAutoGenerated"`
	KeyValueInfos   []tbcommon.TbKeyValue `json:"keyValueList"`

	Name           string         `json:"name"`
	Statue         string         `json:"status"`
	SubnetInfoList []TbSubnetInfo `json:"subnetInfoList"`
	SystemLabel    string         `json:"systemLabel"`
}

type TbVNetInfos

type TbVNetInfos []TbVNetInfo

type TbVNetReq

type TbVNetReq struct {
	CidrBlock      string        `json:"cidrBlock"`
	ConnectionName string        `json:"connectionName"`
	CspVNetId      string        `json:"cspVNetId"`
	Description    string        `json:"description"`
	Name           string        `json:"name"`
	SubnetInfoList []TbSubnetReq `json:"subnetInfoList"`
}

Jump to

Keyboard shortcuts

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