cache

package
v0.4.16-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(localdir string) error

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(cacheDir string) *Cache

func (*Cache) Commit

func (cache *Cache) Commit() error

func (*Cache) GetBlob

func (cache *Cache) GetBlob(RepositoryUuid string, checksum [32]byte) ([]byte, error)

func (*Cache) GetIndex

func (cache *Cache) GetIndex(RepositoryUuid string, checksum [32]byte) ([]byte, error)

func (*Cache) GetPath

func (cache *Cache) GetPath(RepositoryUuid string, checksum string) ([]byte, error)

func (*Cache) GetSnapshot

func (cache *Cache) GetSnapshot(RepositoryUuid string, Uuid string) ([]byte, error)

func (*Cache) PutBlob

func (cache *Cache) PutBlob(RepositoryUuid string, checksum [32]byte, data []byte) error

func (*Cache) PutIndex

func (cache *Cache) PutIndex(RepositoryUuid string, checksum [32]byte, data []byte) error

func (*Cache) PutPath

func (cache *Cache) PutPath(RepositoryUuid string, checksum string, data []byte) error

func (*Cache) PutSnapshot

func (cache *Cache) PutSnapshot(RepositoryUuid string, Uuid string, data []byte) error

Jump to

Keyboard shortcuts

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