Documentation ¶
Index ¶
- Variables
- type AZHost
- type Address
- type Aggregate
- type AvailabilityZone
- type BlockDeviceMappingV2
- type ComputeClientV2
- func (client ComputeClientV2) AZList(query netUrl.Values) (*AvailabilityZone, error)
- func (client ComputeClientV2) AZListDetail(query netUrl.Values) ([]AvailabilityZone, error)
- func (client ComputeClientV2) AggregateList(query netUrl.Values) ([]Aggregate, error)
- func (client ComputeClientV2) AggregateShow(aggregate string) (*Aggregate, error)
- func (client ComputeClientV2) FlavorCopy(flavorId string, newName string, newId string, newVcpus int, newRam int, ...) (*Flavor, error)
- func (client ComputeClientV2) FlavorCreate(flavor Flavor) (*Flavor, error)
- func (client ComputeClientV2) FlavorDelete(flavorId string) error
- func (client ComputeClientV2) FlavorExtraSpecsCreate(flavorId string, extraSpecs map[string]string) (ExtraSpecs, error)
- func (client ComputeClientV2) FlavorExtraSpecsDelete(flavorId string, extraSpec string) error
- func (client ComputeClientV2) FlavorExtraSpecsList(flavorId string) (ExtraSpecs, error)
- func (client ComputeClientV2) FlavorFound(idOrName string) (*Flavor, error)
- func (client ComputeClientV2) FlavorList(query netUrl.Values) ([]Flavor, error)
- func (client ComputeClientV2) FlavorListDetail(query netUrl.Values) (Flavors, error)
- func (client ComputeClientV2) FlavorShow(flavorId string) (*Flavor, error)
- func (client ComputeClientV2) FlavorShowWithExtraSpecs(flavorId string) (*Flavor, error)
- func (client *ComputeClientV2) GetCurrentVersion() (*identity.ApiVersion, error)
- func (client ComputeClientV2) HypervisorFound(idOrName string) (*Hypervisor, error)
- func (client ComputeClientV2) HypervisorList(query netUrl.Values) (Hypervisors, error)
- func (client ComputeClientV2) HypervisorListDetail(query netUrl.Values) (Hypervisors, error)
- func (client ComputeClientV2) HypervisorShow(id string) (*Hypervisor, error)
- func (client ComputeClientV2) HypervisorShowByHostname(hostname string) (*Hypervisor, error)
- func (client ComputeClientV2) HypervisorUptime(id string) (*Hypervisor, error)
- func (client *ComputeClientV2) Index() (*common.Response, error)
- func (client ComputeClientV2) KeypairList(query netUrl.Values) ([]Keypair, error)
- func (client *ComputeClientV2) MicroVersionLargeEqual(version string) bool
- func (client ComputeClientV2) MigrationList(query netUrl.Values) ([]Migration, error)
- func (client ComputeClientV2) ServerAction(action string, id string, params interface{}) (*common.Response, error)
- func (client ComputeClientV2) ServerActionList(id string) ([]InstanceAction, error)
- func (client ComputeClientV2) ServerActionShow(id string, requestId string) (*InstanceAction, error)
- func (client ComputeClientV2) ServerActionsWithEvents(id string, actionName string, requestId string) ([]InstanceActionAndEvents, error)
- func (client ComputeClientV2) ServerAddNet(id string, netId string) (*InterfaceAttachment, error)
- func (client ComputeClientV2) ServerAddPort(id string, portId string) (*InterfaceAttachment, error)
- func (client ComputeClientV2) ServerConsoleLog(id string, length uint) (*ConsoleLog, error)
- func (client ComputeClientV2) ServerConsoleUrl(id string, consoleType string) (*Console, error)
- func (client ComputeClientV2) ServerCreate(options ServerOpt) (*Server, error)
- func (client ComputeClientV2) ServerDelete(id string) error
- func (client ComputeClientV2) ServerEvacuate(id string, password string, host string, force bool) error
- func (client ComputeClientV2) ServerFound(idOrName string) (*Server, error)
- func (client ComputeClientV2) ServerGroupList(query netUrl.Values) ([]ServerGroup, error)
- func (client ComputeClientV2) ServerInterfaceDetach(id string, portId string) error
- func (client ComputeClientV2) ServerInterfaceList(id string) ([]InterfaceAttachment, error)
- func (client ComputeClientV2) ServerList(query netUrl.Values) ([]Server, error)
- func (client ComputeClientV2) ServerListByName(name string) ([]Server, error)
- func (client ComputeClientV2) ServerListDetails(query netUrl.Values) ([]Server, error)
- func (client ComputeClientV2) ServerListDetailsByName(name string) ([]Server, error)
- func (client ComputeClientV2) ServerLiveMigrate(id string, blockMigrate bool) error
- func (client ComputeClientV2) ServerLiveMigrateTo(id string, blockMigrate bool, host string) error
- func (client ComputeClientV2) ServerMigrate(id string) error
- func (client ComputeClientV2) ServerMigrateTo(id string, host string) error
- func (client ComputeClientV2) ServerMigrationList(id string, query url.Values) ([]Migration, error)
- func (client ComputeClientV2) ServerPause(id string) error
- func (client ComputeClientV2) ServerPrune(query url.Values, yes bool, waitDeleted bool)
- func (client ComputeClientV2) ServerReboot(id string, hard bool) error
- func (client ComputeClientV2) ServerRebuild(id string) error
- func (client ComputeClientV2) ServerRegionLiveMigrate(id string, destRegion string, dryRun bool) (*RegionMigrateResp, error)
- func (client ComputeClientV2) ServerRegionLiveMigrateTo(id string, destRegion string, dryRun bool, destHost string) (*RegionMigrateResp, error)
- func (client ComputeClientV2) ServerResize(id string, flavorRef string) error
- func (client ComputeClientV2) ServerResume(id string) error
- func (client ComputeClientV2) ServerSetName(id string, name string) error
- func (client ComputeClientV2) ServerSetPassword(id string, password string, user string) error
- func (client ComputeClientV2) ServerShelve(id string) error
- func (client ComputeClientV2) ServerShow(id string) (*Server, error)
- func (client ComputeClientV2) ServerStart(id string) error
- func (client ComputeClientV2) ServerStop(id string) error
- func (client ComputeClientV2) ServerSuspend(id string) error
- func (client ComputeClientV2) ServerUnpause(id string) error
- func (client ComputeClientV2) ServerUnshelve(id string) error
- func (client ComputeClientV2) ServerVolumeAdd(id string, volumeId string) (*VolumeAttachment, error)
- func (client ComputeClientV2) ServerVolumeDelete(id string, volumeId string) error
- func (client ComputeClientV2) ServerVolumeList(id string) ([]VolumeAttachment, error)
- func (client ComputeClientV2) ServiceAction(action string, host string, binary string) (*Service, error)
- func (client ComputeClientV2) ServiceDisable(host string, binary string, reason string) (*Service, error)
- func (client ComputeClientV2) ServiceDown(host string, binary string) (*Service, error)
- func (client ComputeClientV2) ServiceEnable(host string, binary string) (*Service, error)
- func (client ComputeClientV2) ServiceGetByHostBinary(host string, binary string) (*Service, error)
- func (client ComputeClientV2) ServiceList(query netUrl.Values) ([]Service, error)
- func (client ComputeClientV2) ServiceUp(host string, binary string) (*Service, error)
- func (client ComputeClientV2) ServiceUpdate(id string, update map[string]interface{}) (*Service, error)
- func (client *ComputeClientV2) String() string
- func (client *ComputeClientV2) UpdateVersion() error
- func (client ComputeClientV2) WaitServerCreate(options ServerOpt) (*Server, error)
- func (client ComputeClientV2) WaitServerDeleted(id string)
- func (client ComputeClientV2) WaitServerStatus(serverId string, status string) (*Server, error)
- func (client ComputeClientV2) WaitServerStatusSecond(serverId string, status string, second int) (*Server, error)
- type Console
- type ConsoleLog
- type CpuInfo
- type ExtraSpecs
- type Fault
- type FixedIp
- type Flavor
- type Flavors
- type Hypervisor
- type HypervisorServer
- type Hypervisors
- type Image
- type InstanceAction
- type InstanceActionAndEvents
- type InstanceActionEvent
- type InstanceActionEvents
- type InstanceActions
- type InterfaceAttachment
- type Keypair
- type Keypairs
- type Migration
- type RegionMigrateResp
- type Server
- func (server Server) AllStatus() string
- func (server Server) GetFaultString() string
- func (server Server) GetFlavorExtraSpecsString() string
- func (server *Server) GetNetworks() []string
- func (server *Server) GetPowerState() string
- func (server *Server) GetTaskState() string
- func (server Server) InResize() bool
- type ServerGroup
- type ServerOpt
- type ServerOptNetwork
- type Servers
- type Service
- type ServiceState
- type Services
- type Version
- type VolumeAttachment
- type ZoneState
Constants ¶
This section is empty.
Variables ¶
View Source
var POWER_STATE = []string{
"NOSTATE", "Running", "", "Paused", "ShutDown", "", "Crashed", "Suspend",
}
Functions ¶
This section is empty.
Types ¶
type AZHost ¶
type AZHost map[string]ServiceState
type Aggregate ¶
type Aggregate struct { Id int `json:"id"` Name string `json:"name"` AvailabilityZone string `json:"availability_zone"` Deleted bool `json:"deleted"` Hosts []string `json:"hosts,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` DeletedAt string `json:"deleted_at,omitempty"` }
func (Aggregate) GetMetadataList ¶
func (Aggregate) MarshalMetadata ¶
type AvailabilityZone ¶
type BlockDeviceMappingV2 ¶
type BlockDeviceMappingV2 struct { BootIndex int `json:"boot_index"` UUID string `json:"uuid"` VolumeSize uint16 `json:"volume_size"` SourceType string `json:"source_type"` DestinationType string `json:"destination_type"` VolumeType string `json:"volume_type"` DeleteOnTemination bool `json:"delete_on_termination"` }
type ComputeClientV2 ¶
type ComputeClientV2 struct { identity.IdentityClientV3 MicroVersion identity.ApiVersion BaseHeaders map[string]string // contains filtered or unexported fields }
func GetComputeClientV2 ¶
func GetComputeClientV2(idendityClient identity.IdentityClientV3) (*ComputeClientV2, error)
func (ComputeClientV2) AZList ¶
func (client ComputeClientV2) AZList(query netUrl.Values) (*AvailabilityZone, error)
availability zone api
func (ComputeClientV2) AZListDetail ¶
func (client ComputeClientV2) AZListDetail(query netUrl.Values) ([]AvailabilityZone, error)
func (ComputeClientV2) AggregateList ¶
func (client ComputeClientV2) AggregateList(query netUrl.Values) ([]Aggregate, error)
func (ComputeClientV2) AggregateShow ¶
func (client ComputeClientV2) AggregateShow(aggregate string) (*Aggregate, error)
func (ComputeClientV2) FlavorCopy ¶
func (ComputeClientV2) FlavorCreate ¶
func (client ComputeClientV2) FlavorCreate(flavor Flavor) (*Flavor, error)
func (ComputeClientV2) FlavorDelete ¶
func (client ComputeClientV2) FlavorDelete(flavorId string) error
func (ComputeClientV2) FlavorExtraSpecsCreate ¶
func (client ComputeClientV2) FlavorExtraSpecsCreate(flavorId string, extraSpecs map[string]string) (ExtraSpecs, error)
func (ComputeClientV2) FlavorExtraSpecsDelete ¶
func (client ComputeClientV2) FlavorExtraSpecsDelete(flavorId string, extraSpec string) error
func (ComputeClientV2) FlavorExtraSpecsList ¶
func (client ComputeClientV2) FlavorExtraSpecsList(flavorId string) (ExtraSpecs, error)
func (ComputeClientV2) FlavorFound ¶
func (client ComputeClientV2) FlavorFound(idOrName string) (*Flavor, error)
func (ComputeClientV2) FlavorList ¶
func (client ComputeClientV2) FlavorList(query netUrl.Values) ([]Flavor, error)
flavor api
func (ComputeClientV2) FlavorListDetail ¶
func (client ComputeClientV2) FlavorListDetail(query netUrl.Values) (Flavors, error)
func (ComputeClientV2) FlavorShow ¶
func (client ComputeClientV2) FlavorShow(flavorId string) (*Flavor, error)
func (ComputeClientV2) FlavorShowWithExtraSpecs ¶
func (client ComputeClientV2) FlavorShowWithExtraSpecs(flavorId string) (*Flavor, error)
func (*ComputeClientV2) GetCurrentVersion ¶
func (client *ComputeClientV2) GetCurrentVersion() (*identity.ApiVersion, error)
func (ComputeClientV2) HypervisorFound ¶
func (client ComputeClientV2) HypervisorFound(idOrName string) (*Hypervisor, error)
func (ComputeClientV2) HypervisorList ¶
func (client ComputeClientV2) HypervisorList(query netUrl.Values) (Hypervisors, error)
hypervisor api
func (ComputeClientV2) HypervisorListDetail ¶
func (client ComputeClientV2) HypervisorListDetail(query netUrl.Values) (Hypervisors, error)
func (ComputeClientV2) HypervisorShow ¶
func (client ComputeClientV2) HypervisorShow(id string) (*Hypervisor, error)
func (ComputeClientV2) HypervisorShowByHostname ¶
func (client ComputeClientV2) HypervisorShowByHostname(hostname string) (*Hypervisor, error)
func (ComputeClientV2) HypervisorUptime ¶
func (client ComputeClientV2) HypervisorUptime(id string) (*Hypervisor, error)
func (ComputeClientV2) KeypairList ¶
func (client ComputeClientV2) KeypairList(query netUrl.Values) ([]Keypair, error)
keypair api
func (*ComputeClientV2) MicroVersionLargeEqual ¶
func (client *ComputeClientV2) MicroVersionLargeEqual(version string) bool
func (ComputeClientV2) MigrationList ¶
func (client ComputeClientV2) MigrationList(query netUrl.Values) ([]Migration, error)
func (ComputeClientV2) ServerAction ¶
func (client ComputeClientV2) ServerAction(action string, id string, params interface{}) (*common.Response, error)
server api
func (ComputeClientV2) ServerActionList ¶
func (client ComputeClientV2) ServerActionList(id string) ([]InstanceAction, error)
server action api
func (ComputeClientV2) ServerActionShow ¶
func (client ComputeClientV2) ServerActionShow(id string, requestId string) ( *InstanceAction, error, )
func (ComputeClientV2) ServerActionsWithEvents ¶
func (client ComputeClientV2) ServerActionsWithEvents(id string, actionName string, requestId string) ( []InstanceActionAndEvents, error, )
func (ComputeClientV2) ServerAddNet ¶
func (client ComputeClientV2) ServerAddNet(id string, netId string) (*InterfaceAttachment, error)
func (ComputeClientV2) ServerAddPort ¶
func (client ComputeClientV2) ServerAddPort(id string, portId string) (*InterfaceAttachment, error)
func (ComputeClientV2) ServerConsoleLog ¶
func (client ComputeClientV2) ServerConsoleLog(id string, length uint) (*ConsoleLog, error)
func (ComputeClientV2) ServerConsoleUrl ¶
func (client ComputeClientV2) ServerConsoleUrl(id string, consoleType string) (*Console, error)
func (ComputeClientV2) ServerCreate ¶
func (client ComputeClientV2) ServerCreate(options ServerOpt) (*Server, error)
func (ComputeClientV2) ServerDelete ¶
func (client ComputeClientV2) ServerDelete(id string) error
func (ComputeClientV2) ServerEvacuate ¶
func (ComputeClientV2) ServerFound ¶
func (client ComputeClientV2) ServerFound(idOrName string) (*Server, error)
func (ComputeClientV2) ServerGroupList ¶
func (client ComputeClientV2) ServerGroupList(query netUrl.Values) ([]ServerGroup, error)
func (ComputeClientV2) ServerInterfaceDetach ¶
func (client ComputeClientV2) ServerInterfaceDetach(id string, portId string) error
func (ComputeClientV2) ServerInterfaceList ¶
func (client ComputeClientV2) ServerInterfaceList(id string) ([]InterfaceAttachment, error)
func (ComputeClientV2) ServerList ¶
func (client ComputeClientV2) ServerList(query netUrl.Values) ([]Server, error)
func (ComputeClientV2) ServerListByName ¶
func (client ComputeClientV2) ServerListByName(name string) ([]Server, error)
func (ComputeClientV2) ServerListDetails ¶
func (client ComputeClientV2) ServerListDetails(query netUrl.Values) ([]Server, error)
func (ComputeClientV2) ServerListDetailsByName ¶
func (client ComputeClientV2) ServerListDetailsByName(name string) ([]Server, error)
func (ComputeClientV2) ServerLiveMigrate ¶
func (client ComputeClientV2) ServerLiveMigrate(id string, blockMigrate bool) error
func (ComputeClientV2) ServerLiveMigrateTo ¶
func (client ComputeClientV2) ServerLiveMigrateTo(id string, blockMigrate bool, host string) error
func (ComputeClientV2) ServerMigrate ¶
func (client ComputeClientV2) ServerMigrate(id string) error
func (ComputeClientV2) ServerMigrateTo ¶
func (client ComputeClientV2) ServerMigrateTo(id string, host string) error
func (ComputeClientV2) ServerMigrationList ¶
func (ComputeClientV2) ServerPause ¶
func (client ComputeClientV2) ServerPause(id string) error
func (ComputeClientV2) ServerPrune ¶
func (client ComputeClientV2) ServerPrune(query url.Values, yes bool, waitDeleted bool)
func (ComputeClientV2) ServerReboot ¶
func (client ComputeClientV2) ServerReboot(id string, hard bool) error
func (ComputeClientV2) ServerRebuild ¶
func (client ComputeClientV2) ServerRebuild(id string) error
TODO: more params
func (ComputeClientV2) ServerRegionLiveMigrate ¶
func (client ComputeClientV2) ServerRegionLiveMigrate(id string, destRegion string, dryRun bool) (*RegionMigrateResp, error)
func (ComputeClientV2) ServerRegionLiveMigrateTo ¶
func (client ComputeClientV2) ServerRegionLiveMigrateTo(id string, destRegion string, dryRun bool, destHost string) (*RegionMigrateResp, error)
func (ComputeClientV2) ServerResize ¶
func (client ComputeClientV2) ServerResize(id string, flavorRef string) error
func (ComputeClientV2) ServerResume ¶
func (client ComputeClientV2) ServerResume(id string) error
func (ComputeClientV2) ServerSetName ¶
func (client ComputeClientV2) ServerSetName(id string, name string) error
func (ComputeClientV2) ServerSetPassword ¶
func (client ComputeClientV2) ServerSetPassword(id string, password string, user string) error
func (ComputeClientV2) ServerShelve ¶
func (client ComputeClientV2) ServerShelve(id string) error
func (ComputeClientV2) ServerShow ¶
func (client ComputeClientV2) ServerShow(id string) (*Server, error)
func (ComputeClientV2) ServerStart ¶
func (client ComputeClientV2) ServerStart(id string) error
func (ComputeClientV2) ServerStop ¶
func (client ComputeClientV2) ServerStop(id string) error
func (ComputeClientV2) ServerSuspend ¶
func (client ComputeClientV2) ServerSuspend(id string) error
func (ComputeClientV2) ServerUnpause ¶
func (client ComputeClientV2) ServerUnpause(id string) error
func (ComputeClientV2) ServerUnshelve ¶
func (client ComputeClientV2) ServerUnshelve(id string) error
func (ComputeClientV2) ServerVolumeAdd ¶
func (client ComputeClientV2) ServerVolumeAdd(id string, volumeId string) (*VolumeAttachment, error)
func (ComputeClientV2) ServerVolumeDelete ¶
func (client ComputeClientV2) ServerVolumeDelete(id string, volumeId string) error
func (ComputeClientV2) ServerVolumeList ¶
func (client ComputeClientV2) ServerVolumeList(id string) ([]VolumeAttachment, error)
func (ComputeClientV2) ServiceAction ¶
func (ComputeClientV2) ServiceDisable ¶
func (ComputeClientV2) ServiceDown ¶
func (client ComputeClientV2) ServiceDown(host string, binary string) (*Service, error)
func (ComputeClientV2) ServiceEnable ¶
func (client ComputeClientV2) ServiceEnable(host string, binary string) (*Service, error)
func (ComputeClientV2) ServiceGetByHostBinary ¶
func (client ComputeClientV2) ServiceGetByHostBinary(host string, binary string) (*Service, error)
func (ComputeClientV2) ServiceList ¶
func (client ComputeClientV2) ServiceList(query netUrl.Values) ([]Service, error)
service api
func (ComputeClientV2) ServiceUp ¶
func (client ComputeClientV2) ServiceUp(host string, binary string) (*Service, error)
func (ComputeClientV2) ServiceUpdate ¶
func (client ComputeClientV2) ServiceUpdate(id string, update map[string]interface{}) (*Service, error)
func (*ComputeClientV2) String ¶
func (client *ComputeClientV2) String() string
func (*ComputeClientV2) UpdateVersion ¶
func (client *ComputeClientV2) UpdateVersion() error
X-OpenStack-Nova-API-Version
func (ComputeClientV2) WaitServerCreate ¶
func (client ComputeClientV2) WaitServerCreate(options ServerOpt) (*Server, error)
func (ComputeClientV2) WaitServerDeleted ¶
func (client ComputeClientV2) WaitServerDeleted(id string)
func (ComputeClientV2) WaitServerStatus ¶
func (client ComputeClientV2) WaitServerStatus(serverId string, status string) (*Server, error)
func (ComputeClientV2) WaitServerStatusSecond ¶
type ConsoleLog ¶
type ConsoleLog struct {
Output string `json:"output"`
}
type ExtraSpecs ¶
func (ExtraSpecs) GetList ¶
func (extraSpecs ExtraSpecs) GetList() []string
type Fault ¶
type Flavor ¶
type Flavor struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` OriginalName string `json:"original_name,omitempty"` Ram int `json:"ram,omitempty"` Vcpus int `json:"vcpus,omitempty"` Disk int `json:"disk"` Swap int `json:"swap,omitempty"` RXTXFactor float32 `json:"rxtx_factor,omitempty"` ExtraSpecs ExtraSpecs `json:"extra_specs,omitempty"` IsPublic bool `json:"os-flavor-access:is_public,omitempty"` Ephemeral int `json:"OS-FLV-DISABLED:ephemeral,omitempty"` Disabled bool `json:"OS-FLV-DISABLED:disabled,omitempty"` }
type Hypervisor ¶
type Hypervisor struct { common.Resource Hostname string `json:"hypervisor_hostname"` HostIp string `json:"host_ip"` Status string `json:"status"` State string `json:"state"` Type string `json:"hypervisor_type"` Version int `json:"hypervisor_version"` Uptime string `json:"uptime"` Vcpus int `json:"vcpus"` VcpusUsed int `json:"vcpus_used"` MemoryMB int `json:"memory_mb"` MemoryMBUsed int `json:"memory_mb_used"` ExtraResources map[string]interface{} `json:"extra_resources"` CpuInfo CpuInfo `json:"cpu_info"` NumaNode0Hugepages map[string]interface{} `json:"numa_node_0_hugepages"` NumaNode1Hugepages map[string]interface{} `json:"numa_node_1_hugepages"` NumaNode2Hugepages map[string]interface{} `json:"numa_node_2_hugepages"` NumaNode3Hugepages map[string]interface{} `json:"numa_node_3_hugepages"` NumaNode0Cpuset map[string]interface{} `json:"numa_node_0_cpuset"` NumaNode1Cpuset map[string]interface{} `json:"numa_node_1_cpuset"` NumaNode2Cpuset map[string]interface{} `json:"numa_node_2_cpuset"` NumaNode3Cpuset map[string]interface{} `json:"numa_node_3_cpuset"` Servers []HypervisorServer }
func (Hypervisor) ExtraResourcesMarshal ¶
func (hypervisor Hypervisor) ExtraResourcesMarshal(indent bool) string
type HypervisorServer ¶
type Hypervisors ¶
type Hypervisors []Hypervisor
type InstanceAction ¶
type InstanceActionAndEvents ¶
type InstanceActionAndEvents struct { InstanceAction InstanceAction `json:"action"` RequestId string `json:"request_id"` Events []InstanceActionEvent `json:"events"` }
func (InstanceActionAndEvents) GetSpendTime ¶
func (actionWithEvents InstanceActionAndEvents) GetSpendTime() (float64, error)
type InstanceActionEvent ¶
type InstanceActionEvent struct { Event string `json:"event"` StartTime string `json:"start_time"` FinishTime string `json:"finish_time"` Host string `json:"host"` HostId string `json:"hostId"` Result string `json:"result"` Traceback string `json:"traceback"` }
func (InstanceActionEvent) GetSpendTime ¶
func (event InstanceActionEvent) GetSpendTime() (float64, error)
type InstanceActionEvents ¶
type InstanceActionEvents []InstanceActionEvent
type InstanceActions ¶
type InstanceActions []InstanceAction
type InterfaceAttachment ¶
type InterfaceAttachment struct { MacAddr string `json:"mac_addr"` NetId string `json:"net_id"` PortId string `json:"port_id"` PortState string `json:"port_state"` FixedIps []FixedIp `json:"fixed_ips"` }
func (InterfaceAttachment) GetIPAddresses ¶
func (attachment InterfaceAttachment) GetIPAddresses() []string
func (InterfaceAttachment) GetIpAddresses ¶
func (attachment InterfaceAttachment) GetIpAddresses() []string
type Migration ¶
type Migration struct { Id int `json:"id"` OldInstanceTypeId int `json:"old_instance_type_id"` NewInstanceTypeId int `json:"new_instance_type_id"` InstanceUUID string `json:"instance_uuid"` MigrationType string `json:"migration_type"` Status string `json:"status"` DestCompute string `json:"dest_compute"` DestNode string `json:"dest_node"` DestHost string `json:"dest_host"` SourceCompute string `json:"source_compute"` SourceNode string `json:"source_node"` SourceRegion string `json:"source_region,omitempty"` DestRegion string `json:"dest_regoin,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
type RegionMigrateResp ¶
type Server ¶
type Server struct { common.Resource TaskState string `json:"OS-EXT-STS:task_state,omitempty"` PowerState int `json:"OS-EXT-STS:power_state,omitempty"` VmState string `json:"OS-EXT-STS:vm_state,omitempty"` Host string `json:"OS-EXT-SRV-ATTR:host,omitempty"` AZ string `json:"OS-EXT-AZ:availability_zone,omitempty"` Flavor Flavor `json:"flavor,omitempty"` Image Image `json:"image,omitempty"` Fault Fault `json:"fault,omitempty"` Addresses map[string][]Address `json:"addresses,omitempty"` InstanceName string `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"` ConfigDriver string `json:"config_drive,omitempty"` Created string `json:"created,omitempty"` Updated string `json:"updated,omitempty"` TerminatedAt string `json:"OS-SRV-USG:terminated_at,omitempty"` LaunchedAt string `json:"OS-SRV-USG:launched_at,omitempty"` UserId string `json:"user_id,omitempty"` Description string `json:"description,omitempty"` RootBdmType string `json:"root_bdm_type,omitempty"` }
func (Server) GetFaultString ¶
func (Server) GetFlavorExtraSpecsString ¶
func (*Server) GetNetworks ¶
func (*Server) GetPowerState ¶
func (*Server) GetTaskState ¶
type ServerGroup ¶
type ServerGroup struct { Id string `json:"id"` Name string `json:"name"` Policies []string `json:"policies"` Custom bool `json:"custom"` Members []string `json:"members"` Metadata map[string]interface{} `json:"metadata"` ProjectId string `json:"project_id"` UserId string `json:"user_id"` }
{"policies": ["soft-anti-affinity"], "name": "soft-anti-affinity", "custom": false, "members": [], "id": "7357b2f7-d004-4c72-b38a-d3a156827c11", "metadata": {}}]
func (ServerGroup) GetMetadataList ¶
func (serverGroup ServerGroup) GetMetadataList() []string
type ServerOpt ¶
type ServerOpt struct { Flavor string `json:"flavorRef,omitempty"` Image string `json:"imageRef,omitempty"` Name string `json:"name,omitempty"` Networks interface{} `json:"networks,omitempty"` AvailabilityZone string `json:"availability_zone,omitempty"` BlockDeviceMappingV2 []BlockDeviceMappingV2 `json:"block_device_mapping_v2,omitempty"` MinCount uint16 `json:"min_count"` MaxCount uint16 `json:"max_count"` UserData string `json:"user_data,omitempty"` }
type ServerOptNetwork ¶
type Service ¶
type Service struct { common.Resource Zone string `json:"zone,omitempty"` Host string `json:"host,omitempty"` Binary string `json:"binary,omitempty"` Status string `json:"status,omitempty"` State string `json:"state,omitempty"` DisabledReason string `json:"disabled_reason,omitempty"` ForcedDown bool `json:"forced_down,omitempty"` }
type ServiceState ¶
type VolumeAttachment ¶
Click to show internal directories.
Click to hide internal directories.