command

package
v0.0.0-...-f22496c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TypeName = "go2chef.step.command"

TypeName is the name of this step plugin

Variables

This section is empty.

Functions

func Loader

func Loader(config map[string]interface{}) (go2chef.Step, error)

Loader provides an instantiation function for this step plugin

Types

type Step

type Step struct {
	SName          string   `mapstructure:"name"`
	Command        []string `mapstructure:"command"`
	Env            map[string]string
	TimeoutSeconds int      `mapstructure:"timeout_seconds"`
	PassthroughEnv []string `mapstructure:"passthrough_env"`

	Output map[string]string `mapstructure:"output"`
	// contains filtered or unexported fields
}

Step implements a command execution step plugin

func (*Step) Download

func (s *Step) Download() error

Download does nothing for this step since there's no downloading to be done when running any ol' command.

func (*Step) Execute

func (s *Step) Execute() error

Execute runs the actual command.

func (*Step) Name

func (s *Step) Name() string

Name returns the name of this step instance

func (*Step) SetName

func (s *Step) SetName(name string)

SetName sets the name of this step instance

func (*Step) String

func (s *Step) String() string

func (*Step) Type

func (s *Step) Type() string

Type returns the type of this step instance

Jump to

Keyboard shortcuts

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