Documentation ¶
Index ¶
- Constants
- type EncodedObjectIter
- type GnfdStorage
- func (s *GnfdStorage) AddAlternate(remote string) error
- func (s *GnfdStorage) CheckAndSetReference(new, old *plumbing.Reference) error
- func (s *GnfdStorage) Config() (*config.Config, error)
- func (s *GnfdStorage) CountLooseRefs() (int, error)
- func (s *GnfdStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error)
- func (s *GnfdStorage) EncodedObjectSize(hash plumbing.Hash) (int64, error)
- func (s *GnfdStorage) GetBucketName() string
- func (s *GnfdStorage) HasEncodedObject(hash plumbing.Hash) error
- func (s *GnfdStorage) Index() (*index.Index, error)
- func (s *GnfdStorage) IterEncodedObjects(objectType plumbing.ObjectType) (storer.EncodedObjectIter, error)
- func (s *GnfdStorage) IterReferences() (storer.ReferenceIter, error)
- func (s *GnfdStorage) Module(name string) (storage.Storer, error)
- func (s *GnfdStorage) NewEncodedObject() plumbing.EncodedObject
- func (s *GnfdStorage) PackRefs() error
- func (s *GnfdStorage) Reference(name plumbing.ReferenceName) (*plumbing.Reference, error)
- func (s *GnfdStorage) RemoveReference(name plumbing.ReferenceName) error
- func (s *GnfdStorage) SetConfig(c *config.Config) error
- func (s *GnfdStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error)
- func (s *GnfdStorage) SetIndex(index *index.Index) error
- func (s *GnfdStorage) SetReference(reference *plumbing.Reference) error
- func (s *GnfdStorage) SetShallow(hashes []plumbing.Hash) error
- func (s *GnfdStorage) Shallow() ([]plumbing.Hash, error)
Constants ¶
View Source
const ( ReferenceKey = "refs/" ConfigKey = "config/" ObjectKey = "objects/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodedObjectIter ¶
type EncodedObjectIter struct {
// contains filtered or unexported fields
}
func NewEncodeObjectIter ¶
func NewEncodeObjectIter(t plumbing.ObjectType, s *GnfdStorage) *EncodedObjectIter
func (*EncodedObjectIter) Close ¶
func (i *EncodedObjectIter) Close()
func (*EncodedObjectIter) ForEach ¶
func (i *EncodedObjectIter) ForEach(cb func(obj plumbing.EncodedObject) error) error
func (*EncodedObjectIter) Next ¶
func (i *EncodedObjectIter) Next() (plumbing.EncodedObject, error)
type GnfdStorage ¶
func NewStorage ¶
func NewStorage(chainID, rpcAddress, privateKey, bucketName string) (*GnfdStorage, error)
func (*GnfdStorage) AddAlternate ¶
func (s *GnfdStorage) AddAlternate(remote string) error
func (*GnfdStorage) CheckAndSetReference ¶
func (s *GnfdStorage) CheckAndSetReference(new, old *plumbing.Reference) error
func (*GnfdStorage) CountLooseRefs ¶
func (s *GnfdStorage) CountLooseRefs() (int, error)
func (*GnfdStorage) EncodedObject ¶
func (s *GnfdStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error)
func (*GnfdStorage) EncodedObjectSize ¶
func (s *GnfdStorage) EncodedObjectSize(hash plumbing.Hash) (int64, error)
func (*GnfdStorage) GetBucketName ¶
func (s *GnfdStorage) GetBucketName() string
func (*GnfdStorage) HasEncodedObject ¶
func (s *GnfdStorage) HasEncodedObject(hash plumbing.Hash) error
func (*GnfdStorage) IterEncodedObjects ¶
func (s *GnfdStorage) IterEncodedObjects(objectType plumbing.ObjectType) (storer.EncodedObjectIter, error)
func (*GnfdStorage) IterReferences ¶
func (s *GnfdStorage) IterReferences() (storer.ReferenceIter, error)
func (*GnfdStorage) NewEncodedObject ¶
func (s *GnfdStorage) NewEncodedObject() plumbing.EncodedObject
func (*GnfdStorage) PackRefs ¶
func (s *GnfdStorage) PackRefs() error
func (*GnfdStorage) Reference ¶
func (s *GnfdStorage) Reference(name plumbing.ReferenceName) (*plumbing.Reference, error)
func (*GnfdStorage) RemoveReference ¶
func (s *GnfdStorage) RemoveReference(name plumbing.ReferenceName) error
func (*GnfdStorage) SetEncodedObject ¶
func (s *GnfdStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error)
func (*GnfdStorage) SetReference ¶
func (s *GnfdStorage) SetReference(reference *plumbing.Reference) error
func (*GnfdStorage) SetShallow ¶
func (s *GnfdStorage) SetShallow(hashes []plumbing.Hash) error
Click to show internal directories.
Click to hide internal directories.