volumestore

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 1 module, 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 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