Skip to main content

Op Call [object]

An object defining an op call.

Properties

ref

A string referencing a local or remote operation.

Must be one of:

  • a variable-reference [string] evaluating to an op [directory]
  • a relative path referencing an op existing on the same local filesystem.
  • a string in git-repo#{SEMVER_GIT_TAG}/path format referencing a network resolvable op.

Example ref (github.com/opspec-pkgs/golang.build.bin#2.0.0)

ref: 'github.com/opspec-pkgs/golang.build.bin#2.0.0'

pullCreds

A pull-creds [object] defining creds used to pull the op from a private source.

inputs

An object for which each key is an input of the referenced op and the value is one of:

valuemeaning
nullBind input to variable w/ same name (equivalent to $(INPUT_NAME))
variable-reference [string]Bind referenced variable to the named input
initializerEvaluate and bind to the named input

This is equivalent to providing named arguments to a function in modern programming languages.

outputs

An object for which each key is an output of the referenced op and the value is one of:

valuemeaning
nullBind variable to output w/ same name (equivalent to $(OUTPUT_NAME))
variable-reference [string]Bind named output to referenced variable

This is equivalent to consuming named return values from a function in modern programming languages.