shellcheck

package
v0.0.0-...-31db053 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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 NewCheck

func NewCheck(ctx context.Context, konfig *koanf.Koanf) (*ShellCheck, error)

func (*ShellCheck) Check

func (c *ShellCheck) Check() bool

func (*ShellCheck) Execute

func (c *ShellCheck) Execute(ctx context.Context) error

func (*ShellCheck) GetConfig

func (c *ShellCheck) GetConfig() checks.Config

Jump to

Keyboard shortcuts

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