otc

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(r *gin.RouterGroup)

Types

type AvailabilityZoneListResponse

type AvailabilityZoneListResponse struct {
	AvailabilityZones []string `json:"availabilityZones"`
}

type DataDisk

type DataDisk struct {
	DiskSize     int    `json:"diskSize"`
	VolumeTypeId string `json:"volumeTypeId"`
}

type ECServer

type ECServer struct {
	Id               string           `json:"id"`
	IPv4             []string         `json:"ipv4"`
	AvailabilityZone string           `json:"availabilityZone"`
	Name             string           `json:"name"`
	Created          time.Time        `json:"created"`
	VCPUs            int              `json:"vcpus"`
	RAM              int              `json:"ram"`
	ImageName        string           `json:"imageName"`
	Status           string           `json:"status"`
	Billing          string           `json:"billing"`
	Owner            string           `json:"owner"`
	MegaId           string           `json:"megaId"`
	Volumes          []volumes.Volume `json:"volumes"`
}

type ECServerListResponse

type ECServerListResponse struct {
	ECServers []ECServer `json:"ecServers"`
}

type Features

type Features struct {
	Enabled bool `json:"enabled"`
}

func GetFeatures

func GetFeatures() Features

type Flavor

type Flavor struct {
	Name  string `json:"name"`
	VCPUs int    `json:"vcpus"`
	RAM   int    `json:"ram"`
}

type FlavorListResponse

type FlavorListResponse struct {
	Flavors []Flavor `json:"flavors"`
}

type Image

type Image struct {
	Name             string `json:"name"`
	Id               string `json:"id"`
	MinDiskGigabytes int    `json:"minDiskGigabytes"`
	MinRAMMegabytes  int    `json:"minRAMMegabytes"`
}

type ImageListResponse

type ImageListResponse struct {
	Images []Image `json:"images"`
}

type NewECSCommand

type NewECSCommand struct {
	ECSName            string `json:"ecsName"`
	AvailabilityZone   string `json:"availabilityZone"`
	FlavorName         string `json:"flavorName"`
	ImageId            string `json:"imageId"`
	Billing            string `json:"billing"`
	PublicKey          string `json:"publicKey"`
	RootVolumeTypeId   string `json:"rootVolumeTypeId"`
	RootDiskSize       int    `json:"rootDiskSize"`
	SystemVolumeTypeId string `json:"systemVolumeTypeId"`
	SystemDiskSize     int    `json:"systemDiskSize"`
	DataVolumeTypeId   string `json:"dataVolumeTypeId"`
	DataDiskSize       int    `json:"dataDiskSize"`
	MegaId             string `json:"megaId"`
}

type VolumeType

type VolumeType struct {
	Name string `json:"name"`
	Id   string `json:"id"`
}

type VolumeTypesListResponse

type VolumeTypesListResponse struct {
	VolumeTypes []VolumeType `json:"volumeTypes"`
}

Jump to

Keyboard shortcuts

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