openstack

package
v0.0.0-...-2ab8be3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

OpenStack Client with Golang

Index

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

func InvalidMIgrationPoicy(policy string) error

Types

type AZApi

type AZApi struct {
	NovaV2
}

func (AZApi) Detail

func (c AZApi) Detail(query url.Values) ([]nova.AvailabilityZone, error)

func (AZApi) List

func (c AZApi) List(query url.Values) ([]nova.AvailabilityZone, error)

avaliable zone api

type AgentApi

type AgentApi struct {
	NeutronV2
}

func (AgentApi) List

func (c AgentApi) List(query url.Values) ([]neutron.Agent, error)

type AggregateApi

type AggregateApi struct {
	NovaV2
}

func (AggregateApi) List

func (c AggregateApi) List(query url.Values) ([]nova.Aggregate, error)

func (AggregateApi) Show

func (c AggregateApi) Show(aggregate string) (*nova.Aggregate, error)

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

func (CinderV2) Volumes

func (c CinderV2) Volumes() VolumeApi

type ComputeServiceApi

type ComputeServiceApi struct {
	NovaV2
}

func (ComputeServiceApi) Delete

func (c ComputeServiceApi) Delete(host string, binary string) error

func (ComputeServiceApi) Disable

func (c ComputeServiceApi) Disable(host string, binary string, reason string) (*nova.Service, error)

func (ComputeServiceApi) Down

func (c ComputeServiceApi) Down(host string, binary string) (*nova.Service, error)

func (ComputeServiceApi) Enable

func (c ComputeServiceApi) Enable(host string, binary string) (*nova.Service, error)

func (ComputeServiceApi) GetByHostBinary

func (c ComputeServiceApi) GetByHostBinary(host string, binary string) (*nova.Service, error)

func (ComputeServiceApi) List

func (c ComputeServiceApi) List(query url.Values) ([]nova.Service, error)

func (ComputeServiceApi) Up

func (c ComputeServiceApi) Up(host string, binary string) (*nova.Service, error)

type EndpointApi

type EndpointApi struct {
	KeystoneV3
}

func (EndpointApi) Create

func (c EndpointApi) Create(endpoint keystone.Endpoint) (*keystone.Endpoint, error)

func (EndpointApi) Delete

func (c EndpointApi) Delete(id string) error

func (EndpointApi) List

func (c EndpointApi) List(query url.Values) ([]keystone.Endpoint, error)

func (EndpointApi) ListByService

func (c EndpointApi) ListByService(serviceType string, serviceName string, serviceInterface string) ([]keystone.Endpoint, error)

type FlavorApi

type FlavorApi struct {
	NovaV2
}

func (FlavorApi) Copy

func (c FlavorApi) Copy(id string, newName string, newId string,
	newVcpus int, newRam int, newDisk int, newSwap int,
	newEphemeral int, newRxtxFactor float32, setProperties map[string]string,
	unsetProperties []string,
) (*nova.Flavor, error)

func (FlavorApi) Create

func (c FlavorApi) Create(flavor nova.Flavor) (*nova.Flavor, error)

func (FlavorApi) Delete

func (c FlavorApi) Delete(id string) (err error)

func (FlavorApi) DeleteExtraSpec

func (c FlavorApi) DeleteExtraSpec(id string, extraSpec string) error

func (FlavorApi) Detail

func (c FlavorApi) Detail(query url.Values) ([]nova.Flavor, error)

func (FlavorApi) Found

func (c FlavorApi) Found(idOrName string) (*nova.Flavor, error)

func (FlavorApi) List

func (c FlavorApi) List(query url.Values) ([]nova.Flavor, error)

func (FlavorApi) ListExtraSpecs

func (c FlavorApi) ListExtraSpecs(id string) (nova.ExtraSpecs, error)

func (FlavorApi) SetExtraSpecs

func (c FlavorApi) SetExtraSpecs(id string, extraSpecs map[string]string) (nova.ExtraSpecs, error)

func (FlavorApi) Show

func (c FlavorApi) Show(id string) (*nova.Flavor, error)

func (FlavorApi) ShowWithExtraSpecs

func (c FlavorApi) ShowWithExtraSpecs(id string) (*nova.Flavor, error)

type Glance

type Glance struct {
	RestClient
}

