store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPath   = errors.New("invalid file path")
	ErrMissingEnvVar = errors.New("missing environment variable")
)
View Source
var (
	ErrMissingInput = errors.New("missing input")
	ErrMissingStore = errors.New("missing store")
)

Functions

func Clear

func Clear(storePath string) error

Removes all cached artifacts in the store.

func Has

func Has(storePath string, t *build.Template) (bool, error)

Return whether the store has the specified version cached.

func Path

func Path() (string, error)

Returns the user-configured path to the 'gdbuild' store.

func Remove

func Remove(storePath string, t *build.Template) error

Removes the specified version from the store.

func TemplateArchive

func TemplateArchive(storePath string, t *build.Template) (string, error)

TemplateArchive returns the full path (starting with the store path) to the export template artifact archive within the store.

NOTE: This does *not* mean the template archive exists.

func Touch

func Touch(storePath string) error

Touch ensures a store is initialized at the specified path; no effect if it exists already.

Types

This section is empty.

Jump to

Keyboard shortcuts

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