Versions in this module Expand all Collapse all v5 v5.4.3 Mar 19, 2022 Changes in this version + func NewPackfileIter(fs billy.Filesystem, f billy.File, idxFile billy.File, t plumbing.ObjectType, ...) (storer.EncodedObjectIter, error) + type ConfigStorage struct + func (c *ConfigStorage) Config() (conf *config.Config, err error) + func (c *ConfigStorage) SetConfig(cfg *config.Config) (err error) + type IndexStorage struct + func (s *IndexStorage) Index() (i *index.Index, err error) + func (s *IndexStorage) SetIndex(idx *index.Index) (err error) + type ModuleStorage struct + func (s *ModuleStorage) Module(name string) (storage.Storer, error) + type ObjectStorage struct + func NewObjectStorage(dir *dotgit.DotGit, objectCache cache.Object) *ObjectStorage + func NewObjectStorageWithOptions(dir *dotgit.DotGit, objectCache cache.Object, ops Options) *ObjectStorage + func (s *ObjectStorage) Close() error + func (s *ObjectStorage) DeleteLooseObject(hash plumbing.Hash) error + func (s *ObjectStorage) DeleteOldObjectPackAndIndex(h plumbing.Hash, t time.Time) error + func (s *ObjectStorage) DeltaObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) + func (s *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) + func (s *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (size int64, err error) + func (s *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error + func (s *ObjectStorage) HasEncodedObject(h plumbing.Hash) (err error) + func (s *ObjectStorage) HashesWithPrefix(prefix []byte) ([]plumbing.Hash, error) + func (s *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error) + func (s *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) + func (s *ObjectStorage) NewEncodedObject() plumbing.EncodedObject + func (s *ObjectStorage) ObjectPacks() ([]plumbing.Hash, error) + func (s *ObjectStorage) PackfileWriter() (io.WriteCloser, error) + func (s *ObjectStorage) Reindex() + func (s *ObjectStorage) SetEncodedObject(o plumbing.EncodedObject) (h plumbing.Hash, err error) + type Options struct + ExclusiveAccess bool + KeepDescriptors bool + LargeObjectThreshold int64 + MaxOpenDescriptors int + type ReferenceStorage struct + func (r *ReferenceStorage) CheckAndSetReference(ref, old *plumbing.Reference) error + func (r *ReferenceStorage) CountLooseRefs() (int, error) + func (r *ReferenceStorage) IterReferences() (storer.ReferenceIter, error) + func (r *ReferenceStorage) PackRefs() error + func (r *ReferenceStorage) Reference(n plumbing.ReferenceName) (*plumbing.Reference, error) + func (r *ReferenceStorage) RemoveReference(n plumbing.ReferenceName) error + func (r *ReferenceStorage) SetReference(ref *plumbing.Reference) error + type ShallowStorage struct + func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error + func (s *ShallowStorage) Shallow() ([]plumbing.Hash, error) + type Storage struct + func NewStorage(fs billy.Filesystem, cache cache.Object) *Storage + func NewStorageWithOptions(fs billy.Filesystem, cache cache.Object, ops Options) *Storage + func (s *Storage) Filesystem() billy.Filesystem + func (s *Storage) Init() error Other modules containing this package github.com/smallcase/go-git