executor

package
v0.0.0-...-8b0f75f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain interface {

	// Execute chain executor
	//  @param context chain context
	Execute(context *context.Context) *result.EnvcdResult
}

type Executor

type Executor interface {

	// Execute execute code
	// Context come from every exector, data from dashboard
	//  @param context
	//  @param executor
	//  @return ret, error
	Execute(context *context.Context, chain Chain) *result.EnvcdResult

	// Skip current executor
	//  @return skip current executor or not
	Skip(context *context.Context) bool

	// Sorted executor execute order
	//  @return order
	Sorted() uint8

	// Named executor name
	//  @return named for executor
	Named() string
}

Executor the executor

Jump to

Keyboard shortcuts

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