Documentation
¶
Overview ¶
Package executor provide the Execute and Schedule action for bk-plugin execution model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(traceID string, version string, reader runtime.ContextReader, runtime runtime.PluginExecuteRuntime, logger *log.Entry) (constants.State, error)
Execute define the execute action for bk-plugin execution model.
The traceID represent the unique id for this execution.
The version represent the version of plugin which will be executed.
The reader set the read source of inputs.
The runtime set the execute runtime use in execute action.
func Schedule ¶
func Schedule(traceID string, version string, invokeCount int, reader runtime.ContextReader, runtime runtime.PluginScheduleExecuteRuntime, logger *log.Entry) error
Schedule define the schedule action for bk-plugin execution model.
The traceID represent the unique id for this execution.
The version represent the version of plugin which will be executed.
The reader set the read source of inputs.
The runtime set the execute runtime use in schedule action.
Types ¶
This section is empty.