workloadconfigurationscan

package
v0.0.344 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a Flunder

func MatchWorkloadConfigurationScan

func MatchWorkloadConfigurationScan(label labels.Selector, field fields.Selector) storage.SelectionPredicate

MatchWorkloadConfigurationScan is the filter used by the generic etcd backend to watch events from etcd to clients of the apiserver only interested in specific labels/fields.

func NewREST

func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*registry.REST, error)

NewREST returns a RESTStorage object that will work against API services.

func SelectableFields

SelectableFields returns a field set that represents the object.

Types

type CustomREST added in v0.0.320

type CustomREST = genericrest.Store

This file wires the resource-agnostic genericrest.Store (see pkg/registry/genericrest/store.go) with workloadconfigurationscans-specific configuration, as a parallel, gated alternative to the genericregistry.Store based implementation in etcd.go (which remains the reference implementation for differential testing -- see custom_rest_test.go). Namespaced, no-op Strategy. Not inverted: DefaultQualifiedResource is plural, SingularQualifiedResource is singular, matching normal convention.

func NewCustomREST added in v0.0.320

func NewCustomREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*CustomREST, error)

NewCustomREST returns the custom rest.Storage implementation for workloadconfigurationscans. Its signature intentionally matches NewREST's so it can be wired in as a drop-in alternative in pkg/apiserver/apiserver.go.

type WorkloadConfigurationScanStrategy added in v0.0.199

type WorkloadConfigurationScanStrategy struct {
	runtime.ObjectTyper
	names.NameGenerator
}

func NewStrategy

NewStrategy creates and returns a vulnManifestStrategy instance

func (WorkloadConfigurationScanStrategy) AllowCreateOnUpdate added in v0.0.199

func (WorkloadConfigurationScanStrategy) AllowCreateOnUpdate() bool

func (WorkloadConfigurationScanStrategy) AllowUnconditionalUpdate added in v0.0.199

func (WorkloadConfigurationScanStrategy) AllowUnconditionalUpdate() bool

func (WorkloadConfigurationScanStrategy) Canonicalize added in v0.0.199

func (WorkloadConfigurationScanStrategy) NamespaceScoped added in v0.0.199

func (WorkloadConfigurationScanStrategy) NamespaceScoped() bool

func (WorkloadConfigurationScanStrategy) PrepareForCreate added in v0.0.199

func (WorkloadConfigurationScanStrategy) PrepareForUpdate added in v0.0.199

func (WorkloadConfigurationScanStrategy) Validate added in v0.0.199

func (WorkloadConfigurationScanStrategy) ValidateUpdate added in v0.0.199

func (WorkloadConfigurationScanStrategy) WarningsOnCreate added in v0.0.199

WarningsOnCreate returns warnings for the creation of the given object.

func (WorkloadConfigurationScanStrategy) WarningsOnUpdate added in v0.0.199

WarningsOnUpdate returns warnings for the given update.

Jump to

Keyboard shortcuts

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