runner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEnvList added in v0.1.3

func BuildEnvList(
	logger io.Logger,
	exec *config.ExecutableEnvironment,
	inputEnv map[string]string,
	defaultEnv map[string]string,
) ([]string, error)

func BuildEnvMap added in v0.1.3

func BuildEnvMap(
	logger io.Logger,
	exec *config.ExecutableEnvironment,
	inputEnv map[string]string,
	defaultEnv map[string]string,
) (map[string]string, error)

func DefaultEnv added in v0.1.3

func DefaultEnv(ctx *context.Context, executable *config.Executable) map[string]string

func Exec

func Exec(ctx *context.Context, executable *config.Executable, promptedEnv map[string]string) error

func RegisterRunner

func RegisterRunner(runner Runner)

func Reset added in v0.1.6

func Reset()

func ResolveParameterValue

func ResolveParameterValue(logger io.Logger, param config.Parameter, promptedEnv map[string]string) (string, error)

func SetEnv

func SetEnv(logger io.Logger, exec *config.ExecutableEnvironment, promptedEnv map[string]string) error

Types

type Runner

type Runner interface {
	Name() string
	Exec(ctx *context.Context, executable *config.Executable, promptedEnv map[string]string) error
	IsCompatible(executable *config.Executable) bool
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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