executor

package
v1.3.1-dev.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsMechanism    = "executor"
	UnknownExecutorType = "unknown"
)

Variables

This section is empty.

Functions

func CommandExecutor

func CommandExecutor(executorPath, serviceName, operation string) (string, error)

CommandExecutor provides the common callout to the configuration-defined executor.

func NewMetrics

func NewMetrics(executor interfaces.CommandExecutor, lc logger.LoggingClient, executorPath string) *metrics

NewMetrics is a factory function that returns an initialized metrics receiver struct.

func NewOperations

func NewOperations(
	executor interfaces.CommandExecutor,
	lc logger.LoggingClient,
	executorPath string) *operations

NewOperations is a factory function that returns an initialized operations receiver struct.

Types

type Stub

type Stub struct {
	Called int // number of times stub is called
	// contains filtered or unexported fields
}

func NewStub

func NewStub(results map[string]stubCall) Stub

func (*Stub) CommandExecutor

func (m *Stub) CommandExecutor(executorPath, serviceName, operation string) (string, error)

CommandExecutor provides the common callout to the configuration-defined executor. This is a stub implementation of the CommandExecutor interface.

Jump to

Keyboard shortcuts

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