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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.