volumedrivers

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

View Source
var (
	// AllDrivers is a slice of all existing known Drivers.
	AllDrivers = []Driver{

		{DriverType: aws.Type, Name: aws.Name},

		{DriverType: btrfs.Type, Name: btrfs.Name},

		{DriverType: buse.Type, Name: buse.Name},

		{DriverType: coprhd.Type, Name: coprhd.Name},

		{DriverType: nfs.Type, Name: nfs.Name},

		{DriverType: pwx.Type, Name: pwx.Name},

		{DriverType: vfs.Type, Name: vfs.Name},
	}
)

Functions

func Add

func Add(name string, init func(map[string]string) (volume.VolumeDriver, error)) error

Add adds a new driver.

func Get

func Get(name string) (volume.VolumeDriver, error)

Get returns a VolumeDriver based on input name.

func Register

func Register(name string, params map[string]string) error

Register registers a new driver.

func Shutdown

func Shutdown() error

Shutdown stops the volume driver registry

Types

type Driver

type Driver struct {
	DriverType api.DriverType
	Name       string
}

Driver is the description of a supported OST driver. New Drivers are added to the drivers array

Directories

Path Synopsis
Package buse uses the Linux NBD layer to emulate a block device in user space
Package buse uses the Linux NBD layer to emulate a block device in user space

Jump to

Keyboard shortcuts

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