volumedrivers

package
v17.12.0-ce+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDriver added in v1.13.0

func CreateDriver(name string) (volume.Driver, error)

CreateDriver returns a volume driver by its name and increments RefCount. If the driver is empty, it looks for the local driver.

func GetAllDrivers added in v1.10.0

func GetAllDrivers() ([]volume.Driver, error)

GetAllDrivers lists all the registered drivers

func GetDriver added in v1.9.0

func GetDriver(name string) (volume.Driver, error)

GetDriver returns a volume driver by its name. If the driver is empty, it looks for the local driver.

func GetDriverList added in v1.10.0

func GetDriverList() []string

GetDriverList returns list of volume drivers registered. If no driver is registered, empty string list will be returned.

func NewVolumeDriver

func NewVolumeDriver(name string, baseHostPath string, c client) volume.Driver

NewVolumeDriver returns a driver has the given name mapped on the given client.

func Register

func Register(extension volume.Driver, name string) bool

Register associates the given driver to the given name, checking if the name is already associated

func RegisterPluginGetter added in v1.13.0

func RegisterPluginGetter(plugingetter getter.PluginGetter)

RegisterPluginGetter sets the plugingetter

func ReleaseDriver

func ReleaseDriver(name string) (volume.Driver, error)

ReleaseDriver returns a volume driver by its name and decrements RefCount.. If the driver is empty, it looks for the local driver.

func Unregister

func Unregister(name string) bool

Unregister dissociates the name from its driver, if the association exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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