exec

package
v0.0.0-...-57137be Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseName = "exec"
	Name     = actions.BuildInActionPrefix + BaseName
)

Action description

Variables

View Source
var (
	// TODO: make this configurable
	DefaultStopSignal             = os.Interrupt
	DefaultTerminationGracePeriod = 10 * time.Second
)

Functions

func BuildAction

func BuildAction(ctx actions.Context) (actions.Action, error)

BuildAction instance of exec action.

Types

type Config

type Config struct {
	Command string            `json:"command"`
	Args    []string          `json:"args"`
	Env     map[string]string `json:"env"`
	WD      string            `json:"workingDirectory"`
}

Config for exec action

func (*Config) Validate

func (c *Config) Validate() error

Validate exec action config.

Jump to

Keyboard shortcuts

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