Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvalidInputError ¶
type InvalidInputError struct { }
func (*InvalidInputError) Error ¶
func (e *InvalidInputError) Error() string
type NotSupportedError ¶
type NotSupportedError struct {
Kind string
}
func (*NotSupportedError) Error ¶
func (e *NotSupportedError) Error() string
type Rule ¶
type Rule struct { ID string `json:"id" yaml:"id"` Selector string `json:"selector" yaml:"selector"` Reason string `json:"reason" yaml:"reason"` Link string `json:"link,omitempty" yaml:"link,omitempty"` Kinds []string `json:"kinds" yaml:"kinds"` Points int `json:"points" yaml:"points"` Advise int `json:"advise" yaml:"advise"` Predicate func([]byte) int `json:"-" yaml:"-"` }
type RuleRefCustomOrder ¶
type RuleRefCustomOrder []RuleRef
func (RuleRefCustomOrder) Len ¶
func (rr RuleRefCustomOrder) Len() int
func (RuleRefCustomOrder) Less ¶
func (rr RuleRefCustomOrder) Less(i, j int) bool
func (RuleRefCustomOrder) Swap ¶
func (rr RuleRefCustomOrder) Swap(i, j int)
type RuleScoring ¶
type Ruleset ¶
type Ruleset struct { Rules []Rule // contains filtered or unexported fields }
func NewRuleset ¶
func NewRuleset(logger *zap.SugaredLogger) *Ruleset
type SchemaConfig ¶ added in v2.13.0
type SchemaConfig struct { // DisableValidation disables the validation of the manifests against // Kubernetes JSON schema. Set to true when the source manifests // comes directly from the cluster (e.g: webhook, kubectl plugin). DisableValidation bool // Locations defines the locations of the schemas. This follows the // same logic as the -schema-location flag from kubeconform. Locations []string // ValidatorOpts are the options from kubeconform validator. ValidatorOpts validator.Opts }
SchemaConfig hold the configuration of the schema validaton.
func NewDefaultSchemaConfig ¶ added in v2.13.0
func NewDefaultSchemaConfig() SchemaConfig
Click to show internal directories.
Click to hide internal directories.