executor

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntitiesFinder

type EntitiesFinder interface {
	FindController(namespaceName string, controllerKind string, controllerName string) (*unstructured.Unstructured, error)
	FindContainer(namespaceName string, controllerKind string, controllerName string, containerName string) (*kv1.Container, error)
}

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor Automation executor

func NewExecutor

func NewExecutor(
	kube *kuber.Kube,
	entitiesFinder EntitiesFinder,
	workersCount int,
	dryRun bool,
) *Executor

NewExecutor creates a new executor

func (*Executor) SetAutomationFeedbackHandler

func (executor *Executor) SetAutomationFeedbackHandler(handler agent.AutomationFeedbackHandler)

func (*Executor) Start

func (executor *Executor) Start(ctx context.Context) error

func (*Executor) Stop

func (executor *Executor) Stop() error

func (*Executor) SubmitAutomation

func (executor *Executor) SubmitAutomation(automation *agent.Automation) error

Jump to

Keyboard shortcuts

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