client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVolume

func NewVolume(c *Client, vol *apitypes.Volume, service string) (*types.Volume, error)

NewVolume creates a Polly volume from a libStorage volume

Types

type Client

type Client struct {
	apitypes.Client

	Services       apitypes.ServicesMap
	ServiceDrivers map[string]string
	DriverService  map[string]string
	// contains filtered or unexported fields
}

Client is the polly version of libstorage Client

func NewWithConfig

func NewWithConfig(ctx apitypes.Context, config gofig.Config) (*Client, error)

NewWithConfig creates a new client with specified configuration object

func (*Client) VolumeCreate

func (c *Client) VolumeCreate(serviceName string, request *apitypes.VolumeCreateRequest) (*types.Volume, error)

VolumeCreate creates a Polly Volume

func (*Client) VolumeInspect

func (c *Client) VolumeInspect(serviceName, volumeID string, attachments bool) (*types.Volume, error)

VolumeInspect returns a Polly volume

func (*Client) VolumeRemove

func (c *Client) VolumeRemove(serviceName string, volumeID string) error

VolumeRemove removes a Polly Volume

func (*Client) Volumes

func (c *Client) Volumes() ([]*types.Volume, error)

Volumes returns a list of Polly volumes from libstorage

func (*Client) VolumesByService

func (c *Client) VolumesByService(serviceName string) ([]*types.Volume, error)

VolumesByService returns a list of Polly volumes from libstorage

Jump to

Keyboard shortcuts

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