executor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 6 Imported by: 2

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.

Jump to

Keyboard shortcuts

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