Versions in this module Expand all Collapse all v0 v0.8.0 May 28, 2026 v0.7.0 May 23, 2026 v0.6.0 May 23, 2026 v0.5.0 May 23, 2026 v0.4.0 May 23, 2026 v0.3.0 May 23, 2026 v0.2.0 Apr 27, 2026 v0.1.0 Apr 26, 2026 Changes in this version + const HashSize + var ErrConflict = errors.New("ref cas conflict") + var ErrCorrupt = errors.New("corrupt object") + var ErrInvalidObject = errors.New("invalid object") + var ErrNotFound = errors.New("not found") + type Hash [HashSize]byte + var ZeroHash Hash + func ParseHash(s string) (Hash, error) + func (h Hash) IsZero() bool + func (h Hash) Short() string + func (h Hash) String() string + type Object struct + Kind string + Payload []byte + type RefEntry struct + Hash Hash + Name string + type ReflogEntry struct + Author string + Message string + New Hash + Old Hash + Op string + TZOffset int + UnixTime int64 + type Storage interface + AppendReflog func(ctx context.Context, name string, e ReflogEntry) error + CASRef func(ctx context.Context, name string, expected, next Hash) error + Close func() error + DeleteRef func(ctx context.Context, name string, expected Hash) error + GetObject func(ctx context.Context, h Hash) (Object, error) + GetRef func(ctx context.Context, name string) (h Hash, ok bool, err error) + HasObject func(ctx context.Context, h Hash) (bool, error) + IterObjects func(ctx context.Context, fn func(Hash, Object) error) error + ListRefs func(ctx context.Context, prefix string) ([]RefEntry, error) + PutObject func(ctx context.Context, h Hash, o Object) error + ReadReflog func(ctx context.Context, name string) ([]ReflogEntry, error)