rules

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

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

type Rule242390 struct {
	Client          *http.Client
	KAPIExternalURL string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL