Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShellCheck ¶
type ShellCheck struct {
Type string `mapstructure:"type"`
Status bool `default:"false"`
Config checks.Config `mapstructure:"config"`
Params struct {
Command string `mapstructure:"command" default:"/bin/sh" validate:"required"`
Args []string `mapstructure:"args" default:"[]"`
ExitCode int `mapstructure:"exit_code" default:"0"`
RegexMatch []string `mapstructure:"regex_match" default:"[]"`
RegexNoMatch []string `mapstructure:"regex_no_match" default:"[]"`
Timeout int `mapstructure:"timeout" default:"20"`
Env map[string]string `mapstructure:"env" default:"{}"`
NoInheritEnv bool `mapstructure:"no_inherit_env" default:"false"`
Echo bool `mapstructure:"echo" default:"false"`
Dir string `mapstructure:"dir" default:""`
} `mapstructure:"params"`
// contains filtered or unexported fields
}
func (*ShellCheck) Check ¶
func (c *ShellCheck) Check() bool
func (*ShellCheck) GetConfig ¶
func (c *ShellCheck) GetConfig() checks.Config
Click to show internal directories.
Click to hide internal directories.