Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyze ¶
type Analyze struct {
V1 []v1.AnalyzerSpec `json:"v1,omitempty" yaml:"v1,omitempty" hcl:"v1,omitempty"`
}
Analyze is the top level analyze object
type Doc ¶ added in v0.19.0
type Doc struct {
Analyze Analyze `json:"analyze" yaml:"analyze" hcl:"analyze"`
}
Doc is the top level Analyze document that defines an set of collectors and analysis
func DeserializeDoc ¶ added in v0.19.0
DeserializeDoc will deserialize a analyze spec. Possibly support more formats?
type Result ¶
type Result struct { Message string `json:"message" yaml:"message" hcl:"message"` Requirement string `json:"requirement,omitempty" yaml:"requirement,omitempty" hcl:"requirement,omitempty"` Severity common.Severity `json:"severity" yaml:"severity" hcl:"severity"` AnalyzerSpec Analyze `json:"analyzer_spec" yaml:"analyzer_spec" hcl:"analyzer_spec"` Vars []map[string]interface{} `json:"variables,omitempty" yaml:"variables,omitempty" hcl:"variables,omitempty"` Error string `json:"error,omitempty" yaml:"error,omitempty" hcl:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.