storage

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client allows access to the storage API end point.

func NewClient

func NewClient(st base.APICallCloser) *Client

NewClient creates a new client for accessing the storage API.

func (*Client) AddToUnit

func (c *Client) AddToUnit(storages []params.StorageAddParams) ([]params.ErrorResult, error)

AddToUnit adds specified storage to desired units.

func (*Client) Attach

func (c *Client) Attach(unitId string, storageIds []string) ([]params.ErrorResult, error)

Attach attaches existing storage to a unit.

func (*Client) CreatePool

func (c *Client) CreatePool(pname, provider string, attrs map[string]interface{}) error

CreatePool creates pool with specified parameters.

func (*Client) Destroy

func (c *Client) Destroy(storageIds []string) ([]params.ErrorResult, error)

Destroy destroys specified storage entities.

func (*Client) Detach

func (c *Client) Detach(storageIds []string) ([]params.ErrorResult, error)

Detach detaches the specified storage entities.

func (*Client) ListFilesystems

func (c *Client) ListFilesystems(machines []string) ([]params.FilesystemDetailsListResult, error)

ListFilesystems lists filesystems for desired machines. If no machines provided, a list of all filesystems is returned.

func (*Client) ListPools

func (c *Client) ListPools(providers, names []string) ([]params.StoragePool, error)

ListPools returns a list of pools that matches given filter. If no filter was provided, a list of all pools is returned.

func (*Client) ListStorageDetails

func (c *Client) ListStorageDetails() ([]params.StorageDetails, error)

ListStorageDetails lists all storage.

func (*Client) ListVolumes

func (c *Client) ListVolumes(machines []string) ([]params.VolumeDetailsListResult, error)

ListVolumes lists volumes for desired machines. If no machines provided, a list of all volumes is returned.

func (*Client) StorageDetails

func (c *Client) StorageDetails(tags []names.StorageTag) ([]params.StorageDetailsResult, error)

StorageDetails retrieves details about desired storage instances.

Jump to

Keyboard shortcuts

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