Help us shape the future of Go! Take the 2026 Go Developer Survey

storage_node

package
v0.57.28 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package storage_node binds Node SQLite connections to the existing volume factory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage uses the instance's SQLite bridge under an exclusively owned directory. The Node Worker acquires and retains directory ownership before constructing it.

func NewStorage

func NewStorage(client sqlite_bridge.SRPCSqliteBridgeClient, directory string) *Storage

NewStorage binds a bridge to a directory whose writer lock is already held.

func (*Storage) AddFactories

func (s *Storage) AddFactories(b bus.Bus, resolver *static.Resolver)

AddFactories binds SQLite volume creation to this instance's bridge.

func (*Storage) BuildVolumeConfig

func (s *Storage) BuildVolumeConfig(id string, base *volume_controller.Config) (config.Config, error)

BuildVolumeConfig names an existing SQLite volume within the owned directory.

func (*Storage) DeleteVolume

func (s *Storage) DeleteVolume(id string) error

DeleteVolume deletes an already-closed volume through its owning bridge.

func (*Storage) GetStorageInfo

func (s *Storage) GetStorageInfo() *storage.StorageInfo

GetStorageInfo returns the persistent storage capability.

Jump to

Keyboard shortcuts

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