memory

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: AGPL-3.0 Imports: 3 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) 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) 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