cached

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongVersion = errors.New("cached is running with a different version of plakar")
)

Functions

func RebuildStateFromStateFile

func RebuildStateFromStateFile(ctx *appcontext.AppContext, stateID objects.MAC, repoID uuid.UUID, storeConfig map[string]string, fireAndForget bool) (int, error)

func RebuildStateFromStore

func RebuildStateFromStore(ctx *appcontext.AppContext, repoID uuid.UUID, storeConfig map[string]string, fireAndForget bool) (int, error)

Types

type Client

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

func (*Client) Close

func (c *Client) Close() error

type FileLock

type FileLock struct {
	Path     string
	Attempts int
	// contains filtered or unexported fields
}

func LockedFile

func LockedFile(path string) (*FileLock, error)

func (*FileLock) Lock

func (lock *FileLock) Lock() error

func (*FileLock) Unlock

func (lock *FileLock) Unlock()

type RequestPkt

type RequestPkt struct {
	Secret      []byte
	RepoID      uuid.UUID
	StoreConfig map[string]string

	// Push the request but don't wait for the actual execution.
	FireAndForget bool

	// If empty do a full rebuild otherwise ingest that file from disk.
	StateID objects.MAC
}

type ResponsePkt

type ResponsePkt struct {
	Err      string
	ExitCode int
}

Jump to

Keyboard shortcuts

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