Versions in this module Expand all Collapse all v6 v6.1.0 Apr 24, 2021 Changes in this version + var ErrUnsupportedObjectType = fmt.Errorf("unsupported object type") + type ConfigStorage struct + func (c *ConfigStorage) Config() (*config.Config, error) + func (c *ConfigStorage) SetConfig(cfg *config.Config) error + type IndexStorage struct + func (c *IndexStorage) Index() (*index.Index, error) + func (c *IndexStorage) SetIndex(idx *index.Index) error + type ModuleStorage map[string]*Storage + func (s ModuleStorage) Module(name string) (storage.Storer, error) + type ObjectStorage struct + Blobs map[plumbing.Hash]plumbing.EncodedObject + Commits map[plumbing.Hash]plumbing.EncodedObject + Objects map[plumbing.Hash]plumbing.EncodedObject + Tags map[plumbing.Hash]plumbing.EncodedObject + Trees map[plumbing.Hash]plumbing.EncodedObject + func (o *ObjectStorage) Begin() storer.Transaction + func (o *ObjectStorage) DeleteLooseObject(plumbing.Hash) error + func (o *ObjectStorage) DeleteOldObjectPackAndIndex(plumbing.Hash, time.Time) error + func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) + func (o *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (size int64, err error) + func (o *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error + func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) (err error) + func (o *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error) + func (o *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) + func (o *ObjectStorage) NewEncodedObject() plumbing.EncodedObject + func (o *ObjectStorage) ObjectPacks() ([]plumbing.Hash, error) + func (o *ObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error) + type ReferenceStorage map[plumbing.ReferenceName]*plumbing.Reference + 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 []plumbing.Hash + func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error + func (s ShallowStorage) Shallow() ([]plumbing.Hash, error) + type Storage struct + func NewStorage() *Storage + type TxObjectStorage struct + Objects map[plumbing.Hash]plumbing.EncodedObject + Storage *ObjectStorage + func (tx *TxObjectStorage) Commit() error + func (tx *TxObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) + func (tx *TxObjectStorage) Rollback() error + func (tx *TxObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error) Other modules containing this package github.com/egibert/go-git github.com/egibert/go-git/v5 github.com/egibert/go-git/v8