formulaexec

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 29 Imported by: 0

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

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

func GetBinPath() (string, error)

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

type RioOutput

type RioOutput struct {
	Result RioResult `json:"result"`
}

type RioResult

type RioResult struct {
	WareId string `json:"wareID"`
}

Jump to

Keyboard shortcuts

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