Documentation ¶
Index ¶
Constants ¶
View Source
const CONTAINER_BASE_PATH string = "/.warpforge.container"
base directory for warpforge related files within the container
View Source
const LOG_TAG = "│ │ formula"
View Source
const LOG_TAG_END = "│ └─ formula"
View Source
const LOG_TAG_OUTPUT = "│ │ │ output "
View Source
const LOG_TAG_OUTPUT_END = "│ │ └─ output "
View Source
const LOG_TAG_OUTPUT_START = "│ │ ┌─ output "
View Source
const LOG_TAG_START = "│ ┌─ formula"
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(ctx context.Context, ws *workspace.Workspace, fc wfapi.FormulaAndContext, formulaConfig wfapi.FormulaExecConfig) (wfapi.RunRecord, error)
Execute a Formula using the provided root Workspace
Errors:
- warpforge-error-formula-execution-failed -- when an error occurs during formula execution
- warpforge-error-executor-failed -- when the execution step of the formula fails
- warpforge-error-ware-unpack -- when a ware unpack operation fails for a formula input
- warpforge-error-ware-pack -- when a ware pack operation fails for a formula output
- warpforge-error-workspace -- when an invalid workspace is provided
- warpforge-error-formula-invalid -- when an invalid formula is provided
- warpforge-error-serialization -- when serialization or deserialization of a memo fails
func GetBinPath ¶
Get the binary path of warpforge. This path is also used for plugins (rio, runc).
Errors:
- warpforge-error-io -- when locating path of this executable fails
Types ¶
Click to show internal directories.
Click to hide internal directories.