Documentation ¶
Index ¶
- Variables
- func Add(ctx context.Context, storePath string, ...) error
- func Clear(storePath string) error
- func Executable(storePath string, ex executable.Executable) (string, error)
- func Has(storePath string, a artifact.Artifact) (bool, error)
- func Path() (string, error)
- func Remove(storePath string, a artifact.Artifact) error
- func Source(storePath string, src source.Source) (string, error)
- func Touch(storePath string) error
- type LocalEx
- type LocalSrc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPath = errors.New("invalid file path") ErrMissingEnvVar = errors.New("missing environment variable") )
Functions ¶
func Add ¶
func Add(ctx context.Context, storePath string, localArtifacts ...artifact.Local[artifact.Artifact]) error
Add caches the specified locally-available artifacts in the store.
func Executable ¶
func Executable(storePath string, ex executable.Executable) (string, error)
Returns the full path (starting with the store path) to the *executable* file in the store.
NOTE: This does *not* mean the executable exists.
Types ¶
type LocalEx ¶
type LocalEx = artifact.Local[executable.Executable]
Click to show internal directories.
Click to hide internal directories.