volumedrivers

package
v0.0.0-...-d304e97 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 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: 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},

		{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 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Package fake provides an in-memory fake driver implementation Copyright 2018 Portworx Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
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