internal

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetRego = "rego"
	TargetWasm = "wasm"
)
View Source
const (
	HCL2           = "hcl2"
	YAML           = "yaml"
	TERRAFORM_PLAN = "tf-plan"
)
View Source
const (
	LOW      = "low"
	MEDIUM   = "medium"
	HIGH     = "high"
	CRITICAL = "critical"
)
View Source
const (
	ExplainModeFull  = "full"
	ExplainModeNotes = "notes"
	ExplainModeFails = "fails"
)

Variables

This section is empty.

Functions

func RunBuild

func RunBuild(args []string, params *BuildCommandParams) error

func RunParse

func RunParse(args []string, params *ParseCommandParams) error

func RunPush added in v0.4.0

func RunPush(args []string, params *PushCommandParams) error

func RunTemplate

func RunTemplate(args []string, params *TemplateCommandParams) error

func RunTest

func RunTest(args []string, params *TestCommandParams) error

Types

type BuildCommandParams

type BuildCommandParams struct {
	Entrypoint   util.RepeatedStringFlag
	OutputFile   string
	Ignore       []string
	Target       util.EnumFlag
	Capabilities util.CapabilitiesFlag
}

type ParseCommandParams

type ParseCommandParams struct {
	Format util.EnumFlag
}

type PushCommandParams added in v0.4.0

type PushCommandParams struct {
	BundleRegistry string
}

type TemplateCommandParams

type TemplateCommandParams struct {
	RuleID       string
	RuleTitle    string
	RuleSeverity util.EnumFlag
}

type TestCommandParams

type TestCommandParams struct {
	Verbose  bool
	Explain  util.EnumFlag
	Timeout  time.Duration
	Ignore   []string
	RunRegex string
}

Jump to

Keyboard shortcuts

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