volumestore

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DataDirName = "_data"

DataDirName is "_data"

Variables

This section is empty.

Functions

func Labels added in v0.11.0

func Labels(b []byte) *map[string]string

func Path

func Path(dataStore, ns string) (string, error)

Path returns a string like `/var/lib/nerdctl/1935db59/volumes/default`.

Types

type VolumeStore added in v0.7.3

type VolumeStore interface {
	Dir() string
	Create(name string, labels []string) (*native.Volume, error)
	// Get may return ErrNotFound
	Get(name string) (*native.Volume, error)
	List() (map[string]native.Volume, error)
	Remove(names []string) (removedNames []string, err error)
}

func New

func New(dataStore, ns string) (VolumeStore, error)

New returns a VolumeStore

Jump to

Keyboard shortcuts

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