Documentation
¶
Index ¶
- type ContainerExcludeRules
- type ContainerRuleExclude
- type ContainerRuleExcludeList
- type ContainerSettings
- type ConversionsRuleSettings
- type DocumentationSettings
- type GrafanaDashboardsExcludeList
- type HelmignoreRuleSettings
- type HooksIngressRuleSetting
- type HooksSettings
- type ImageExcludeRules
- type ImageSettings
- type KindRuleExclude
- type KindRuleExcludeList
- type LicenseExcludeRule
- type LintersSettings
- type Loader
- type LoaderOptions
- type ModuleConfig
- type ModuleDefinitionFileRuleSettings
- type ModuleExcludeRules
- type ModuleOSSRuleSettings
- type ModuleSettings
- type NoCyrillicExcludeRules
- type NoCyrillicSettings
- type OpenAPIExcludeRules
- type OpenAPISettings
- type PatchesRuleSettings
- type PrefixRuleExcludeList
- type PrometheusRulesExcludeList
- type RBACExcludeRules
- type RbacSettings
- type RootConfig
- type RuleConfig
- type ServicePortExclude
- type ServicePortExcludeList
- type StringRuleExcludeList
- type TemplatesExcludeRules
- type TemplatesLinterRules
- type TemplatesSettings
- type WerfRuleSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerExcludeRules ¶ added in v0.1.0
type ContainerExcludeRules struct {
ControllerSecurityContext KindRuleExcludeList `mapstructure:"controller-security-context"`
DNSPolicy KindRuleExcludeList `mapstructure:"dns-policy"`
HostNetworkPorts ContainerRuleExcludeList `mapstructure:"host-network-ports"`
Ports ContainerRuleExcludeList `mapstructure:"ports"`
ReadOnlyRootFilesystem ContainerRuleExcludeList `mapstructure:"read-only-root-filesystem"`
NoNewPrivileges ContainerRuleExcludeList `mapstructure:"no-new-privileges"`
SeccompProfile ContainerRuleExcludeList `mapstructure:"seccomp-profile"`
ImageDigest ContainerRuleExcludeList `mapstructure:"image-digest"`
Resources ContainerRuleExcludeList `mapstructure:"resources"`
SecurityContext ContainerRuleExcludeList `mapstructure:"security-context"`
Liveness ContainerRuleExcludeList `mapstructure:"liveness-probe"`
Readiness ContainerRuleExcludeList `mapstructure:"readiness-probe"`
Description StringRuleExcludeList `mapstructure:"description"`
}
type ContainerRuleExclude ¶ added in v0.1.0
type ContainerRuleExcludeList ¶ added in v0.1.0
type ContainerRuleExcludeList []ContainerRuleExclude
func (ContainerRuleExcludeList) Get ¶ added in v0.1.0
func (l ContainerRuleExcludeList) Get() []pkg.ContainerRuleExclude
type ContainerSettings ¶
type ContainerSettings struct {
ExcludeRules ContainerExcludeRules `mapstructure:"exclude-rules"`
Impact string `mapstructure:"impact"`
}
type ConversionsRuleSettings ¶ added in v0.1.0
type ConversionsRuleSettings struct {
// disable conversions rule completely
Disable bool `mapstructure:"disable"`
}
type DocumentationSettings ¶ added in v0.1.37
type DocumentationSettings struct {
Impact string `mapstructure:"impact"`
}
type GrafanaDashboardsExcludeList ¶ added in v0.1.20
type GrafanaDashboardsExcludeList struct {
Disable bool `mapstructure:"disable"`
}
type HelmignoreRuleSettings ¶ added in v0.1.28
type HelmignoreRuleSettings struct {
// disable helmignore rule completely
Disable bool `mapstructure:"disable"`
}
type HooksIngressRuleSetting ¶ added in v0.1.0
type HooksIngressRuleSetting struct {
// disable ingress rule completely
Disable bool `mapstructure:"disable"`
}
type HooksSettings ¶ added in v0.1.0
type HooksSettings struct {
Ingress HooksIngressRuleSetting `mapstructure:"ingress"`
Impact string `mapstructure:"impact"`
}
type ImageExcludeRules ¶ added in v0.1.8
type ImageExcludeRules struct {
SkipImageFilePathPrefix PrefixRuleExcludeList `mapstructure:"skip-image-file-path-prefix"`
SkipDistrolessFilePathPrefix PrefixRuleExcludeList `mapstructure:"skip-distroless-file-path-prefix"`
}
type ImageSettings ¶ added in v0.0.24
type ImageSettings struct {
ExcludeRules ImageExcludeRules `mapstructure:"exclude-rules"`
Patches PatchesRuleSettings `mapstructure:"patches"`
Werf WerfRuleSettings `mapstructure:"werf"`
Impact string `mapstructure:"impact"`
}
type KindRuleExclude ¶ added in v0.1.0
type KindRuleExcludeList ¶ added in v0.1.0
type KindRuleExcludeList []KindRuleExclude
func (KindRuleExcludeList) Get ¶ added in v0.1.0
func (l KindRuleExcludeList) Get() []pkg.KindRuleExclude
type LicenseExcludeRule ¶ added in v0.1.3
type LicenseExcludeRule struct {
Files StringRuleExcludeList `mapstructure:"files"`
Directories PrefixRuleExcludeList `mapstructure:"directories"`
}
type LintersSettings ¶
type LintersSettings struct {
Container ContainerSettings `mapstructure:"container"`
Documentation DocumentationSettings `mapstructure:"documentation"`
Hooks HooksSettings `mapstructure:"hooks"`
Images ImageSettings `mapstructure:"images"`
Module ModuleSettings `mapstructure:"module"`
NoCyrillic NoCyrillicSettings `mapstructure:"no-cyrillic"`
OpenAPI OpenAPISettings `mapstructure:"openapi"`
Rbac RbacSettings `mapstructure:"rbac"`
Templates TemplatesSettings `mapstructure:"templates"`
}
func (*LintersSettings) MergeGlobal ¶ added in v0.1.0
func (cfg *LintersSettings) MergeGlobal(lcfg *global.Linters)
type LoaderOptions ¶
type LoaderOptions struct {
Config string
}
type ModuleConfig ¶ added in v0.1.0
type ModuleConfig struct {
LintersSettings LintersSettings `mapstructure:"linters-settings"`
}
type ModuleDefinitionFileRuleSettings ¶ added in v0.1.0
type ModuleDefinitionFileRuleSettings struct {
// disable definition-file rule completely
Disable bool `mapstructure:"disable"`
}
type ModuleExcludeRules ¶ added in v0.1.6
type ModuleExcludeRules struct {
License LicenseExcludeRule `mapstructure:"license"`
}
type ModuleOSSRuleSettings ¶ added in v0.1.0
type ModuleOSSRuleSettings struct {
// disable oss rule completely
Disable bool `mapstructure:"disable"`
}
type ModuleSettings ¶ added in v0.0.29
type ModuleSettings struct {
ExcludeRules ModuleExcludeRules `mapstructure:"exclude-rules"`
OSS ModuleOSSRuleSettings `mapstructure:"oss"`
DefinitionFile ModuleDefinitionFileRuleSettings `mapstructure:"definition-file"`
Conversions ConversionsRuleSettings `mapstructure:"conversions"`
Helmignore HelmignoreRuleSettings `mapstructure:"helmignore"`
LegacyReleaseFile RuleConfig `mapstructure:"legacy-release-file"`
Impact string `mapstructure:"impact"`
}
type NoCyrillicExcludeRules ¶ added in v0.1.0
type NoCyrillicExcludeRules struct {
Files StringRuleExcludeList `mapstructure:"files"`
Directories PrefixRuleExcludeList `mapstructure:"directories"`
}
type NoCyrillicSettings ¶
type NoCyrillicSettings struct {
NoCyrillicExcludeRules NoCyrillicExcludeRules `mapstructure:"exclude-rules"`
Impact string `mapstructure:"impact"`
}
type OpenAPIExcludeRules ¶ added in v0.1.0
type OpenAPIExcludeRules struct {
KeyBannedNames []string `mapstructure:"key-banned-names"`
EnumFileExcludes []string `mapstructure:"enum"`
HAAbsoluteKeysExcludes StringRuleExcludeList `mapstructure:"ha-absolute-keys"`
CRDNamesExcludes StringRuleExcludeList `mapstructure:"crd-names"`
}
type OpenAPISettings ¶
type OpenAPISettings struct {
OpenAPIExcludeRules OpenAPIExcludeRules `mapstructure:"exclude-rules"`
Impact string `mapstructure:"impact"`
}
type PatchesRuleSettings ¶ added in v0.1.8
type PatchesRuleSettings struct {
// disable conversions rule completely
Disable bool `mapstructure:"disable"`
}
type PrefixRuleExcludeList ¶ added in v0.1.3
type PrefixRuleExcludeList []string
func (PrefixRuleExcludeList) Get ¶ added in v0.1.3
func (l PrefixRuleExcludeList) Get() []pkg.PrefixRuleExclude
type PrometheusRulesExcludeList ¶ added in v0.1.33
type PrometheusRulesExcludeList struct {
Disable bool `mapstructure:"disable"`
}
type RBACExcludeRules ¶ added in v0.1.0
type RBACExcludeRules struct {
BindingSubject StringRuleExcludeList `mapstructure:"binding-subject"`
Placement KindRuleExcludeList `mapstructure:"placement"`
Wildcards KindRuleExcludeList `mapstructure:"wildcards"`
}
type RbacSettings ¶
type RbacSettings struct {
ExcludeRules RBACExcludeRules `mapstructure:"exclude-rules"`
Impact string `mapstructure:"impact"`
}
type RootConfig ¶ added in v0.1.0
RootConfig encapsulates the config data specified in the YAML config file.
func NewDefaultRootConfig ¶ added in v0.1.0
func NewDefaultRootConfig(dir string) (*RootConfig, error)
type RuleConfig ¶ added in v0.1.36
type RuleConfig struct {
Impact string `mapstructure:"impact"`
}
type ServicePortExclude ¶ added in v0.1.0
type ServicePortExcludeList ¶ added in v0.1.0
type ServicePortExcludeList []ServicePortExclude
func (ServicePortExcludeList) Get ¶ added in v0.1.0
func (l ServicePortExcludeList) Get() []pkg.ServicePortExclude
type StringRuleExcludeList ¶ added in v0.1.0
type StringRuleExcludeList []string
func (StringRuleExcludeList) Get ¶ added in v0.1.0
func (l StringRuleExcludeList) Get() []pkg.StringRuleExclude
type TemplatesExcludeRules ¶ added in v0.1.0
type TemplatesExcludeRules struct {
VPAAbsent KindRuleExcludeList `mapstructure:"vpa"`
PDBAbsent KindRuleExcludeList `mapstructure:"pdb"`
ServicePort ServicePortExcludeList `mapstructure:"service-port"`
KubeRBACProxy StringRuleExcludeList `mapstructure:"kube-rbac-proxy"`
Ingress KindRuleExcludeList `mapstructure:"ingress"`
}
type TemplatesLinterRules ¶ added in v0.1.49
type TemplatesLinterRules struct {
VPARule RuleConfig `mapstructure:"vpa"`
PDBRule RuleConfig `mapstructure:"pdb"`
IngressRule RuleConfig `mapstructure:"ingress"`
PrometheusRule RuleConfig `mapstructure:"prometheus-rules"`
GrafanaRule RuleConfig `mapstructure:"grafana-dashboards"`
KubeRBACProxyRule RuleConfig `mapstructure:"kube-rbac-proxy"`
ServicePortRule RuleConfig `mapstructure:"service-port"`
ClusterDomainRule RuleConfig `mapstructure:"cluster-domain"`
RegistryRule RuleConfig `mapstructure:"registry"`
}
type TemplatesSettings ¶ added in v0.1.0
type TemplatesSettings struct {
ExcludeRules TemplatesExcludeRules `mapstructure:"exclude-rules"`
GrafanaDashboards GrafanaDashboardsExcludeList `mapstructure:"grafana-dashboards"`
PrometheusRules PrometheusRulesExcludeList `mapstructure:"prometheus-rules"`
Rules TemplatesLinterRules `mapstructure:"rules"`
Impact string `mapstructure:"impact"`
}
type WerfRuleSettings ¶ added in v0.1.32
type WerfRuleSettings struct {
// disable werf rule completely
Disable bool `mapstructure:"disable"`
}
Click to show internal directories.
Click to hide internal directories.