executor

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package executor contains an interface and implementations for task execution engines. These engines simply subscribe to a queue of execution tasks and execute them as they arrive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

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

CommandExecutor handles command invocation targets

func NewCommandExecutor

func NewCommandExecutor(
	secrets secret.Store,
	passEnvironment bool,
	configSecretPath string,
	configSecretPrefix string,
) CommandExecutor

NewCommandExecutor creates a new CommandExecutor

func (*CommandExecutor) Subscribe

func (e *CommandExecutor) Subscribe(bus chan task.ExecutionTask)

Subscribe implements executor.Executor

type Executor

type Executor interface {
	Subscribe(chan task.ExecutionTask)
}

Executor describes a type that can handle events and react to them. An executor is also responsible for hydrating a target with secrets.

type Printer

type Printer struct{}

Printer implements an executor that doesn't actually execute, just prints.

func (*Printer) Subscribe

func (p *Printer) Subscribe(bus chan task.ExecutionTask)

Subscribe implements executor.Executor

Jump to

Keyboard shortcuts

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