runner

package
v1.16.12-beta027 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 2 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner interface {
	// Run takes Execution data and returns execution result
	Run(ctx context.Context, execution testkube.Execution) (result testkube.ExecutionResult, err error)
	// GetType returns runner type
	GetType() Type
}

Runner interface to abstract runners implementations

type Type added in v1.8.1

type Type string

Type describes a type of the runner

const (
	// TypeInit is an initialization runner
	TypeInit Type = "init"
	// TypeMain is a main runner
	TypeMain Type = "main"
	// TypeFin is a finalization runner
	TypeFin Type = "finalize"
)

func (Type) IsFin added in v1.8.1

func (t Type) IsFin() bool

IsFin if type is fin

func (Type) IsInit added in v1.8.1

func (t Type) IsInit() bool

IsInit if type is init

func (Type) IsMain added in v1.8.1

func (t Type) IsMain() bool

IsMain if type is main

Jump to

Keyboard shortcuts

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