Documentation
¶
Index ¶
- func NewVolume(c *Client, vol *apitypes.Volume, service string) (*types.Volume, error)
- type Client
- func (c *Client) VolumeCreate(serviceName string, request *apitypes.VolumeCreateRequest) (*types.Volume, error)
- func (c *Client) VolumeInspect(serviceName, volumeID string, attachments bool) (*types.Volume, error)
- func (c *Client) VolumeRemove(serviceName string, volumeID string) error
- func (c *Client) Volumes() ([]*types.Volume, error)
- func (c *Client) VolumesByService(serviceName string) ([]*types.Volume, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
VolumeRemove removes a Polly Volume
Click to show internal directories.
Click to hide internal directories.