Documentation
¶
Index ¶
- type MemoryStorage
- func (m MemoryStorage) GetObject(repo string, hash plumbing.Hash) (storage.Object, error)
- func (m MemoryStorage) ListObjects(repo string) ([]storage.Object, error)
- func (m MemoryStorage) ListReferences(repo string) ([]storage.Reference, error)
- func (m MemoryStorage) StoreObjects(repo string, objects []storage.Object) error
- func (m MemoryStorage) StoreReferences(repo string, references []storage.Reference) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStorage ¶
type MemoryStorage struct {
// contains filtered or unexported fields
}
func NewMemoryStorage ¶
func NewMemoryStorage() *MemoryStorage
func (MemoryStorage) ListObjects ¶
func (m MemoryStorage) ListObjects(repo string) ([]storage.Object, error)
func (MemoryStorage) ListReferences ¶
func (m MemoryStorage) ListReferences(repo string) ([]storage.Reference, error)
func (MemoryStorage) StoreObjects ¶
func (m MemoryStorage) StoreObjects(repo string, objects []storage.Object) error
func (MemoryStorage) StoreReferences ¶
func (m MemoryStorage) StoreReferences(repo string, references []storage.Reference) error
Click to show internal directories.
Click to hide internal directories.