sdkexecutor

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller interface {
	Call(context.Context, sdktypes.Value, []sdktypes.Value, map[string]sdktypes.Value) (sdktypes.Value, error)
}

type Executor

type Executor interface {
	ExecutorID() sdktypes.ExecutorID

	Values() map[string]sdktypes.Value

	Caller
}

func NewExecutor

func NewExecutor(caller Caller, xid sdktypes.ExecutorID, vs map[string]sdktypes.Value) Executor

type Executors

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

func (*Executors) AddCaller

func (ms *Executors) AddCaller(xid sdktypes.ExecutorID, c Caller) error

func (*Executors) AddExecutor

func (ms *Executors) AddExecutor(name string, x Executor) error

func (*Executors) AddValues

func (ms *Executors) AddValues(scope string, vs map[string]sdktypes.Value) error

func (*Executors) Call

func (ms *Executors) Call(ctx context.Context, v sdktypes.Value, args []sdktypes.Value, kwargs map[string]sdktypes.Value) (sdktypes.Value, error)

func (*Executors) GetCaller

func (ms *Executors) GetCaller(xid sdktypes.ExecutorID) Caller

func (*Executors) GetValues

func (ms *Executors) GetValues(scope string) map[string]sdktypes.Value

func (*Executors) ValuesForScopePrefix

func (ms *Executors) ValuesForScopePrefix(prefix string) map[string]map[string]sdktypes.Value

type Function

type Function = func(context.Context, []sdktypes.Value, map[string]sdktypes.Value) (sdktypes.Value, error)

Jump to

Keyboard shortcuts

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