glfs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SchemaName blobcache.SchemaName = "glfs"

Variables

This section is empty.

Functions

func Constructor added in v0.0.2

func Constructor(params json.RawMessage, mkSchema schema.Factory) (schema.Schema, error)

func DiffRefs

func DiffRefs(ctx context.Context, src cadata.Getter, left, right glfs.Ref, fn func(left, right *glfs.Ref) error) error

DiffRefs calls fn for ecah ref that is only in the left filsystem or only in the right filesystem. Each call to fn, will only set one of left or right to non-nil.

func Load

func Load(ctx context.Context, txn *bcsdk.Tx) (*glfs.Ref, error)

func MarshalRef

func MarshalRef(ref *glfs.Ref) []byte

func ParseRef

func ParseRef(root []byte) (*glfs.Ref, error)

func SyncTx

func SyncTx(ctx context.Context, srcTx, dstTx *bcsdk.Tx) error

SyncTx efficiently copies all the data from src to dst. SyncTx will call Commit on dstTx with the new root.

func SyncVolume

func SyncVolume(ctx context.Context, svc blobcache.Service, srcVol, dstVol blobcache.Handle) error

Types

type Schema

type Schema struct {
	Mach *glfs.Machine
}

func (*Schema) ValidateChange

func (sch *Schema) ValidateChange(ctx context.Context, change schema.Change) error

type Spec added in v0.0.2

type Spec struct{}

Jump to

Keyboard shortcuts

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