storage

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

package: storage / composition type: factory job: build one ranke.Universe from a storage section — a leaf, or a composite limits: wiring only; the persistence logic is ranke-go's adapters (-> github.com/flocko-motion/ranke-go)

A composed stack or partition is itself a Universe, so the whole store is one recursive descriptor: a "type" selects a leaf or a composite, and composites recurse.

A layer's write role and content cap are the backend's, reported as ranke.Capabilities, so this package only fails a declaration that disagrees.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer struct {
	Name string
	Type string
}

Layer is what introspection may report of a configured layer: a name and a type.

func Describe

func Describe(ctx context.Context, sec scope.Section) ([]Layer, error)

Describe reports the configured layers top to bottom, touching no backend. A layer takes its optional "name" key, else its type.

type Storage

type Storage = ranke.Universe

Storage is the storage port's product: a ranke.Universe. A composed stack or partition implements Universe too, so the whole store presents as this one type.

func New

func New(ctx context.Context, sec scope.Section) (Storage, error)

New builds the storage universe described by sec (see the package doc for the descriptor shape).

Jump to

Keyboard shortcuts

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