volumedrivers

package
v9.4.47+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

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

		{DriverType: fake.Type, Name: fake.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 Remove

func Remove(name string)

Remove removes driver from registry. Does nothing if driver does not exist

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
Package fake provides an in-memory fake driver implementation Copyright 2018 Portworx
Package fake provides an in-memory fake driver implementation Copyright 2018 Portworx
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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