storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 8 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builtin

type Builtin struct {
	// contains filtered or unexported fields
}

func NewBuiltin

func NewBuiltin(logger *log.Logger, rootPath string) *Builtin

New creates a new instance of the Storage struct with the provided logger and path.

func (*Builtin) Close

func (s *Builtin) Close() error

Close releases any resources held by the DB instance, such as the file lock. It should be called when the DB instance is no longer needed to ensure proper cleanup.

func (*Builtin) CreateVolume

func (s *Builtin) CreateVolume(name string, spec *apis.VolumeSpec) error

CreateVolume creates a volume entry

func (*Builtin) DeleteVolume

func (s *Builtin) DeleteVolume(name string) error

DeleteVolume deletes the volume and its metadata for the specified volume name

func (*Builtin) DeleteVolumeMetadata

func (s *Builtin) DeleteVolumeMetadata(name string) error

DeleteVolumeMetadata deletes the volume metadata for the specified volume name

func (*Builtin) FetchVolumeMetadata

func (s *Builtin) FetchVolumeMetadata(name string) (*apis.VolumeMetadata, error)

FetchVolumeMetadata retrieves the volume metadata for the specified volume name

func (*Builtin) ListVolumeMetadata

func (s *Builtin) ListVolumeMetadata() (map[string]*apis.VolumeMetadata, error)

ListVolumeMetadataMap retrieves a map of all volume metadata entries, where the keys are the volume names and the values are the corresponding volume metadata.

Jump to

Keyboard shortcuts

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