Versions in this module Expand all Collapse all v5 v5.4.3 Mar 19, 2022 Changes in this version + type ConfigStorage struct + func NewConfigStorage(s, temporal config.ConfigStorer) *ConfigStorage + func (c *ConfigStorage) Commit() error + func (c *ConfigStorage) Config() (*config.Config, error) + func (c *ConfigStorage) SetConfig(cfg *config.Config) error + type IndexStorage struct + func NewIndexStorage(s, temporal storer.IndexStorer) *IndexStorage + func (s *IndexStorage) Commit() error + func (s *IndexStorage) Index() (*index.Index, error) + func (s *IndexStorage) SetIndex(idx *index.Index) (err error) + type ObjectStorage struct + func NewObjectStorage(base, temporal storer.EncodedObjectStorer) *ObjectStorage + func (o *ObjectStorage) Commit() error + func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) + func (o *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (int64, error) + func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) error + func (o *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error) + func (o *ObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error) + type ReferenceStorage struct + func NewReferenceStorage(base, temporal storer.ReferenceStorer) *ReferenceStorage + func (r *ReferenceStorage) CheckAndSetReference(ref, old *plumbing.Reference) error + func (r *ReferenceStorage) SetReference(ref *plumbing.Reference) error + func (r ReferenceStorage) Commit() 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 + type ShallowStorage struct + func NewShallowStorage(base, temporal storer.ShallowStorer) *ShallowStorage + func (s *ShallowStorage) Commit() error + func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error + func (s *ShallowStorage) Shallow() ([]plumbing.Hash, error) + type Storage interface + Commit func() error + func NewStorage(base, temporal storage.Storer) Storage