Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶ added in v0.1.0
type FieldType ¶ added in v0.1.0
type FieldType string
const ( FieldTypeJSON FieldType = "json" FieldTypeYAML FieldType = "yaml" DefaultFieldType FieldType = FieldTypeJSON )
type Payload ¶
type Payload struct {
Resources []Resource `json:"resources" yaml:"resources"`
Requests []Request `mapstructure:"requests" json:"requests" yaml:"requests"`
Wait Wait `json:"wait" yaml:"wait"`
Rego string `json:"rego" yaml:"rego"`
Output Output `json:"output" yaml:"output"`
}
Current placeholder for all requisite data in the payload Fields will be populated as required otherwise left empty This could be expanded as providers add more fields
type Resource ¶
type Resource struct {
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
ResourceRule ResourceRule `json:"resource-rule" yaml:"resource-rule"`
}
type ResourceRule ¶
type ResourceRule struct {
Name string `json:"name" yaml:"name"`
Group string `json:"group" yaml:"group"`
Version string `json:"version" yaml:"version"`
Resource string `json:"resource" yaml:"resource"`
Namespaces []string `json:"namespaces" yaml:"namespaces"`
Field Field `json:"field" yaml:"field"`
}
type Result ¶
type Result struct {
UUID string `json:"uuid" yaml:"uuid"`
ControlId string `json:"control-id" yaml:"control-id"`
Description string `json:"description" yaml:"description"`
Passing int `json:"passing" yaml:"passing"`
Failing int `json:"failing" yaml:"failing"`
State string `json:"state" yaml:"state"`
Observations map[string]string `json:"observations" yaml:"observations"`
}
native type for conversion to targeted report format
type Validation ¶
Click to show internal directories.
Click to hide internal directories.