Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2026 Changes in this version + const MaxNameLen + var ErrExists = errors.New("a mark already exists by that name") + var ErrNotExist = errors.New("mark does not exist") + func CheckName(name string) error + func CleanupVolume(ctx context.Context, vol Volume, info Info) error + func ForEach(ctx context.Context, s Space, span Span, fn func(string) error) (retErr error) + func IsExists(err error) bool + func IsNotExist(err error) bool + func SortAnnotations(s []Annotation) + func Sync(ctx context.Context, src, dst *Mark, force bool) error + func SyncSpaces(ctx context.Context, task SyncSpacesTask) error + func TestSpace(t *testing.T, newSpace func(t testing.TB) Space) + type Annotation struct + Key string + Value string + func GetAnnotation(as []Annotation, key string) (ret []Annotation) + type ChunkingConfig struct + CD *Chunking_CDConfig + Max *Chunking_Fixed + type Chunking_CDConfig struct + MaxSize int + MeanSize int + type Chunking_Fixed struct + Max uint32 + Min uint32 + type DSConfig struct + GotFS FSConfig + Salt Salt + func DefaultConfig(public bool) DSConfig + func (cfg DSConfig) Hash() [32]byte + func (cfg DSConfig) Marshal(out []byte) []byte + type ErrInvalidName struct + Name string + Reason string + func (e ErrInvalidName) Error() string + type FSConfig struct + Data ChunkingConfig + Metadata Chunking_CDConfig + type FSMach = gotfs.Machine + type Info struct + Annotations []Annotation + Config DSConfig + CreatedAt tai64.TAI64 + func CreateIfNotExists(ctx context.Context, r Space, k string, cfg Metadata) (*Info, error) + func (i Info) AsMetadata() Metadata + func (i Info) Clone() Info + type Mark struct + Info Info + Volume Volume + func (b *Mark) AsMetadata() Metadata + func (b *Mark) GetTarget(ctx context.Context) (*Snap, Tx, error) + func (b *Mark) GotFS() *gotfs.Machine + func (b *Mark) GotVC() *VCMach + func (b *Mark) History(ctx context.Context, fn func(ref gdat.Ref, snap Snap) error) error + func (b *Mark) Modify(ctx context.Context, fn func(mctx ModifyCtx) (*Snap, error)) error + func (b *Mark) SetTarget(ctx context.Context, src stores.Reading, snap Snap) error + func (b *Mark) ViewFS(ctx context.Context, ...) error + func (m *Mark) Config() DSConfig + type MemSpace struct + func (r *MemSpace) Create(ctx context.Context, name string, cfg Metadata) (*Info, error) + func (r *MemSpace) Delete(ctx context.Context, name string) error + func (r *MemSpace) Inspect(ctx context.Context, name string) (*Info, error) + func (r *MemSpace) List(ctx context.Context, span Span, limit int) (ret []string, _ error) + func (r *MemSpace) Open(ctx context.Context, name string) (*Mark, error) + func (r *MemSpace) Set(ctx context.Context, name string, cfg Metadata) error + type Metadata struct + Annotations []Annotation + Config DSConfig + func (c Metadata) AsInfo() Info + func (c Metadata) Clone() Metadata + type ModifyCtx struct + FS *FSMach + Root *Snap + Store stores.RW + VC *VCMach + func (mctx *ModifyCtx) Sync(ctx context.Context, srcs [3]stores.Reading, root Snap) error + type Payload struct + Aux []byte + Root gotfs.Root + func ParsePayload(data []byte) (Payload, error) + func (p *Payload) Unmarshal(data []byte) error + func (p Payload) Marshal(out []byte) []byte + type Salt [32]byte + func (s *Salt) String() string + func (s *Salt) UnmarshalText(data []byte) error + func (s Salt) MarshalText() ([]byte, error) + type Snap = gotvc.Snapshot[Payload] + type SnapInfo struct + AuthoredAt tai64.TAI64 + Authors []inet256.ID + Message string + type Space interface + Create func(ctx context.Context, name string, cfg Metadata) (*Info, error) + Delete func(ctx context.Context, name string) error + Inspect func(ctx context.Context, name string) (*Info, error) + List func(ctx context.Context, span Span, limit int) ([]string, error) + Open func(ctx context.Context, name string) (*Mark, error) + Set func(ctx context.Context, name string, cfg Metadata) error + func NewMem(newVolume func() volumes.Volume) Space + type Span struct + Begin string + End string + func TotalSpan() Span + func (s Span) Contains(x string) bool + type SyncSpacesTask struct + Dst Space + Filter func(string) bool + MapName func(string) string + Src Space + type Tx = volumes.Tx + type TxParams = volumes.TxParams + type VCMach = gotvc.Machine[Payload] + type Volume = volumes.Volume