rules

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptedEndpoint added in v0.19.0

type AcceptedEndpoint struct {
	Path string `yaml:"path" json:"path"`
}

type Extension added in v0.13.0

type Extension struct {
	Type string `json:"type" yaml:"type"`
}

type MachineImage added in v0.15.0

type MachineImage struct {
	Name                   string                                    `json:"name" yaml:"name"`
	AllowedClassifications []gardencorev1beta1.VersionClassification `json:"allowedClassifications" yaml:"allowedClassifications"`
}

type Options1000 added in v0.13.0

type Options1000 struct {
	Extensions []Extension `json:"extensions" yaml:"extensions"`
}

func (Options1000) Validate added in v0.13.0

func (o Options1000) Validate(fldPath *field.Path) field.ErrorList

type Options1001 added in v0.15.0

type Options1001 struct {
	AllowedClassifications []gardencorev1beta1.VersionClassification `json:"allowedClassifications" yaml:"allowedClassifications"`
}

func (Options1001) Validate added in v0.15.0

func (o Options1001) Validate(fldPath *field.Path) field.ErrorList

type Options1002 added in v0.15.0

type Options1002 struct {
	MachineImages []MachineImage `json:"machineImages" yaml:"machineImages"`
}

func (Options1002) Validate added in v0.15.0

func (o Options1002) Validate(fldPath *field.Path) field.ErrorList

type Options1003 added in v0.15.1

type Options1003 struct {
	AllowedLakomScopes []lakomapi.ScopeType `json:"allowedLakomScopes" yaml:"allowedLakomScopes"`
}

func (Options1003) Validate added in v0.15.1

func (o Options1003) Validate(fldPath *field.Path) field.ErrorList

type Options2000 added in v0.19.0

type Options2000 struct {
	AcceptedEndpoints []AcceptedEndpoint `yaml:"acceptedEndpoints" json:"acceptedEndpoints"`
}

func (Options2000) Validate added in v0.19.0

func (o Options2000) Validate(fldPath *field.Path) field.ErrorList

type Options2007 added in v0.13.0

type Options2007 struct {
	MinPodSecurityStandardsProfile intkubeutils.PodSecurityStandardProfile `json:"minPodSecurityStandardsProfile" yaml:"minPodSecurityStandardsProfile"`
}

func (Options2007) Validate added in v0.13.0

func (o Options2007) Validate(fldPath *field.Path) field.ErrorList

type Rule1000 added in v0.13.0

type Rule1000 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
	Options        *Options1000
}

func (*Rule1000) ID added in v0.13.0

func (r *Rule1000) ID() string

func (*Rule1000) Name added in v0.13.0

func (r *Rule1000) Name() string

func (*Rule1000) Run added in v0.13.0

func (r *Rule1000) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule1000) Severity added in v0.13.0

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

type Rule1001 added in v0.15.0

type Rule1001 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
	Options        *Options1001
}

func (*Rule1001) ID added in v0.15.0

func (r *Rule1001) ID() string

func (*Rule1001) Name added in v0.15.0

func (r *Rule1001) Name() string

func (*Rule1001) Run added in v0.15.0

func (r *Rule1001) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule1001) Severity added in v0.15.0

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

type Rule1002 added in v0.15.0

type Rule1002 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
	Options        *Options1002
}

func (*Rule1002) ID added in v0.15.0

func (r *Rule1002) ID() string

func (*Rule1002) Name added in v0.15.0

func (r *Rule1002) Name() string

func (*Rule1002) Run added in v0.15.0

func (r *Rule1002) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule1002) Severity added in v0.15.0

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

type Rule1003 added in v0.15.0

type Rule1003 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
	Options        *Options1003
}

func (*Rule1003) ID added in v0.15.0

func (r *Rule1003) ID() string

func (*Rule1003) Name added in v0.15.0

func (r *Rule1003) Name() string

func (*Rule1003) Run added in v0.15.0

func (r *Rule1003) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule1003) Severity added in v0.15.0

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

type Rule2000 added in v0.13.0

type Rule2000 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
	Options        *Options2000
}

func (*Rule2000) ID added in v0.13.0

func (r *Rule2000) ID() string

func (*Rule2000) Name added in v0.13.0

func (r *Rule2000) Name() string

func (*Rule2000) Run added in v0.13.0

func (r *Rule2000) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2000) Severity added in v0.13.0

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

type Rule2001 added in v0.13.0

type Rule2001 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
}

func (*Rule2001) ID added in v0.13.0

func (r *Rule2001) ID() string

func (*Rule2001) Name added in v0.13.0

func (r *Rule2001) Name() string

func (*Rule2001) Run added in v0.13.0

func (r *Rule2001) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2001) Severity added in v0.13.0

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

type Rule2002 added in v0.13.0

type Rule2002 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
}

func (*Rule2002) ID added in v0.13.0

func (r *Rule2002) ID() string

func (*Rule2002) Name added in v0.13.0

func (r *Rule2002) Name() string

func (*Rule2002) Run added in v0.13.0

func (r *Rule2002) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2002) Severity added in v0.13.0

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

type Rule2003

type Rule2003 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
}

func (*Rule2003) ID

func (r *Rule2003) ID() string

func (*Rule2003) Name

func (r *Rule2003) Name() string

func (*Rule2003) Run

func (r *Rule2003) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2003) Severity added in v0.13.0

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

type Rule2004 added in v0.13.0

type Rule2004 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
}

func (*Rule2004) ID added in v0.13.0

func (r *Rule2004) ID() string

func (*Rule2004) Name added in v0.13.0

func (r *Rule2004) Name() string

func (*Rule2004) Run added in v0.13.0

func (r *Rule2004) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2004) Severity added in v0.13.0

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

type Rule2005 added in v0.13.0

type Rule2005 struct {
	Client         client.Client
	ShootName      string
	ShootNamespace string
}

func (*Rule2005) ID added in v0.13.0

func (r *Rule2005) ID() string

func (*Rule2005) Name added in v0.13.0

func (r *Rule2005) Name() string

func (*Rule2005) Run added in v0.13.0

func (r *Rule2005) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2005) Severity added in v0.13.0

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

type Rule2007 added in v0.13.0

type Rule2007 struct {
	Client         client.Client
	Options        *Options2007
	ShootName      string
	ShootNamespace string
}

func (*Rule2007) ID added in v0.13.0

func (r *Rule2007) ID() string

func (*Rule2007) Name added in v0.13.0

func (r *Rule2007) Name() string

func (*Rule2007) Run added in v0.13.0

func (r *Rule2007) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule2007) Severity added in v0.13.0

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

type RuleOption added in v0.13.0

type RuleOption interface {
	Options1000 |
		Options1001 |
		Options1002 |
		Options1003 |
		Options2000 |
		Options2007
}

Jump to

Keyboard shortcuts

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