volume

package
v9.4.22+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 15 Imported by: 61

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthSupportedDriverVersions

func GetAuthSupportedDriverVersions(driverName, host, authstring, accesstoken string, tlsConfig *tls.Config) ([]string, error)

GetAuthSupportedDriverVersions returns a list of supported versions for the provided driver. It uses the given security params and server endpoint or the standard unix domain socket authstring can be set to the JWT Token and accesstoken set to an empty string.

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 authstring can be set to the JWT Token and accesstoken set to an empty string.

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 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.

Jump to

Keyboard shortcuts

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