func (Glance) GetCurrentVersion

func (c Glance) GetCurrentVersion() (*model.ApiVersion, error)

func (Glance) Images

func (c Glance) Images() ImageApi

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 ImageApi

type ImageApi struct {
	Glance
}

func (ImageApi) Create

func (c ImageApi) Create(options glance.Image) (*glance.Image, error)

func (ImageApi) Delete

func (c ImageApi) Delete(id string) (err error)

func (ImageApi) Download

func (c ImageApi) Download(id string, fileName string, process bool) error

func (ImageApi) Found

func (c ImageApi) Found(idOrName string) (*glance.Image, error)

func (ImageApi) FoundByName

func (c ImageApi) FoundByName(name string) (*glance.Image, error)

func (ImageApi) List

func (c ImageApi) List(query url.Values, total int) ([]glance.Image, error)

func (ImageApi) ListByName

func (c ImageApi) ListByName(name string) ([]glance.Image, error)

func (ImageApi) Set

func (c ImageApi) Set(id string, params map[string]interface{}) (*glance.Image, error)

func (ImageApi) Show

func (c ImageApi) Show(id string) (*glance.Image, error)

func (ImageApi) Upload

func (c ImageApi) Upload(id string, fileName string) error

type ItemNotFound

type ItemNotFound struct {
	OpenstackError
}

func ItemNotFoundError

func ItemNotFoundError(format string, args ...interface{}) ItemNotFound

type KeypairApi

type KeypairApi struct {
	NovaV2
}

func (KeypairApi) List

func (c KeypairApi) List(query url.Values) ([]nova.Keypair, error)

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
}

func (MigrationApi) List

func (c MigrationApi) List(query url.Values) ([]nova.Migration, error)

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) Found

func (c NetworkApi) Found(idOrName string) (*neutron.Network, error)

func (NetworkApi) List

func (c NetworkApi) List(query url.Values) ([]neutron.Network, error)

func (NetworkApi) ListByName

func (c NetworkApi) ListByName(name string) ([]neutron.Network, error)

func (NetworkApi) Show

func (c NetworkApi) Show(id string) (*neutron.Network, error)

type NeutronV2

type NeutronV2 struct {
	RestClient
	// contains filtered or unexported fields
}

func (NeutronV2) Agents

func (c NeutronV2) Agents() AgentApi

func (*NeutronV2) GetCurrentVersion

func (c *NeutronV2) GetCurrentVersion() (*model.ApiVersion, error)

func (NeutronV2) Networks

func (c NeutronV2) Networks() NetworkApi

func (NeutronV2) Ports

func (c NeutronV2) Ports() PortApi

func (NeutronV2) Routers

func (c NeutronV2) Routers() RouterApi

func (NeutronV2) Subnets

func (c NeutronV2) Subnets() SubnetApi

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 (c NovaV2) AvailabilityZones() AZApi

func (NovaV2) Flavors

func (c NovaV2) Flavors() FlavorApi

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 (c *NovaV2) MicroVersionLargeEqual(version string) bool

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

func (*NovaV2) String

func (c *NovaV2) String() string

type Openstack

type Openstack struct {
	AuthPlugin auth.AuthPlugin
	// contains filtered or unexported fields
}

func Client

func Client(region string) *Openstack

func DefaultClient

func DefaultClient() *Openstack

func NewClient

func NewClient(authUrl string, user auth.User, project auth.Project,
	regionName string, tokenExpireSecond int,
) *Openstack

func (*Openstack) CinderV2

func (o *Openstack) CinderV2() *CinderV2

func (*Openstack) GlanceV2

func (o *Openstack) GlanceV2() *Glance

func (*Openstack) KeystoneV3

func (o *Openstack) KeystoneV3() *KeystoneV3

func (*Openstack) NeutronV2

func (o *Openstack) NeutronV2() *NeutronV2

func (*Openstack) NovaV2

func (o *Openstack) NovaV2() *NovaV2

func (Openstack) PrunePorts

func (o Openstack) PrunePorts(ports []neutron.Port)

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 PortApi

type PortApi struct {
	NeutronV2
}

func (PortApi) Create

func (c PortApi) Create(params map[string]interface{}) (*neutron.Port, error)

func (PortApi) Delete

