storage

package
v0.229.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package storage abstracts where lcat writes its artifacts, so the same build runs unchanged against a local directory, cloud object storage (S3/GCS/Azure), or a git working tree. The core depends only on the Sink interface; cloud adapters live in their own packages so their SDKs never reach the core -- this is what keeps lcat cloud-agnostic and its baseline dependency-free.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir string

Dir is a Sink backed by a local directory tree -- the default for the CLI and for a Fargate/container task. Cloud sinks (S3, GCS, git) implement the same interface in their own packages.

func (Dir) Create

func (d Dir) Create(path string) (io.WriteCloser, error)

Create opens path (relative to the directory, slash-separated) for writing, creating parent directories as needed.

type Sink

type Sink interface {
	Create(path string) (io.WriteCloser, error)
}

Sink is a write-only, path-addressed blob store. Paths are relative and use forward slashes; each Sink maps them onto its backend (a directory, a bucket prefix, a git tree).

Directories

Path Synopsis
Package blob defines a read-write, path-addressed object store with conditional writes -- the seam the dynamic tier uses to hold BIBFRAME grains in S3-compatible storage.
Package blob defines a read-write, path-addressed object store with conditional writes -- the seam the dynamic tier uses to hold BIBFRAME grains in S3-compatible storage.
Package vocabsidecar owns the on-disk layout and lifecycle of a vocabulary scheme's sidecar artifacts -- where they live under the authorities tree, the manifest that arms a scheme, and the layout-only operations (remove, orphan sweep) that need no knowledge of how the artifacts are built or read.
Package vocabsidecar owns the on-disk layout and lifecycle of a vocabulary scheme's sidecar artifacts -- where they live under the authorities tree, the manifest that arms a scheme, and the layout-only operations (remove, orphan sweep) that need no knowledge of how the artifacts are built or read.

Jump to

Keyboard shortcuts

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