Versions in this module Expand all Collapse all v0 v0.2.53 Oct 28, 2026 v0.2.52 Oct 28, 2026 Changes in this version + var ErrAlternates = errors.New("alternates are not supported") + var ErrObjectTooLarge = errors.New("object over the size cap") + var ErrRepoTooLarge = errors.New("repository over its size cap") + var ErrTooManyObjects = errors.New("too many objects in the pack") + type Actor struct + Credential string + Principal string + Source string + Stack string + type ErrRefMoved struct + Current plumbing.Hash + Name plumbing.ReferenceName + func (e *ErrRefMoved) Error() string + type Limits struct + MaxObjectBytes int64 + MaxObjects int + MaxPackBytes int64 + MaxRepoBytes int64 + TextOnly bool + type MemRepos struct + func NewMemRepos(limits Limits) *MemRepos + func (m *MemRepos) Open(_ context.Context, tenant, name string) (Repo, bool, error) + type Meta struct + CreatedBy string + ID string + Name string + PolicyPush string + Principal string + Tenant string + type Ref struct + Hash plumbing.Hash + Name plumbing.ReferenceName + type RefUpdate struct + Name plumbing.ReferenceName + New plumbing.Hash + Old plumbing.Hash + type Repo interface + Head func() plumbing.ReferenceName + Meta func() Meta + Refs func(ctx context.Context) ([]Ref, error) + Stage func() Staging + UpdateRefs func(ctx context.Context, updates []RefUpdate, by Actor) error + type RepoLoader interface + Open func(ctx context.Context, tenant, name string) (repo Repo, found bool, err error) + type Staging interface + Commit func(ctx context.Context, keep []plumbing.Hash) error + Staged func() []plumbing.Hash + func NewStaging(repo Repo, limits Limits) Staging + type StoreRepos struct + func NewStoreRepos(st *gitstore.Store, fcas filecas.Store, limits Limits) *StoreRepos + func (l *StoreRepos) Create(ctx context.Context, row gitstore.Repo) (Repo, bool, error) + func (l *StoreRepos) Limits() Limits + func (l *StoreRepos) Open(ctx context.Context, tenant, name string) (Repo, bool, error) + func (l *StoreRepos) Store() *gitstore.Store