Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncMap ¶
type FuncMap interface { Register(fnType ctrlcfgv1.FunctionType, initFn Initializer) Run(ctx context.Context, vertexContext *rtdag.VertexContext, i input.Input) (output.Output, error) }
type Function ¶
type Function interface { // Init initializes the device Init(...FunctionOption) WithOutput(output output.Output) WithResult(result result.Result) WithNameAndNamespace(name, namespace string) WithClient(client client.Client) WithFnMap(fnMap FuncMap) Run(ctx context.Context, vertexContext *rtdag.VertexContext, i input.Input) (output.Output, error) }
type FunctionOption ¶
type FunctionOption func(Function)
func WithClient ¶
func WithClient(client client.Client) FunctionOption
func WithFnMap ¶
func WithFnMap(fnMap FuncMap) FunctionOption
func WithNameAndNamespace ¶
func WithNameAndNamespace(name, namespace string) FunctionOption
func WithOutput ¶
func WithOutput(output output.Output) FunctionOption
func WithResult ¶
func WithResult(result result.Result) FunctionOption
type Initializer ¶
type Initializer func() Function
Click to show internal directories.
Click to hide internal directories.