Documentation ¶
Index ¶
- type Config
- type FuncMap
- type Function
- type FunctionOption
- func WithClient(client client.Client) FunctionOption
- func WithControllerName(name string) FunctionOption
- func WithFnClients(fnc *clients.Clients) FunctionOption
- func WithFnMap(fnMap FuncMap) FunctionOption
- func WithNameAndNamespace(name, namespace string) FunctionOption
- func WithOutput(output output.Output) FunctionOption
- func WithResult(result result.Result) FunctionOption
- func WithRootVertexName(name string) FunctionOption
- type Initializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncMap ¶
type FuncMap interface { Register(fnType ctrlcfgv1alpha1.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) WithRootVertexName(name string) WithFnClients(*clients.Clients) WithControllerName(name string) 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 WithControllerName ¶
func WithControllerName(name string) FunctionOption
func WithFnClients ¶
func WithFnClients(fnc *clients.Clients) 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
func WithRootVertexName ¶
func WithRootVertexName(name string) FunctionOption
type Initializer ¶
type Initializer func() Function
Click to show internal directories.
Click to hide internal directories.