Documentation ¶
Index ¶
- Constants
- Variables
- type FDBStore
- func (s *FDBStore) CheckAndSetReference(r, old *plumbing.Reference) error
- func (s *FDBStore) Config() (*config.Config, error)
- func (s *FDBStore) CountLooseRefs() (int, error)
- func (s *FDBStore) DeleteLooseObject(plumbing.Hash) error
- func (s *FDBStore) DeleteOldObjectPackAndIndex(plumbing.Hash, time.Time) error
- func (s *FDBStore) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error)
- func (s *FDBStore) EncodedObjectSize(h plumbing.Hash) (size int64, err error)
- func (s *FDBStore) HasEncodedObject(h plumbing.Hash) error
- func (s *FDBStore) Index() (*index.Index, error)
- func (s *FDBStore) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error)
- func (s *FDBStore) IterReferences() (storer.ReferenceIter, error)
- func (s *FDBStore) LooseObjectTime(hash plumbing.Hash) (time.Time, error)
- func (s *FDBStore) NewEncodedObject() plumbing.EncodedObject
- func (s *FDBStore) ObjectPacks() ([]plumbing.Hash, error)
- func (s *FDBStore) PackRefs() error
- func (s *FDBStore) Reference(n plumbing.ReferenceName) (*plumbing.Reference, error)
- func (s *FDBStore) Remove() error
- func (s *FDBStore) RemoveReference(n plumbing.ReferenceName) error
- func (s *FDBStore) SetConfig(r *config.Config) error
- func (s *FDBStore) SetEncodedObject(o plumbing.EncodedObject) (plumbing.Hash, error)
- func (s *FDBStore) SetIndex(i *index.Index) error
- func (s *FDBStore) SetReference(r *plumbing.Reference) error
- func (s *FDBStore) SetShallow(hash []plumbing.Hash) error
- func (s *FDBStore) Shallow() ([]plumbing.Hash, error)
- type ObjectHeader
- type SlowRef
Constants ¶
View Source
const ObjectChunkSize = 10000
Variables ¶
View Source
var ErrUnsupportedObjectType = fmt.Errorf("unsupported object type")
Functions ¶
This section is empty.
Types ¶
type FDBStore ¶
type FDBStore struct { memory.ModuleStorage // contains filtered or unexported fields }
func NewStorage ¶
func (*FDBStore) CheckAndSetReference ¶
func (*FDBStore) CountLooseRefs ¶
func (*FDBStore) DeleteOldObjectPackAndIndex ¶
func (*FDBStore) EncodedObject ¶
func (s *FDBStore) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error)
func (*FDBStore) EncodedObjectSize ¶
func (*FDBStore) IterEncodedObjects ¶
func (s *FDBStore) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error)
TODO: optimize, this is functional but slow and wasteful
func (*FDBStore) IterReferences ¶
func (s *FDBStore) IterReferences() (storer.ReferenceIter, error)
func (*FDBStore) LooseObjectTime ¶
func (*FDBStore) NewEncodedObject ¶
func (s *FDBStore) NewEncodedObject() plumbing.EncodedObject
Temporarily uses a plumbing.MemoryObject, but should be replaced with a with a bespoke EncodedObject implementation later.
func (*FDBStore) RemoveReference ¶
func (s *FDBStore) RemoveReference(n plumbing.ReferenceName) error
func (*FDBStore) SetEncodedObject ¶
Store an EncodedObject in the FDBStore returning the Hash of the object and an error if any.
type ObjectHeader ¶
type ObjectHeader struct { Type plumbing.ObjectType Size int64 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.