rules

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 20 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 Rule242400

type Rule242400 struct {
	Client    client.Client
	Namespace string
}

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)

func (*Rule242400) Severity added in v0.13.0

func (r *Rule242400) Severity() rule.SeverityLevel

type Rule242442

type Rule242442 struct {
	Client    client.Client
	Namespace string
}

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)

func (*Rule242442) Severity added in v0.13.0

func (r *Rule242442) Severity() rule.SeverityLevel

type Rule242451

type Rule242451 struct {
	InstanceID string
	Client     client.Client
	Namespace  string
	PodContext pod.PodContext
	Options    *option.FileOwnerOptions
	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)

func (*Rule242451) Severity added in v0.13.0

func (r *Rule242451) Severity() rule.SeverityLevel

type Rule242466

type Rule242466 struct {
	InstanceID string
	Client     client.Client
	Namespace  string
	PodContext pod.PodContext
	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)

func (*Rule242466) Severity added in v0.13.0

func (r *Rule242466) Severity() rule.SeverityLevel

type Rule242467

type Rule242467 struct {
	InstanceID string
	Client     client.Client
	Namespace  string
	PodContext pod.PodContext
	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)

func (*Rule242467) Severity added in v0.13.0

func (r *Rule242467) Severity() rule.SeverityLevel

Jump to

Keyboard shortcuts

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