Versions in this module Expand all Collapse all v5 v5.2.1 Nov 7, 2020 Changes in this version + const MaxResolveRecursion + var ErrMaxResolveRecursion = errors.New("max. recursion level reached") + var ErrStop = errors.New("stop iter") + func ForEachIterator(iter bareIterator, cb func(plumbing.EncodedObject) error) error + func ResolveReference(s ReferenceStorer, n plumbing.ReferenceName) (*plumbing.Reference, error) + type DeltaObjectStorer interface + DeltaObject func(plumbing.ObjectType, plumbing.Hash) (plumbing.EncodedObject, error) + type EncodedObjectIter interface + Close func() + ForEach func(func(plumbing.EncodedObject) error) error + Next func() (plumbing.EncodedObject, error) + func NewMultiEncodedObjectIter(iters []EncodedObjectIter) EncodedObjectIter + type EncodedObjectLookupIter struct + func NewEncodedObjectLookupIter(storage EncodedObjectStorer, t plumbing.ObjectType, series []plumbing.Hash) *EncodedObjectLookupIter + func (iter *EncodedObjectLookupIter) Close() + func (iter *EncodedObjectLookupIter) ForEach(cb func(plumbing.EncodedObject) error) error + func (iter *EncodedObjectLookupIter) Next() (plumbing.EncodedObject, error) + type EncodedObjectSliceIter struct + func NewEncodedObjectSliceIter(series []plumbing.EncodedObject) *EncodedObjectSliceIter + func (iter *EncodedObjectSliceIter) Close() + func (iter *EncodedObjectSliceIter) ForEach(cb func(plumbing.EncodedObject) error) error + func (iter *EncodedObjectSliceIter) Next() (plumbing.EncodedObject, error) + type EncodedObjectStorer interface + EncodedObject func(plumbing.ObjectType, plumbing.Hash) (plumbing.EncodedObject, error) + EncodedObjectSize func(plumbing.Hash) (int64, error) + HasEncodedObject func(plumbing.Hash) error + IterEncodedObjects func(plumbing.ObjectType) (EncodedObjectIter, error) + NewEncodedObject func() plumbing.EncodedObject + SetEncodedObject func(plumbing.EncodedObject) (plumbing.Hash, error) + type IndexStorer interface + Index func() (*index.Index, error) + SetIndex func(*index.Index) error + type Initializer interface + Init func() error + type LooseObjectStorer interface + DeleteLooseObject func(plumbing.Hash) error + ForEachObjectHash func(func(plumbing.Hash) error) error + LooseObjectTime func(plumbing.Hash) (time.Time, error) + type MultiEncodedObjectIter struct + func (iter *MultiEncodedObjectIter) Close() + func (iter *MultiEncodedObjectIter) ForEach(cb func(plumbing.EncodedObject) error) error + func (iter *MultiEncodedObjectIter) Next() (plumbing.EncodedObject, error) + type MultiReferenceIter struct + func (iter *MultiReferenceIter) Close() + func (iter *MultiReferenceIter) ForEach(cb func(*plumbing.Reference) error) error + func (iter *MultiReferenceIter) Next() (*plumbing.Reference, error) + type PackedObjectStorer interface + DeleteOldObjectPackAndIndex func(plumbing.Hash, time.Time) error + ObjectPacks func() ([]plumbing.Hash, error) + type PackfileWriter interface + PackfileWriter func() (io.WriteCloser, error) + type ReferenceIter interface + Close func() + ForEach func(func(*plumbing.Reference) error) error + Next func() (*plumbing.Reference, error) + func NewMultiReferenceIter(iters []ReferenceIter) ReferenceIter + func NewReferenceFilteredIter(ff func(r *plumbing.Reference) bool, iter ReferenceIter) ReferenceIter + func NewReferenceSliceIter(series []*plumbing.Reference) ReferenceIter + type ReferenceSliceIter struct + func (iter *ReferenceSliceIter) Close() + func (iter *ReferenceSliceIter) ForEach(cb func(*plumbing.Reference) error) error + func (iter *ReferenceSliceIter) Next() (*plumbing.Reference, error) + type ReferenceStorer interface + CheckAndSetReference func(new, old *plumbing.Reference) error + CountLooseRefs func() (int, error) + IterReferences func() (ReferenceIter, error) + PackRefs func() error + Reference func(plumbing.ReferenceName) (*plumbing.Reference, error) + RemoveReference func(plumbing.ReferenceName) error + SetReference func(*plumbing.Reference) error + type ShallowStorer interface + SetShallow func([]plumbing.Hash) error + Shallow func() ([]plumbing.Hash, error) + type Storer interface + type Transaction interface + Commit func() error + EncodedObject func(plumbing.ObjectType, plumbing.Hash) (plumbing.EncodedObject, error) + Rollback func() error + SetEncodedObject func(plumbing.EncodedObject) (plumbing.Hash, error) + type Transactioner interface + Begin func() Transaction