Documentation ¶
Overview ¶
Package rules implements rules that correspond to the latest supported ruleset version. These rules can be reused by an older supported ruleset versions in case a rule implementation did not change. Rule implementations that had changed in latest supported version but still need to be supported because of old ruleset versions should be separated in ruleset versioned specific package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options242400 ¶
type Options242400 struct { option.KubeProxyOptions KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"` }
func (Options242400) Validate ¶
func (o Options242400) Validate() field.ErrorList
type Options242442 ¶
type Options242442 struct {
KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"`
}
func (Options242442) Validate ¶
func (o Options242442) Validate() field.ErrorList
type Options242451 ¶
type Options242451 struct { option.KubeProxyOptions KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"` NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"` *option.FileOwnerOptions }
func (Options242451) Validate ¶
func (o Options242451) Validate() field.ErrorList
type Options242466 ¶
type Options242466 struct { option.KubeProxyOptions KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"` NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"` }
func (Options242466) Validate ¶
func (o Options242466) Validate() field.ErrorList
type Options242467 ¶
type Options242467 struct { option.KubeProxyOptions KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"` NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"` }
func (Options242467) Validate ¶
func (o Options242467) Validate() field.ErrorList
type Rule242390 ¶ added in v0.12.0
func (*Rule242390) ID ¶ added in v0.12.0
func (r *Rule242390) ID() string
func (*Rule242390) Name ¶ added in v0.12.0
func (r *Rule242390) Name() string
func (*Rule242390) Run ¶ added in v0.12.0
func (r *Rule242390) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242400 ¶
type Rule242400 struct { InstanceID string Client client.Client V1RESTClient rest.Interface PodContext pod.PodContext Options *Options242400 Logger provider.Logger }
func (*Rule242400) ID ¶
func (r *Rule242400) ID() string
func (*Rule242400) Name ¶
func (r *Rule242400) Name() string
func (*Rule242400) Run ¶
func (r *Rule242400) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242414 ¶
type Rule242414 struct { Client client.Client Options *option.Options242414 }
func (*Rule242414) ID ¶
func (r *Rule242414) ID() string
func (*Rule242414) Name ¶
func (r *Rule242414) Name() string
func (*Rule242414) Run ¶
func (r *Rule242414) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242415 ¶
type Rule242415 struct { Client client.Client Options *option.Options242415 }
func (*Rule242415) ID ¶
func (r *Rule242415) ID() string
func (*Rule242415) Name ¶
func (r *Rule242415) Name() string
func (*Rule242415) Run ¶
func (r *Rule242415) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242442 ¶
type Rule242442 struct { Client client.Client Options *Options242442 }
func (*Rule242442) ID ¶
func (r *Rule242442) ID() string
func (*Rule242442) Name ¶
func (r *Rule242442) Name() string
func (*Rule242442) Run ¶
func (r *Rule242442) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242451 ¶
type Rule242451 struct { InstanceID string Client client.Client PodContext pod.PodContext Options *Options242451 Logger provider.Logger }
func (*Rule242451) ID ¶
func (r *Rule242451) ID() string
func (*Rule242451) Name ¶
func (r *Rule242451) Name() string
func (*Rule242451) Run ¶
func (r *Rule242451) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242466 ¶
type Rule242466 struct { InstanceID string Client client.Client PodContext pod.PodContext Options *Options242466 Logger provider.Logger }
func (*Rule242466) ID ¶
func (r *Rule242466) ID() string
func (*Rule242466) Name ¶
func (r *Rule242466) Name() string
func (*Rule242466) Run ¶
func (r *Rule242466) Run(ctx context.Context) (rule.RuleResult, error)
type Rule242467 ¶
type Rule242467 struct { InstanceID string Client client.Client PodContext pod.PodContext Options *Options242467 Logger provider.Logger }
func (*Rule242467) ID ¶
func (r *Rule242467) ID() string
func (*Rule242467) Name ¶
func (r *Rule242467) Name() string
func (*Rule242467) Run ¶
func (r *Rule242467) Run(ctx context.Context) (rule.RuleResult, error)
type RuleOption ¶
type RuleOption interface { sharedrules.Options242383 | sharedrules.Options242393 | sharedrules.Options242394 | sharedrules.Options242396 | Options242400 | sharedrules.Options242404 | sharedrules.Options242406 | sharedrules.Options242407 | option.Options242414 | option.Options242415 | sharedrules.Options242417 | Options242442 | sharedrules.Options242447 | sharedrules.Options242448 | sharedrules.Options242449 | sharedrules.Options242450 | Options242451 | sharedrules.Options242452 | sharedrules.Options242453 | Options242466 | Options242467 }
Click to show internal directories.
Click to hide internal directories.