driver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

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