Documentation
¶
Index ¶
- func NewObjectStorage(config *storage.Config) storer.EncodedObjectStorer
- type ObjectStorage
- 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) HasEncodedObject(h plumbing.Hash) (err error)
- func (s *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error)
- func (s *ObjectStorage) SetEncodedObject(o plumbing.EncodedObject) (plumbing.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectStorage ¶
func NewObjectStorage(config *storage.Config) storer.EncodedObjectStorer
Types ¶
type ObjectStorage ¶
type ObjectStorage struct {
*storage.ChaintreeObjectStorage
// contains filtered or unexported fields
}
func (*ObjectStorage) EncodedObject ¶
func (s *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error)
func (*ObjectStorage) EncodedObjectSize ¶
func (s *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (size int64, err error)
func (*ObjectStorage) HasEncodedObject ¶
func (s *ObjectStorage) HasEncodedObject(h plumbing.Hash) (err error)
func (*ObjectStorage) IterEncodedObjects ¶
func (s *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error)
func (*ObjectStorage) SetEncodedObject ¶
func (s *ObjectStorage) SetEncodedObject(o plumbing.EncodedObject) (plumbing.Hash, error)
Click to show internal directories.
Click to hide internal directories.