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 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 FlavorListResponse ¶
type FlavorListResponse struct {
Flavors []Flavor `json:"flavors"`
}
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 VolumeTypesListResponse ¶
type VolumeTypesListResponse struct {
VolumeTypes []VolumeType `json:"volumeTypes"`
}
Click to show internal directories.
Click to hide internal directories.