Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShellAction ¶
type ShellAction struct {
Type string `mapstructure:"type"`
Config actions.Config `mapstructure:"config"`
Params struct {
Command string `mapstructure:"command" default:"/bin/sh" validate:"required"`
Args []string `mapstructure:"args" default:"[]"`
Timeout int `mapstructure:"timeout" default:"20"`
Env map[string]string `mapstructure:"env" default:"{}"`
NoInheritEnv bool `mapstructure:"no_inherit_env" default:"false"`
Dir string `mapstructure:"dir" default:""`
Echo bool `mapstructure:"echo" default:"false"`
} `mapstructure:"params"`
// contains filtered or unexported fields
}
func NewAction ¶
NewAction creates a new ShellAction. It takes a koanf object to hydrate the action struct. It consumes the whole koanf object, so you likely want to carve it off a larger koanf object.
func (*ShellAction) GetConfig ¶
func (a *ShellAction) GetConfig() actions.Config
Click to show internal directories.
Click to hide internal directories.