Documentation ¶
Index ¶
- func Bool(text string, data interface{}) (bool, error)
- func Error(name string, err error) error
- func Execute(text string, data interface{}) (string, error)
- func IsFuncError(err error) bool
- func Panic(name string, err error) error
- func RegisterFunc(key string, fn interface{})
- func String(text string, data interface{}) (string, error)
- func ValidateOutputPath(outputPath string) (string, error)
- type FuncError
- type Insight
- type Meta
- type Result
- type Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFuncError ¶
func RegisterFunc ¶
func RegisterFunc(key string, fn interface{})
func ValidateOutputPath ¶ added in v0.29.0
ValidateOutputPath takes an output file path and returns it as an absolute path. It returns an error if the absolute path cannot be determined or if the parent directory does not exist.
Types ¶
type Insight ¶
type Result ¶
type Result struct { Meta `json:",inline" yaml:",inline" hcl:",inline"` Insight *Insight `json:"insight" yaml:"insight" hcl:"insight"` Severity Severity `json:"severity" yaml:"severity" hcl:"severity"` AnalyzerSpec string `json:"analyzerSpec" yaml:"analyzerSpec" hcl:"analyzerSpec"` Variables map[string]interface{} `json:"variables,omitempty" yaml:"variables,omitempty" hcl:"variables,omitempty"` Error string `json:"error,omitempty" yaml:"error,omitempty" hcl:"error,omitempty"` InvolvedObject *corev1.ObjectReference `json:"involvedObject,omitempty" yaml:"involvedObject,omitempty" hcl:"involvedObject,omitempty"` }
func FromAnalyzerResult ¶
func FromAnalyzerResult(input []*analyze.AnalyzeResult) []*Result
Click to show internal directories.
Click to hide internal directories.