context

package
v0.0.0-...-a5ce0cf Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	Value           *structpb.Value
	Sensitive       bool
	SensitiveReason string
}

Value represents a result of an expression. e.g. the result of 'Hello, ${{ env.USERNAME }' when all values have been interpolated.

func NewNonSensitiveValue

func NewNonSensitiveValue(value *structpb.Value) *Value

func NewStringValue

func NewStringValue(value string, sensitive bool, sensitiveReasons ...string) *Value

func NewValue

func NewValue(value *structpb.Value, sensitive bool, sensitiveReasons ...string) *Value

type Variable

type Variable struct {
	Value     *structpb.Value // Value is initially an expression, and can be updated to be the result of the expression.
	Sensitive bool            // Whether the variable can hold sensitive data
}

Variable represents an expression that is dynamically evaluated. Variables are mutable. e.g. 'greeting' in the following is a Variable:

  • step: ./say-hello inputs: greeting: Hello, ${{ env.USERNAME }}

func NewVariable

func NewVariable(value *structpb.Value, sensitive bool) *Variable

func (*Variable) Assign

func (v *Variable) Assign(value *Value) error

Jump to

Keyboard shortcuts

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