volumestore

package
v2.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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

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

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

Types

type VolumeStore

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