execute

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: EPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoalesceErrors

func CoalesceErrors(errs []error) error

func GetExecutorsFromYAML

func GetExecutorsFromYAML(inputFile, namespace string, kindHandlers map[config.Kind]func(*KindHandlerOpt) (Executor, error)) (executorsMap map[config.Kind][]Executor, err error)

func RunExecutors

func RunExecutors(executors []Executor, execType string) []error

Types

type Executor

type Executor interface {
	Execute() error
	GetName() string
}

func ForParallel

func ForParallel(exes []Executor) (errs []error, failedExes []Executor)

func NewEmptyExecutor

func NewEmptyExecutor(name string) Executor

NewEmptyExecutor return an executor that does nothing

type KindHandlerOpt

type KindHandlerOpt struct {
	Kind      config.Kind
	Namespace string
	Name      string
	YAML      []byte
	Tags      *[]string
}

type ProvisioningExecutor

type ProvisioningExecutor interface {
	ProvisionAgent() (string, error)
}

Jump to

Keyboard shortcuts

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