option

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateLabelNames added in v0.6.0

func ValidateLabelNames(labelNames []string, fldPath *field.Path) field.ErrorList

ValidateLabelNames validates that label names a correctly defined

Types

type AcceptedPods242414 added in v0.6.0

type AcceptedPods242414 struct {
	PodMatchLabels       map[string]string `json:"podMatchLabels" yaml:"podMatchLabels"`
	NamespaceMatchLabels map[string]string `json:"namespaceMatchLabels" yaml:"namespaceMatchLabels"`
	Justification        string            `json:"justification" yaml:"justification"`
	Ports                []int32           `json:"ports" yaml:"ports"`
}

AcceptedPods242414 contains option specifications for appected pods

type AcceptedPods242415 added in v0.6.0

type AcceptedPods242415 struct {
	PodMatchLabels       map[string]string `json:"podMatchLabels" yaml:"podMatchLabels"`
	NamespaceMatchLabels map[string]string `json:"namespaceMatchLabels" yaml:"namespaceMatchLabels"`
	Justification        string            `json:"justification" yaml:"justification"`
	EnvironmentVariables []string          `json:"environmentVariables" yaml:"environmentVariables"`
}

AcceptedPods242415 contains option specifications for appected pods

type ExpectedOwner

type ExpectedOwner struct {
	Users  []string `json:"users" yaml:"users"`
	Groups []string `json:"groups" yaml:"groups"`
}

ExpectedOwner contains expected user and group owners

type FileOwnerOptions

type FileOwnerOptions struct {
	ExpectedFileOwner ExpectedOwner `json:"expectedFileOwner" yaml:"expectedFileOwner"`
}

FileOwnerOptions contains expected user and group owners for files

func (FileOwnerOptions) Validate added in v0.6.0

func (o FileOwnerOptions) Validate() field.ErrorList

Validate validates that option configurations are correctly defined

type Option added in v0.6.0

type Option interface {
	Validate() field.ErrorList
}

Option that can be validated in order to ensure that configurations are correctly defined

type Options242414 added in v0.6.0

type Options242414 struct {
	AcceptedPods []AcceptedPods242414 `json:"acceptedPods" yaml:"acceptedPods"`
}

Options242414 contains options for rule 242414

func (Options242414) Validate added in v0.6.0

func (o Options242414) Validate() field.ErrorList

Validate validates that option configurations are correctly defined

type Options242415 added in v0.6.0

type Options242415 struct {
	AcceptedPods []AcceptedPods242415 `json:"acceptedPods" yaml:"acceptedPods"`
}

Options242415 contains options for rule 242415

func (Options242415) Validate added in v0.6.0

func (o Options242415) Validate() field.ErrorList

Validate validates that option configurations are correctly defined

Jump to

Keyboard shortcuts

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