memory

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) GetObject

func (m MemoryStorage) GetObject(repo string, hash plumbing.Hash) (storage.Object, 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 (m MemoryStorage) StoreObject(repo string, object storage.Object, ttl int) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL