storage

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	PutSnapshot(id string, typ string, data []byte) error
	PutCache(id string, data []byte) error
	PutBlob(id string, data []byte) error

	GetSnapshots(typ string) ([][]byte, error)
	GetCacheContent(id string) ([]byte, error)
	GetBlobPath(id string) (string, error)

	DeleteSnapshot(id string) error
	HasCache(id string) (bool, error)
	HasBlob(id string) (bool, error)
}

func New

func New(workdir string) (Storage, error)

Jump to

Keyboard shortcuts

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