Documentation ¶
Index ¶
- type MemoryStorage
- func (m MemoryStorage) GenerateHashKey() error
- func (m MemoryStorage) GetHashKey() ([]storage.HashKey, error)
- 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) StoreObject(repo string, object storage.Object, ttl int) 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) GenerateHashKey ¶ added in v0.3.0
func (m MemoryStorage) GenerateHashKey() error
func (MemoryStorage) GetHashKey ¶ added in v0.3.0
func (m MemoryStorage) GetHashKey() ([]storage.HashKey, error)
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) StoreObject ¶ added in v0.3.0
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.