Documentation ¶
Index ¶
- func GetSupportedDriverVersions(driverName, host string) ([]string, error)
- func NewAuthDriverClient(host, driverName, version, authstring, accesstoken, userAgent string) (*client.Client, error)
- func NewDriverClient(host, driverName, version, userAgent string) (*client.Client, error)
- func VolumeDriver(c *client.Client) volume.VolumeDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedDriverVersions ¶
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 ¶
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 userAgent: Drivername for http connections
func VolumeDriver ¶
func VolumeDriver(c *client.Client) volume.VolumeDriver
VolumeDriver returns a REST wrapper for the VolumeDriver interface.
Types ¶
This section is empty.