Documentation ¶
Index ¶
- type Client
- func (c *Client) AddToUnit(storages []params.StorageAddParams) ([]params.ErrorResult, error)
- func (c *Client) CreatePool(pname, provider string, attrs map[string]interface{}) error
- func (c *Client) List() ([]params.StorageInfo, error)
- func (c *Client) ListPools(providers, names []string) ([]params.StoragePool, error)
- func (c *Client) ListVolumes(machines []string) ([]params.VolumeItem, error)
- func (c *Client) Show(tags []names.StorageTag) ([]params.StorageDetails, error)
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) CreatePool ¶
CreatePool creates pool with specified parameters.
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) ListVolumes ¶
func (c *Client) ListVolumes(machines []string) ([]params.VolumeItem, error)
ListVolumes lists volumes for desired machines. If no machines provided, a list of all volumes is returned.
func (*Client) Show ¶
func (c *Client) Show(tags []names.StorageTag) ([]params.StorageDetails, error)
Show retrieves information about desired storage instances.
Click to show internal directories.
Click to hide internal directories.