Documentation ¶
Index ¶
- Variables
- func Clear(storePath string) error
- func HasTarget(storePath string, checksum string) (bool, error)
- func HasTemplate(storePath string, checksum string) (bool, error)
- func ListExports(storePath string) ([]osutil.Path, error)
- func ListTemplates(storePath string) ([]osutil.Path, error)
- func NewCacheTargetAction(_ *run.Context, root osutil.Path, artifacts []string, checksum string) (action.WithDescription[action.Function], error)
- func NewCacheTemplateAction(_ *run.Context, root osutil.Path, artifacts []string, checksum string) (action.WithDescription[action.Function], error)
- func Path() (string, error)
- func Remove(storePath string, checksum string) error
- func TargetArchive(storePath string, checksum string) (string, error)
- func TemplateArchive(storePath string, checksum string) (string, error)
- func Touch(storePath string) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidInput = errors.New("invalid input") ErrInvalidPath = errors.New("invalid file path") ErrMissingEnvVar = errors.New("missing environment variable") )
var ( ErrMissingInput = errors.New("missing input") ErrMissingStore = errors.New("missing store") )
Functions ¶
func HasTemplate ¶ added in v0.2.1
Return whether the store has the specified version cached.
func ListExports ¶ added in v0.3.9
ListExports lists all exported targets cached in the store.
func ListTemplates ¶ added in v0.3.9
ListTemplates lists all templates cached in the store.
func NewCacheTargetAction ¶ added in v0.3.0
func NewCacheTargetAction( _ *run.Context, root osutil.Path, artifacts []string, checksum string, ) (action.WithDescription[action.Function], error)
NewCacheTargetAction creates an 'action.Action' which caches the generated project artifacts in the 'gdbuild' store.
func NewCacheTemplateAction ¶ added in v0.3.0
func NewCacheTemplateAction( _ *run.Context, root osutil.Path, artifacts []string, checksum string, ) (action.WithDescription[action.Function], error)
NewCacheTemplateAction creates an 'action.Action' which caches the generated export template in the 'gdbuild' store.
func TargetArchive ¶ added in v0.2.1
TargetArchive returns the full path (starting with the store path) to the exported project archive within the store.
NOTE: This does *not* mean the export archive exists.
func TemplateArchive ¶
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.
Types ¶
This section is empty.