volume

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupportedDriverVersions

func GetSupportedDriverVersions(driverName, host string) ([]string, error)

GetSupportedDriverVersions returns a list of supported versions for the provided driver. It uses the given server endpoint or the standard unix domain socket

func NewAuthDriverClient

func NewAuthDriverClient(host, driverName, version, authstring, accesstoken, userAgent string) (*client.Client, error)

NewAuthDriverClient returns a new REST client of the supplied version for specified driver. host: REST endpoint [http://<ip>:<port> OR unix://<path-to-unix-socket>]. default: [unix:///var/lib/osd/<driverName>.sock] version: Volume API version

func NewDriverClient

func NewDriverClient(host, driverName, version, userAgent string) (*client.Client, error)

NewDriverClient returns a new REST client of the supplied version for specified driver. host: REST endpoint [http://<ip>:<port> OR unix://<path-to-unix-socket>]. default: [unix:///var/lib/osd/<driverName>.sock] version: Volume API version

func VolumeDriver

func VolumeDriver(c *client.Client) volume.VolumeDriver

VolumeDriver returns a REST wrapper for the VolumeDriver interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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