func (c PortApi) Delete(id string) (err error)

func (PortApi) Found

func (c PortApi) Found(idOrName string) (*neutron.Port, error)

func (PortApi) List

func (c PortApi) List(query url.Values) ([]neutron.Port, error)

func (PortApi) ListByName

func (c PortApi) ListByName(name string) ([]neutron.Port, error)

func (PortApi) Show

func (c PortApi) Show(id string) (*neutron.Port, error)

type ProjectApi

type ProjectApi struct {
	KeystoneV3
}

func (ProjectApi) Delete

func (c ProjectApi) Delete(id string) error

func (ProjectApi) List

func (c ProjectApi) List(query url.Values) ([]auth.Project, error)

func (ProjectApi) Show

func (c ProjectApi) Show(id string) (*auth.Project, error)

type RegionApi

type RegionApi struct {
	KeystoneV3
}

func (RegionApi) List

func (c RegionApi) List(query url.Values) ([]keystone.Region, error)

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

func (*RestClient) Delete

func (rest *RestClient) Delete(url string, query url.Values) (*utility.Response, error)

func (*RestClient) DoRequest

func (rest *RestClient) DoRequest(req *http.Request) (*utility.Response, error)

func (*RestClient) Get

func (rest *RestClient) Get(url string, query url.Values) (*utility.Response, error)

func (*RestClient) GetReq

func (rest *RestClient) GetReq(req utility.Request) (*utility.Response, error)

func (*RestClient) Index

func (rest *RestClient) Index() (*utility.Response, error)

func (*RestClient) Patch

func (rest *RestClient) Patch(req utility.Request) (*utility.Response, error)

func (*RestClient) Post

func (rest *RestClient) Post(url string, body []byte, query url.Values) (*utility.Response, error)

func (*RestClient) Put

func (rest *RestClient) Put(url string, body []byte, query url.Values) (*utility.Response, error)

func (*RestClient) PutFile

func (rest *RestClient) PutFile(r utility.Request, file string) (*utility.Response, error)

type RoleAssignmentApi

type RoleAssignmentApi struct {
	KeystoneV3
}

func (RoleAssignmentApi) List

type RouterApi

type RouterApi struct {
	NeutronV2
}

func (RouterApi) Create

func (c RouterApi) Create(params map[string]interface{}) (*neutron.Router, error)

func (RouterApi) Delete

func (c RouterApi) Delete(id string) (err error)

func (RouterApi) List

func (c RouterApi) List(query url.Values) ([]neutron.Router, error)

func (RouterApi) ListByName

func (c RouterApi) ListByName(name string) ([]neutron.Router, error)

func (RouterApi) Show

func (c RouterApi) Show(id string) (*neutron.Router, 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 (c ServersApi) ConsoleUrl(id string, consoleType string) (*nova.Console, error)

func (ServersApi) Create

func (c ServersApi) Create(options nova.ServerOpt) (*nova.Server, error)

func (ServersApi) CreateAndWait

func (c ServersApi) CreateAndWait(options nova.ServerOpt) (*nova.Server, error)

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) Detail

func (c ServersApi) Detail(query url.Values) ([]nova.Server, error)

func (ServersApi) DetailsByName

func (c ServersApi) DetailsByName(name string) ([]nova.Server, error)

func (ServersApi) Evacuate

func (c ServersApi) Evacuate(id string, password string, host string, force bool) error

func (ServersApi) Found

func (c ServersApi) Found(idOrName string) (*nova.Server, error)

func (ServersApi) List

func (c ServersApi) List(query url.Values) ([]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 (c ServersApi) ListMigrations(id string, query url.Values) ([]nova.Migration, error)

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) Migrate

func (c ServersApi) Migrate(id string, host string) error

func (ServersApi) Pause

func (c ServersApi) Pause(id string) error

func (ServersApi) Prune

func (c ServersApi) Prune(query url.Values, yes bool, waitDeleted bool)

func (ServersApi) Reboot

func (c ServersApi) Reboot(id string, hard bool) error

func (ServersApi) Rebuild

func (c ServersApi) Rebuild(id string) error

TODO: more params

func (ServersApi) RegionLiveMigrate

func (c ServersApi) RegionLiveMigrate(id string, destRegion string, blockMigrate bool, dryRun bool, destHost string) (*nova.RegionMigrateResp, error)

