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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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