driver

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	LocalVolumeHostPathPrefix = "/data/volumes"
)
View Source
const (
	NasVolumeHostPathPrefix = "/netdata/volumes"
)

Variables

View Source
var (
	ExistedVolumeID          = errors.New("Existed Volume ID")
	NotFoundVolume           = errors.New("Not found volume")
	VolumeNameReferNilVolume = errors.New("volume name refer to nil volume")
)
View Source
var (
	BadVolumeTypeNotLocalVolume = errors.New("Bad VolumeType, not localvolume")
	BadAttachDest               = errors.New("Bad Attach dest")
	MultiAttachWithLocalVolume  = errors.New("multiple attach localvolume")
)
View Source
var (
	BadVolumeTypeNotNasVolume = errors.New("Bad VolumeType, not nasvolume")
)

Functions

func NewLocalVolumeDriver

func NewLocalVolumeDriver(js jsonstore.JsonStore) volume.Volume

func NewNasVolumeDriver

func NewNasVolumeDriver(js jsonstore.JsonStore) volume.Volume

Types

type LocalVolumeDriver

type LocalVolumeDriver struct {
	// contains filtered or unexported fields
}

func (LocalVolumeDriver) Attach

func (LocalVolumeDriver) Create

func (LocalVolumeDriver) Delete

func (d LocalVolumeDriver) Delete(ID volume.VolumeIdentity, force bool) error

For localvolume, Delete does nothing, only clears the metadata. The specific cleanup work is implemented by the localvolume provided by the plugin. For example, for marathon, localpv is cleaned up by it

func (LocalVolumeDriver) Info

func (LocalVolumeDriver) Type

func (LocalVolumeDriver) UnAttach

type NasVolumeDriver

type NasVolumeDriver struct {
	// contains filtered or unexported fields
}

func (NasVolumeDriver) Attach

func (NasVolumeDriver) Create

func (NasVolumeDriver) Delete

func (d NasVolumeDriver) Delete(ID volume.VolumeIdentity, force bool) error

func (NasVolumeDriver) Info

func (NasVolumeDriver) Type

func (NasVolumeDriver) UnAttach

Jump to

Keyboard shortcuts

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