Documentation ¶
Overview ¶
OpenStack Client with Golang
Index ¶
- Constants
- Variables
- func InvalidMIgrationPoicy(policy string) error
- type AZApi
- type AgentApi
- type AggregateApi
- type CinderV2
- type ComputeServiceApi
- func (c ComputeServiceApi) Delete(host string, binary string) error
- func (c ComputeServiceApi) Disable(host string, binary string, reason string) (*nova.Service, error)
- func (c ComputeServiceApi) Down(host string, binary string) (*nova.Service, error)
- func (c ComputeServiceApi) Enable(host string, binary string) (*nova.Service, error)
- func (c ComputeServiceApi) GetByHostBinary(host string, binary string) (*nova.Service, error)
- func (c ComputeServiceApi) List(query url.Values) ([]nova.Service, error)
- func (c ComputeServiceApi) Up(host string, binary string) (*nova.Service, error)
- type EndpointApi
- func (c EndpointApi) Create(endpoint keystone.Endpoint) (*keystone.Endpoint, error)
- func (c EndpointApi) Delete(id string) error
- func (c EndpointApi) List(query url.Values) ([]keystone.Endpoint, error)
- func (c EndpointApi) ListByService(serviceType string, serviceName string, serviceInterface string) ([]keystone.Endpoint, error)
- type FlavorApi
- func (c FlavorApi) Copy(id string, newName string, newId string, newVcpus int, newRam int, newDisk int, ...) (*nova.Flavor, error)
- func (c FlavorApi) Create(flavor nova.Flavor) (*nova.Flavor, error)
- func (c FlavorApi) Delete(id string) (err error)
- func (c FlavorApi) DeleteExtraSpec(id string, extraSpec string) error
- func (c FlavorApi) Detail(query url.Values) ([]nova.Flavor, error)
- func (c FlavorApi) Found(idOrName string) (*nova.Flavor, error)
- func (c FlavorApi) List(query url.Values) ([]nova.Flavor, error)
- func (c FlavorApi) ListExtraSpecs(id string) (nova.ExtraSpecs, error)
- func (c FlavorApi) SetExtraSpecs(id string, extraSpecs map[string]string) (nova.ExtraSpecs, error)
- func (c FlavorApi) Show(id string) (*nova.Flavor, error)
- func (c FlavorApi) ShowWithExtraSpecs(id string) (*nova.Flavor, error)
- type Glance
- type HypervisorApi
- func (c HypervisorApi) Delete(id string) (err error)
- func (c HypervisorApi) Details(query url.Values) ([]nova.Hypervisor, error)
- func (c HypervisorApi) Found(idOrHostName string) (*nova.Hypervisor, error)
- func (c HypervisorApi) List(query url.Values) ([]nova.Hypervisor, error)
- func (c HypervisorApi) ListByName(hostname string) ([]nova.Hypervisor, error)
- func (c HypervisorApi) Show(id string) (*nova.Hypervisor, error)
- func (c HypervisorApi) ShowByHostname(hostname string) (*nova.Hypervisor, error)
- func (c HypervisorApi) Uptime(id string) (*nova.Hypervisor, error)
- type ImageApi
- func (c ImageApi) Create(options glance.Image) (*glance.Image, error)
- func (c ImageApi) Delete(id string) (err error)
- func (c ImageApi) Download(id string, fileName string, process bool) error
- func (c ImageApi) Found(idOrName string) (*glance.Image, error)
- func (c ImageApi) FoundByName(name string) (*glance.Image, error)
- func (c ImageApi) List(query url.Values, total int) ([]glance.Image, error)
- func (c ImageApi) ListByName(name string) ([]glance.Image, error)
- func (c ImageApi) Set(id string, params map[string]interface{}) (*glance.Image, error)
- func (c ImageApi) Show(id string) (*glance.Image, error)
- func (c ImageApi) Upload(id string, fileName string) error
- type ItemNotFound
- type KeypairApi
- type KeystoneV3
- func (c KeystoneV3) Endpoints() EndpointApi
- func (c KeystoneV3) GetCurrentVersion() (*model.ApiVersion, error)
- func (c KeystoneV3) GetStableVersion() (*model.ApiVersion, error)
- func (c KeystoneV3) Projects() ProjectApi
- func (c KeystoneV3) Regions() RegionApi
- func (c KeystoneV3) RoleAssignments() RoleAssignmentApi
- func (c KeystoneV3) Services() ServiceApi
- func (c KeystoneV3) Users() UserApi
- type MigrationApi
- type MultiItems
- type NetworkApi
- func (c NetworkApi) Create(params map[string]interface{}) (*neutron.Network, error)
- func (c NetworkApi) Delete(id string) (err error)
- func (c NetworkApi) Found(idOrName string) (*neutron.Network, error)
- func (c NetworkApi) List(query url.Values) ([]neutron.Network, error)
- func (c NetworkApi) ListByName(name string) ([]neutron.Network, error)
- func (c NetworkApi) Show(id string) (*neutron.Network, error)
- type NeutronV2
- type NovaV2
- func (c NovaV2) Aggregates() AggregateApi
- func (c NovaV2) AvailabilityZones() AZApi
- func (c NovaV2) Flavors() FlavorApi
- func (c *NovaV2) GetCurrentVersion() (*model.ApiVersion, error)
- func (c NovaV2) Hypervisors() HypervisorApi
- func (c NovaV2) Keypairs() KeypairApi
- func (c *NovaV2) MicroVersionLargeEqual(version string) bool
- func (c NovaV2) Migrations() MigrationApi
- func (c NovaV2) ServerGroups() ServerGroupApi
- func (c NovaV2) Servers() ServersApi
- func (c NovaV2) Services() ComputeServiceApi
- func (c *NovaV2) String() string
- type Openstack
- func (o *Openstack) CinderV2() *CinderV2
- func (o *Openstack) GlanceV2() *Glance
- func (o *Openstack) KeystoneV3() *KeystoneV3
- func (o *Openstack) NeutronV2() *NeutronV2
- func (o *Openstack) NovaV2() *NovaV2
- func (o Openstack) PrunePorts(ports []neutron.Port)
- func (client Openstack) ServerInspect(serverId string) (*ServerInspect, error)
- type OpenstackClientInterface
- type OpenstackError
- type PortApi
- func (c PortApi) Create(params map[string]interface{}) (*neutron.Port, error)
- func (c PortApi) Delete(id string) (err error)
- func (c PortApi) Found(idOrName string) (*neutron.Port, error)
- func (c PortApi) List(query url.Values) ([]neutron.Port, error)
- func (c PortApi) ListByName(name string) ([]neutron.Port, error)
- func (c PortApi) Show(id string) (*neutron.Port, error)
- type ProjectApi
- type RegionApi
- type RestClient
- func (rest *RestClient) Delete(url string, query url.Values) (*utility.Response, error)
- func (rest *RestClient) DoRequest(req *http.Request) (*utility.Response, error)
- func (rest *RestClient) Get(url string, query url.Values) (*utility.Response, error)
- func (rest *RestClient) GetReq(req utility.Request) (*utility.Response, error)
- func (rest *RestClient) Index() (*utility.Response, error)
- func (rest *RestClient) Patch(req utility.Request) (*utility.Response, error)
- func (rest *RestClient) Post(url string, body []byte, query url.Values) (*utility.Response, error)
- func (rest *RestClient) Put(url string, body []byte, query url.Values) (*utility.Response, error)
- func (rest *RestClient) PutFile(r utility.Request, file string) (*utility.Response, error)
- type RoleAssignmentApi
- type RouterApi
- func (c RouterApi) Create(params map[string]interface{}) (*neutron.Router, error)
- func (c RouterApi) Delete(id string) (err error)
- func (c RouterApi) List(query url.Values) ([]neutron.Router, error)
- func (c RouterApi) ListByName(name string) ([]neutron.Router, error)
- func (c RouterApi) Show(id string) (*neutron.Router, error)
- type ServerGroupApi
- type ServerInspect
- type ServersApi
- func (c ServersApi) AddInterface(id string, netId, portId string) (*nova.InterfaceAttachment, error)
- func (c ServersApi) AddVolume(id string, volumeId string) (*nova.VolumeAttachment, error)
- func (c ServersApi) ConsoleLog(id string, length uint) (*nova.ConsoleLog, error)
- func (c ServersApi) ConsoleUrl(id string, consoleType string) (*nova.Console, error)
- func (c ServersApi) Create(options nova.ServerOpt) (*nova.Server, error)
- func (c ServersApi) CreateAndWait(options nova.ServerOpt) (*nova.Server, error)
- func (c ServersApi) Delete(id string) (err error)
- func (c ServersApi) DeleteInterface(id string, portId string) error
- func (c ServersApi) DeleteInterfaceAndWait(id string, portId string, waitSeconds int) error
- func (c ServersApi) DeleteVolume(id string, volumeId string) error
- func (c ServersApi) DeleteVolumeAndWait(id string, volumeId string, waitSeconds int) error
- func (c ServersApi) Detail(query url.Values) ([]nova.Server, error)
- func (c ServersApi) DetailsByName(name string) ([]nova.Server, error)
- func (c ServersApi) Evacuate(id string, password string, host string, force bool) error
- func (c ServersApi) Found(idOrName string) (*nova.Server, error)
- func (c ServersApi) List(query url.Values) ([]nova.Server, error)
- func (c ServersApi) ListActions(id string) ([]nova.InstanceAction, error)
- func (c ServersApi) ListActionsWithEvents(id string, actionName string, requestId string, last int) ([]nova.InstanceActionAndEvents, error)
- func (c ServersApi) ListByName(name string) ([]nova.Server, error)
- func (c ServersApi) ListInterfaces(id string) ([]nova.InterfaceAttachment, error)
- func (c ServersApi) ListMigrations(id string, query url.Values) ([]nova.Migration, error)
- func (c ServersApi) ListVolumes(id string) ([]nova.VolumeAttachment, error)
- func (c ServersApi) LiveMigrate(id string, blockMigrate interface{}, host string) error
- func (c ServersApi) Migrate(id string, host string) error
- func (c ServersApi) Pause(id string) error
- func (c ServersApi) Prune(query url.Values, yes bool, waitDeleted bool)
- func (c ServersApi) Reboot(id string, hard bool) error
- func (c ServersApi) Rebuild(id string) error
- func (c ServersApi) RegionLiveMigrate(id string, destRegion string, blockMigrate bool, dryRun bool, destHost string) (*nova.RegionMigrateResp, error)
- func (c ServersApi) Resize(id string, flavorRef string) error
- func (c ServersApi) Resume(id string) error
- func (c ServersApi) SetName(id string, name string) error
- func (c ServersApi) SetPassword(id string, password, user string) error
- func (c ServersApi) Shelve(id string) error
- func (c ServersApi) Show(id string) (*nova.Server, error)
- func (c ServersApi) ShowAction(id, requestId string) (*nova.InstanceAction, error)
- func (c ServersApi) Start(id string) error
- func (c ServersApi) Stop(id string) error
- func (c ServersApi) Suspend(id string) error
- func (c ServersApi) Unpause(id string) error
- func (c ServersApi) Unshelve(id string) error
- func (c ServersApi) WaitDeleted(id string) error
- func (c ServersApi) WaitRebooted(id string, newFlavorName string) (*nova.Server, error)
- func (c ServersApi) WaitResized(id string, newFlavorName string) (*nova.Server, error)
- func (c ServersApi) WaitStatus(serverId string, status string, interval int) (*nova.Server, error)
- func (c ServersApi) WaitTask(id string, taskState string) (*nova.Server, error)
- type ServiceApi
- func (c ServiceApi) Create(service keystone.Service) (*keystone.Service, error)
- func (c ServiceApi) Delete(id string) error
- func (c ServiceApi) Found(s string) (*keystone.Service, error)
- func (c ServiceApi) List(query url.Values) ([]keystone.Service, error)
- func (c ServiceApi) ListByName(name string) ([]keystone.Service, error)
- func (c ServiceApi) Show(id string) (*keystone.Service, error)
- func (c ServiceApi) ShowByName(n string) (*keystone.Service, error)
- func (c ServiceApi) ShowByType(t string) (*keystone.Service, error)
- type SubnetApi
- func (c SubnetApi) Create(params map[string]interface{}) (*neutron.Subnet, error)
- func (c SubnetApi) Delete(id string) (err error)
- func (c SubnetApi) Found(idOrName string) (*neutron.Subnet, error)
- func (c SubnetApi) List(query url.Values) ([]neutron.Subnet, error)
- func (c SubnetApi) ListByName(name string) ([]neutron.Subnet, error)
- func (c SubnetApi) Show(id string) (*neutron.Subnet, error)
- type UserApi
- type VolumeApi
- func (c VolumeApi) Create(options map[string]interface{}) (*cinder.Volume, error)
- func (c VolumeApi) CreateAndWait(options map[string]interface{}, timeoutSeconds int) (*cinder.Volume, error)
- func (c VolumeApi) Delete(id string) (err error)
- func (c VolumeApi) Detail(query url.Values) ([]cinder.Volume, error)
- func (c VolumeApi) DetailByName(name string) ([]cinder.Volume, error)
- func (c VolumeApi) Extend(id string, size int) error
- func (c VolumeApi) Found(idOrName string) (*cinder.Volume, error)
- func (c VolumeApi) List(query url.Values) ([]cinder.Volume, error)
- func (c VolumeApi) ListByName(name string) ([]cinder.Volume, error)
- func (c VolumeApi) Prune(query url.Values, yes bool)
- func (c VolumeApi) Retype(id string, newType string, migrationPolicy string) error
- func (c VolumeApi) Show(id string) (*cinder.Volume, error)
- type VolumeServiceApi
- type VolumeTypeApi
- func (c VolumeTypeApi) Create(params map[string]interface{}) (*cinder.VolumeType, error)
- func (c VolumeTypeApi) Default() (*cinder.VolumeType, error)
- func (c VolumeTypeApi) Delete(id string) (err error)
- func (c VolumeTypeApi) Found(idOrName string) (*cinder.VolumeType, error)
- func (c VolumeTypeApi) List(query url.Values) ([]cinder.VolumeType, error)
- func (c VolumeTypeApi) ListByName(name string) ([]cinder.VolumeType, error)
- func (c VolumeTypeApi) Show(id string) (*cinder.VolumeType, error)
Constants ¶
View Source
const ( POLICY_NEVER = "never" POLICY_ON_DEMAND = "on-demand" )
View Source
const V2 = "v2"
View Source
const V2_1 = "v2.1"
View Source
const V3 = "v3"
Variables ¶
View Source
var MIGRATION_POLICYS = []string{POLICY_NEVER, POLICY_ON_DEMAND}
Functions ¶
func InvalidMIgrationPoicy ¶
Types ¶
type AggregateApi ¶
type AggregateApi struct {
NovaV2
}
type CinderV2 ¶
type CinderV2 struct {
RestClient
}
func (CinderV2) GetCurrentVersion ¶
func (c CinderV2) GetCurrentVersion() (*model.ApiVersion, error)
func (CinderV2) Services ¶
func (c CinderV2) Services() VolumeServiceApi
func (CinderV2) VolumeTypes ¶
func (c CinderV2) VolumeTypes() VolumeTypeApi
type ComputeServiceApi ¶
type ComputeServiceApi struct {
NovaV2
}
func (ComputeServiceApi) Delete ¶
func (c ComputeServiceApi) Delete(host string, binary string) error
func (ComputeServiceApi) GetByHostBinary ¶
type EndpointApi ¶
type EndpointApi struct {
KeystoneV3
}
func (EndpointApi) Delete ¶
func (c EndpointApi) Delete(id string) error
func (EndpointApi) ListByService ¶
type FlavorApi ¶
type FlavorApi struct {
NovaV2
}
func (FlavorApi) DeleteExtraSpec ¶
func (FlavorApi) ListExtraSpecs ¶
func (c FlavorApi) ListExtraSpecs(id string) (nova.ExtraSpecs, error)
func (FlavorApi) SetExtraSpecs ¶
type Glance ¶
type Glance struct {
RestClient
}
func (Glance) GetCurrentVersion ¶
func (c Glance) GetCurrentVersion() (*model.ApiVersion, error)
type HypervisorApi ¶
type HypervisorApi struct {
NovaV2
}
func (HypervisorApi) Delete ¶
func (c HypervisorApi) Delete(id string) (err error)
func (HypervisorApi) Details ¶
func (c HypervisorApi) Details(query url.Values) ([]nova.Hypervisor, error)
func (HypervisorApi) Found ¶
func (c HypervisorApi) Found(idOrHostName string) (*nova.Hypervisor, error)
func (HypervisorApi) List ¶
func (c HypervisorApi) List(query url.Values) ([]nova.Hypervisor, error)
func (HypervisorApi) ListByName ¶
func (c HypervisorApi) ListByName(hostname string) ([]nova.Hypervisor, error)
func (HypervisorApi) Show ¶
func (c HypervisorApi) Show(id string) (*nova.Hypervisor, error)
func (HypervisorApi) ShowByHostname ¶
func (c HypervisorApi) ShowByHostname(hostname string) (*nova.Hypervisor, error)
func (HypervisorApi) Uptime ¶
func (c HypervisorApi) Uptime(id string) (*nova.Hypervisor, error)
type ItemNotFound ¶
type ItemNotFound struct {
OpenstackError
}
func ItemNotFoundError ¶
func ItemNotFoundError(format string, args ...interface{}) ItemNotFound
type KeypairApi ¶
type KeypairApi struct {
NovaV2
}
type KeystoneV3 ¶
type KeystoneV3 struct {
RestClient
}
func (KeystoneV3) Endpoints ¶
func (c KeystoneV3) Endpoints() EndpointApi
func (KeystoneV3) GetCurrentVersion ¶
func (c KeystoneV3) GetCurrentVersion() (*model.ApiVersion, error)
func (KeystoneV3) GetStableVersion ¶
func (c KeystoneV3) GetStableVersion() (*model.ApiVersion, error)
func (KeystoneV3) Projects ¶
func (c KeystoneV3) Projects() ProjectApi
func (KeystoneV3) Regions ¶
func (c KeystoneV3) Regions() RegionApi
func (KeystoneV3) RoleAssignments ¶
func (c KeystoneV3) RoleAssignments() RoleAssignmentApi
func (KeystoneV3) Services ¶
func (c KeystoneV3) Services() ServiceApi
func (KeystoneV3) Users ¶
func (c KeystoneV3) Users() UserApi
type MigrationApi ¶
type MigrationApi struct {
NovaV2
}
type MultiItems ¶
type MultiItems struct {
OpenstackError
}
func MultiItemsError ¶
func MultiItemsError(format string, args ...interface{}) MultiItems
type NetworkApi ¶
type NetworkApi struct {
NeutronV2
}
func (NetworkApi) Create ¶
func (c NetworkApi) Create(params map[string]interface{}) (*neutron.Network, error)
func (NetworkApi) Delete ¶
func (c NetworkApi) Delete(id string) (err error)
func (NetworkApi) ListByName ¶
func (c NetworkApi) ListByName(name string) ([]neutron.Network, error)
type NeutronV2 ¶
type NeutronV2 struct { RestClient // contains filtered or unexported fields }
func (*NeutronV2) GetCurrentVersion ¶
func (c *NeutronV2) GetCurrentVersion() (*model.ApiVersion, error)
func (NeutronV2) Networks ¶
func (c NeutronV2) Networks() NetworkApi
type NovaV2 ¶
type NovaV2 struct { RestClient MicroVersion model.ApiVersion // contains filtered or unexported fields }
func (NovaV2) Aggregates ¶
func (c NovaV2) Aggregates() AggregateApi
func (NovaV2) AvailabilityZones ¶
func (*NovaV2) GetCurrentVersion ¶
func (c *NovaV2) GetCurrentVersion() (*model.ApiVersion, error)
func (NovaV2) Hypervisors ¶
func (c NovaV2) Hypervisors() HypervisorApi
func (NovaV2) Keypairs ¶
func (c NovaV2) Keypairs() KeypairApi
func (*NovaV2) MicroVersionLargeEqual ¶
func (NovaV2) Migrations ¶
func (c NovaV2) Migrations() MigrationApi
func (NovaV2) ServerGroups ¶
func (c NovaV2) ServerGroups() ServerGroupApi
func (NovaV2) Servers ¶
func (c NovaV2) Servers() ServersApi
func (NovaV2) Services ¶
func (c NovaV2) Services() ComputeServiceApi
type Openstack ¶
type Openstack struct { AuthPlugin auth.AuthPlugin // contains filtered or unexported fields }
func DefaultClient ¶
func DefaultClient() *Openstack
func (*Openstack) KeystoneV3 ¶
func (o *Openstack) KeystoneV3() *KeystoneV3
func (Openstack) PrunePorts ¶
func (Openstack) ServerInspect ¶
func (client Openstack) ServerInspect(serverId string) (*ServerInspect, error)
type OpenstackClientInterface ¶
type OpenstackClientInterface interface {
Servers() *RestClient
}
type OpenstackError ¶
type OpenstackError struct {
Message string
}
func (OpenstackError) Error ¶
func (err OpenstackError) Error() string
type ProjectApi ¶
type ProjectApi struct {
KeystoneV3
}
func (ProjectApi) Delete ¶
func (c ProjectApi) Delete(id string) error
type RegionApi ¶
type RegionApi struct {
KeystoneV3
}
type RestClient ¶
type RestClient struct { BaseUrl string Timeout time.Duration AuthPlugin auth.AuthPlugin Headers map[string]string // contains filtered or unexported fields }
func NewRestClient ¶
func NewRestClient(baseUrl string, authPlugin auth.AuthPlugin) RestClient
type RoleAssignmentApi ¶
type RoleAssignmentApi struct {
KeystoneV3
}
func (RoleAssignmentApi) List ¶
func (c RoleAssignmentApi) List(query url.Values) ([]keystone.RoleAssigment, error)
type ServerGroupApi ¶
type ServerGroupApi struct {
NovaV2
}
func (ServerGroupApi) List ¶
func (c ServerGroupApi) List(query url.Values) ([]nova.ServerGroup, error)
type ServerInspect ¶
type ServerInspect struct { Server nova.Server `json:"server"` Interfaces []nova.InterfaceAttachment `json:"interfaces"` Volumes []nova.VolumeAttachment `json:"volumes"` PowerState string `json:"powerState"` InterfaceDetail map[string]neutron.Port `json:"interfaceDetail"` VolumeDetail map[string]cinder.Volume `json:"volumeDetail"` Actions []nova.InstanceAction `json:"actions"` }
func (*ServerInspect) Print ¶
func (serverInspect *ServerInspect) Print()
type ServersApi ¶
type ServersApi struct {
NovaV2
}
func (ServersApi) AddInterface ¶
func (c ServersApi) AddInterface(id string, netId, portId string) (*nova.InterfaceAttachment, error)
func (ServersApi) AddVolume ¶
func (c ServersApi) AddVolume(id string, volumeId string) (*nova.VolumeAttachment, error)
func (ServersApi) ConsoleLog ¶
func (c ServersApi) ConsoleLog(id string, length uint) (*nova.ConsoleLog, error)
func (ServersApi) ConsoleUrl ¶
func (ServersApi) CreateAndWait ¶
func (ServersApi) Delete ¶
func (c ServersApi) Delete(id string) (err error)
func (ServersApi) DeleteInterface ¶
func (c ServersApi) DeleteInterface(id string, portId string) error
func (ServersApi) DeleteInterfaceAndWait ¶
func (c ServersApi) DeleteInterfaceAndWait(id string, portId string, waitSeconds int) error
func (ServersApi) DeleteVolume ¶
func (c ServersApi) DeleteVolume(id string, volumeId string) error
func (ServersApi) DeleteVolumeAndWait ¶
func (c ServersApi) DeleteVolumeAndWait(id string, volumeId string, waitSeconds int) error
func (ServersApi) DetailsByName ¶
func (c ServersApi) DetailsByName(name string) ([]nova.Server, error)
func (ServersApi) ListActions ¶
func (c ServersApi) ListActions(id string) ([]nova.InstanceAction, error)
func (ServersApi) ListActionsWithEvents ¶
func (c ServersApi) ListActionsWithEvents(id string, actionName string, requestId string, last int) ([]nova.InstanceActionAndEvents, error)
func (ServersApi) ListByName ¶
func (c ServersApi) ListByName(name string) ([]nova.Server, error)
func (ServersApi) ListInterfaces ¶
func (c ServersApi) ListInterfaces(id string) ([]nova.InterfaceAttachment, error)
func (ServersApi) ListMigrations ¶
func (ServersApi) ListVolumes ¶
func (c ServersApi) ListVolumes(id string) ([]nova.VolumeAttachment, error)
func (ServersApi) LiveMigrate ¶
func (c ServersApi) LiveMigrate(id string, blockMigrate interface{}, host string) error
func (ServersApi) Pause ¶
func (c ServersApi) Pause(id string) error
func (ServersApi) RegionLiveMigrate ¶
func (c ServersApi) RegionLiveMigrate(id string, destRegion string, blockMigrate bool, dryRun bool, destHost string) (*nova.RegionMigrateResp, error)
func (ServersApi) Resume ¶
func (c ServersApi) Resume(id string) error
func (ServersApi) SetPassword ¶
func (c ServersApi) SetPassword(id string, password, user string) error
func (ServersApi) Shelve ¶
func (c ServersApi) Shelve(id string) error
func (ServersApi) ShowAction ¶
func (c ServersApi) ShowAction(id, requestId string) (*nova.InstanceAction, error)
func (ServersApi) Start ¶
func (c ServersApi) Start(id string) error
func (ServersApi) Stop ¶
func (c ServersApi) Stop(id string) error
func (ServersApi) Suspend ¶
func (c ServersApi) Suspend(id string) error
func (ServersApi) Unpause ¶
func (c ServersApi) Unpause(id string) error
func (ServersApi) Unshelve ¶
func (c ServersApi) Unshelve(id string) error
func (ServersApi) WaitDeleted ¶
func (c ServersApi) WaitDeleted(id string) error
func (ServersApi) WaitRebooted ¶
func (ServersApi) WaitResized ¶
func (ServersApi) WaitStatus ¶
type ServiceApi ¶
type ServiceApi struct {
KeystoneV3
}
func (ServiceApi) Delete ¶
func (c ServiceApi) Delete(id string) error
func (ServiceApi) ListByName ¶
func (c ServiceApi) ListByName(name string) ([]keystone.Service, error)
func (ServiceApi) ShowByName ¶
func (c ServiceApi) ShowByName(n string) (*keystone.Service, error)
func (ServiceApi) ShowByType ¶
func (c ServiceApi) ShowByType(t string) (*keystone.Service, error)
type VolumeApi ¶
type VolumeApi struct {
CinderV2
}
func (VolumeApi) CreateAndWait ¶
func (VolumeApi) DetailByName ¶
type VolumeServiceApi ¶
type VolumeServiceApi struct {
CinderV2
}
type VolumeTypeApi ¶
type VolumeTypeApi struct {
CinderV2
}
func (VolumeTypeApi) Create ¶
func (c VolumeTypeApi) Create(params map[string]interface{}) (*cinder.VolumeType, error)
func (VolumeTypeApi) Default ¶
func (c VolumeTypeApi) Default() (*cinder.VolumeType, error)
func (VolumeTypeApi) Delete ¶
func (c VolumeTypeApi) Delete(id string) (err error)
func (VolumeTypeApi) Found ¶
func (c VolumeTypeApi) Found(idOrName string) (*cinder.VolumeType, error)
func (VolumeTypeApi) List ¶
func (c VolumeTypeApi) List(query url.Values) ([]cinder.VolumeType, error)
func (VolumeTypeApi) ListByName ¶
func (c VolumeTypeApi) ListByName(name string) ([]cinder.VolumeType, error)
func (VolumeTypeApi) Show ¶
func (c VolumeTypeApi) Show(id string) (*cinder.VolumeType, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.