taskcontext

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(conn grpc.ClientConnInterface) *Service

func (*Service) Evaluate

func (c *Service) Evaluate(ctx context.Context, expr string, out value.ValueOut) error

EvaluateParams evaluates the given expression, and returns the result into the output value

func (*Service) EvaluateParams

func (c *Service) EvaluateParams(ctx context.Context, expr string, out value.ValueOut, params map[string]value.Value) error

EvaluateParams evaluates the given expression, and returns the result into the output value. The given map of parameters are set as variables before the expression is evaluated, which approximates a parameterized query; allowing a safer expression evaluation compared to string concatenation.

func (*Service) GetVariable

func (c *Service) GetVariable(ctx context.Context, name string, out value.ValueOut) error

GetVariable gets the tasks variable to the given value

func (*Service) GetVariableNames

func (c *Service) GetVariableNames(ctx context.Context) ([]string, error)

GetVariableNames gets the list of variable names currently set in the task

func (*Service) GetVariables

func (c *Service) GetVariables(ctx context.Context) (map[string]interface{}, error)

GetVariables gets all variable currently set in the task

func (*Service) SetVariable

func (c *Service) SetVariable(ctx context.Context, name string, value value.Value) error

SetVariable sets the tasks variable to the given value

func (*Service) SetVariables added in v0.4.0

func (c *Service) SetVariables(ctx context.Context, vars map[string]value.Value) error

Jump to

Keyboard shortcuts

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