Documentation
¶
Index ¶
- type GetServerDetailResp
- type GetTokenReq
- type GetTokenResp
- type LaunchServerReq
- type LaunchServerResp
- type ListFlavorsResp
- type ListServerDetailsResp
- type ListVolumesResp
- type Server
- type ServerDetail
- type ServerDetailAddress
- type ServerDetailMetadata
- type UpdateVolumeReq
- type Volume
- type VolumeActionReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetServerDetailResp ¶
type GetServerDetailResp struct {
Server ServerDetail `json:"server"`
}
type GetTokenReq ¶
type GetTokenReq struct { Auth struct { Identity struct { Methods []string `json:"methods"` Password struct { User struct { Name string `json:"name"` Password string `json:"password"` } `json:"user"` } `json:"password"` } `json:"identity"` Scope struct { Project struct { ID string `json:"id"` } `json:"project"` } `json:"scope"` } `json:"auth"` }
type GetTokenResp ¶
type GetTokenResp struct { Token struct { ExpiresAt string `json:"expires_at"` } `json:"token"` }
type LaunchServerReq ¶
type LaunchServerReq struct {
Server Server `json:"server"`
}
type LaunchServerResp ¶
type LaunchServerResp struct { Server struct { ID string `json:"id"` } `json:"server"` }
type ListFlavorsResp ¶
type ListFlavorsResp struct { Flavors []struct { ID string `json:"id"` Name string `json:"name"` RAM int `json:"ram"` Disk int `json:"disk"` Swap string `json:"swap"` VCPUS int `json:"vcpus"` RxTxFactor int `json:"rxtx_factor"` Disabled bool `json:"OS-FLV-DISABLED:disabled"` Public bool `json:"os-flavor-access:is_public"` } `json:"flavors"` }
type ListServerDetailsResp ¶
type ListServerDetailsResp struct {
Servers []ServerDetail `json:"servers"`
}
type ListVolumesResp ¶
type ListVolumesResp struct {
Volumes []Volume `json:"volumes"`
}
type Server ¶
type Server struct { FlavorRef string `json:"flavorRef"` UserData string `json:"user_data"` MetaData struct { InstanceNameTag string `json:"instance_name_tag"` } `json:"metadata"` SecurityGroups []struct { Name string `json:"name"` } `json:"security_groups"` BlockDevices []struct { UUID string `json:"uuid"` } `json:"block_device_mapping_v2"` }
type ServerDetail ¶
type ServerDetail struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` Addresses map[string][]ServerDetailAddress `json:"addresses"` Metadata ServerDetailMetadata `json:"metadata"` Volumes []Volume `json:"os-extended-volumes:volumes_attached"` }
type ServerDetailAddress ¶
type ServerDetailMetadata ¶
type ServerDetailMetadata struct {
InstanceNameTag string `json:"instance_name_tag"`
}
type UpdateVolumeReq ¶
type UpdateVolumeReq struct { Volume struct { Name string `json:"name"` } `json:"volume"` }
type VolumeActionReq ¶
type VolumeActionReq struct { UploadImage struct { ImageName string `json:"image_name"` } `json:"os-volume_upload_image"` }
Click to show internal directories.
Click to hide internal directories.