storage_native

package
v0.56.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BoltDBExt = ".s4wave"

Variables

This section is empty.

Functions

func BoltDBPath added in v0.52.0

func BoltDBPath(rootDir, id string) (string, error)

BoltDBPath returns the native bbolt path for a storage volume ID.

func BuildStorage

func BuildStorage(b bus.Bus, rootDir string) []storage.Storage

BuildStorage builds all available storage methods.

func NewBoltDB

func NewBoltDB(verbose bool, rootDir string) storage.Storage

NewBoltDB constructs an BoltDB storage handle.

Types

type BoltDB

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

BoltDB implements the BoltDB database.

func (*BoltDB) AddFactories

func (i *BoltDB) AddFactories(b bus.Bus, sr *static.Resolver)

AddFactories adds the factories to the resolver.

func (*BoltDB) BuildVolumeConfig

func (i *BoltDB) BuildVolumeConfig(id string, baseVolCtrlConf *volume_controller.Config) (config.Config, error)

BuildVolumeConfig creates the volume config for the store ID. Returns nil if the storage cannot produce Volume.

func (*BoltDB) DeleteVolume

func (i *BoltDB) DeleteVolume(id string) error

DeleteVolume removes the BoltDB database file for the given volume ID.

func (*BoltDB) GetStorageInfo

func (i *BoltDB) GetStorageInfo() *storage.StorageInfo

GetStorageInfo returns StorageInfo.

Jump to

Keyboard shortcuts

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