volumestore

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 9 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`.

func Size added in v0.23.0

func Size(volume *native.Volume) (int64, error)

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, size bool) (*native.Volume, error)
	List(size bool) (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