Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cue ¶
type Cue struct { fnv1beta1.UnimplementedFunctionRunnerServiceServer // contains filtered or unexported fields }
Cue runs cue scripts that adhere to a specific interface.
func (*Cue) Eval ¶
func (f *Cue) Eval(in *fnv1beta1.RunFunctionRequest, script string, opts EvalOptions) (*fnv1beta1.RunFunctionResponse, error)
Eval evaluates the supplied script with an additional script that includes the supplied request and returns the response.
func (*Cue) RunFunction ¶
func (f *Cue) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequest) (outRes *fnv1beta1.RunFunctionResponse, finalErr error)
RunFunction runs the function. It expects a single script that is complete, except for a request variable that the function runner supplies.
type DebugOptions ¶
type DebugOptions struct { Enabled bool // enable input/ output debugging Raw bool // do not remove any "noise" attributes in the input object Script bool // render the final script as a debug output }
DebugOptions are per-eval debug options.
type EvalOptions ¶
type EvalOptions struct { RequestVar string ResponseVar string DesiredOnlyResponse bool Debug DebugOptions }
Click to show internal directories.
Click to hide internal directories.