fstore

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FStore

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

FStore - function store - deals with all of the function-related actions - saving/reading them from backing storage, downloading them, unpacking them etc.

func New

func New(log zerolog.Logger, store blockless.FunctionStore, workdir string) *FStore

New creates a new function store.

func (*FStore) Get

func (h *FStore) Get(cid string) (blockless.FunctionRecord, error)

Get retrieves a function manifest for the given function from storage.

func (*FStore) Install

func (h *FStore) Install(address string, cid string) error

Install will download and install function identified by the manifest/CID.

func (*FStore) Installed

func (h *FStore) Installed(cid string) (bool, error)

Installed checks if the function with the given CID is installed.

func (*FStore) Sync

func (h *FStore) Sync(haltOnError bool) error

Jump to

Keyboard shortcuts

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