func (ServersApi) Resize

func (c ServersApi) Resize(id string, flavorRef string) error

func (ServersApi) Resume

func (c ServersApi) Resume(id string) error

func (ServersApi) SetName

func (c ServersApi) SetName(id string, name 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) Show

func (c ServersApi) Show(id string) (*nova.Server, 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 (c ServersApi) WaitRebooted(id string, newFlavorName string) (*nova.Server, error)

func (ServersApi) WaitResized

func (c ServersApi) WaitResized(id string, newFlavorName string) (*nova.Server, error)

func (ServersApi) WaitStatus

func (c ServersApi) WaitStatus(serverId string, status string, interval int) (*nova.Server, error)

func (ServersApi) WaitTask

func (c ServersApi) WaitTask(id string, taskState string) (*nova.Server, error)

type ServiceApi

type ServiceApi struct {
	KeystoneV3
}

func (ServiceApi) Create

func (c ServiceApi) Create(service keystone.Service) (*keystone.Service, error)

func (ServiceApi) Delete

func (c ServiceApi) Delete(id string) error

func (ServiceApi) Found

func (c ServiceApi) Found(s string) (*keystone.Service, error)

func (ServiceApi) List

func (c ServiceApi) List(query url.Values) ([]keystone.Service, error)

func (ServiceApi) ListByName

func (c ServiceApi) ListByName(name string) ([]keystone.Service, error)

func (ServiceApi) Show

func (c ServiceApi) Show(id 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 SubnetApi

type SubnetApi struct {
	NeutronV2
}

func (SubnetApi) Create

func (c SubnetApi) Create(params map[string]interface{}) (*neutron.Subnet, error)

func (SubnetApi) Delete

func (c SubnetApi) Delete(id string) (err error)

func (SubnetApi) Found

func (c SubnetApi) Found(idOrName string) (*neutron.Subnet, error)

func (SubnetApi) List

func (c SubnetApi) List(query url.Values) ([]neutron.Subnet, error)

func (SubnetApi) ListByName

func (c SubnetApi) ListByName(name string) ([]neutron.Subnet, error)

func (SubnetApi) Show

func (c SubnetApi) Show(id string) (*neutron.Subnet, error)

type UserApi

type UserApi struct {
	KeystoneV3
}

func (UserApi) List

func (c UserApi) List(query url.Values) ([]auth.User, error)

func (UserApi) ListByProjectId

func (c UserApi) ListByProjectId(projectId string) ([]auth.User, error)

func (UserApi) Show

func (c UserApi) Show(id string) (*auth.User, error)

type VolumeApi

type VolumeApi struct {
	CinderV2
}

func (VolumeApi) Create

func (c VolumeApi) Create(options map[string]interface{}) (*cinder.Volume, error)

func (VolumeApi) CreateAndWait

func (c VolumeApi) CreateAndWait(options map[string]interface{}, timeoutSeconds int) (*cinder.Volume, error)

func (VolumeApi) Delete

func (c VolumeApi) Delete(id string) (err error)

func (VolumeApi) Detail

func (c VolumeApi) Detail(query url.Values) ([]cinder.Volume, error)

func (VolumeApi) DetailByName

func (c VolumeApi) DetailByName(name string) ([]cinder.Volume, error)

func (VolumeApi) Extend

func (c VolumeApi) Extend(id string, size int) error

func (VolumeApi) Found

func (c VolumeApi) Found(idOrName string) (*cinder.Volume, error)

func (VolumeApi) List

func (c VolumeApi) List(query url.Values) ([]cinder.Volume, error)

func (VolumeApi) ListByName

func (c VolumeApi) ListByName(name string) ([]cinder.Volume, error)

func (VolumeApi) Prune

func (c VolumeApi) Prune(query url.Values, yes bool)

func (VolumeApi) Retype

func (c VolumeApi) Retype(id string, newType string, migrationPolicy string) error

func (VolumeApi) Show

func (c VolumeApi) Show(id string) (*cinder.Volume, error)

type VolumeServiceApi

type VolumeServiceApi struct {
	CinderV2
}

func (VolumeServiceApi) List

func (c VolumeServiceApi) List(query url.Values) ([]cinder.Service, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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