Documentation ¶
Index ¶
- func GetAuthSupportedDriverVersions(driverName, host, authstring, accesstoken string, tlsConfig *tls.Config) ([]string, error)
- 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 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 ¶
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 ¶
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.