Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDirectory(workingDirectory string, name string, strict bool) (string, error)
- func CreateFile(workingDirectory string, name string) (string, error)
- func IsPointingAtTemplatedRules(paths []string) error
- func TemplateFile(workingDirectory string, fileName string, template string, ...) error
- func Term() (*ast.Term, error)
- func ValidateFilePath(path string) (fs.FileInfo, error)
- type CapabilitiesFlag
- type EnumFlag
- type LoaderFilter
- type RepeatedStringFlag
- type Rule
- type Templating
Constants ¶
View Source
const ( TargetRego = "rego" TargetWasm = "wasm" )
View Source
const ( JSON = "json" 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 ¶
Functions ¶
func CreateDirectory ¶
func IsPointingAtTemplatedRules ¶ added in v0.7.0
func TemplateFile ¶
func TemplateFile(workingDirectory string, fileName string, template string, templating Templating) error
Types ¶
type CapabilitiesFlag ¶ added in v0.5.0
type CapabilitiesFlag struct { C *ast.Capabilities // contains filtered or unexported fields }
func NewCapabilitiesFlag ¶ added in v0.5.0
func NewCapabilitiesFlag() CapabilitiesFlag
func (*CapabilitiesFlag) Set ¶ added in v0.5.0
func (f *CapabilitiesFlag) Set(s string) error
func (*CapabilitiesFlag) String ¶ added in v0.5.0
func (f *CapabilitiesFlag) String() string
func (*CapabilitiesFlag) Type ¶ added in v0.5.0
func (f *CapabilitiesFlag) Type() string
type EnumFlag ¶
type EnumFlag struct {
// contains filtered or unexported fields
}
func NewEnumFlag ¶
func (*EnumFlag) Set ¶
Set sets the enum value. If s is not a valid enum value, an error is returned.
type LoaderFilter ¶
type LoaderFilter struct {
Ignore []string
}
LoaderFilter was taken from https://github.com/open-policy-agent/opa/blob/v0.31.0/cmd/filters.go#L13
type RepeatedStringFlag ¶
type RepeatedStringFlag struct {
// contains filtered or unexported fields
}
func NewRepeatedStringFlag ¶
func NewRepeatedStringFlag(defaultValue string) RepeatedStringFlag
func (*RepeatedStringFlag) IsSet ¶
func (f *RepeatedStringFlag) IsSet() bool
func (*RepeatedStringFlag) Set ¶
func (f *RepeatedStringFlag) Set(s string) error
func (*RepeatedStringFlag) String ¶
func (f *RepeatedStringFlag) String() string
func (*RepeatedStringFlag) Strings ¶
func (f *RepeatedStringFlag) Strings() []string
func (*RepeatedStringFlag) Type ¶
func (f *RepeatedStringFlag) Type() string
type Rule ¶ added in v1.2.1
func RetrieveRules ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.