Documentation
¶
Index ¶
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchWorkloadConfigurationScan(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, ...) (*registry.REST, error)
- func SelectableFields(obj *softwarecomposition.SeccompProfile) fields.Set
- type CustomREST
- type SeccompProfileStrategy
- func (SeccompProfileStrategy) AllowCreateOnUpdate() bool
- func (SeccompProfileStrategy) AllowUnconditionalUpdate() bool
- func (SeccompProfileStrategy) Canonicalize(_ runtime.Object)
- func (SeccompProfileStrategy) NamespaceScoped() bool
- func (SeccompProfileStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)
- func (SeccompProfileStrategy) PrepareForUpdate(_ context.Context, _, _ runtime.Object)
- func (SeccompProfileStrategy) Validate(_ context.Context, _ runtime.Object) field.ErrorList
- func (SeccompProfileStrategy) ValidateUpdate(_ context.Context, _, _ runtime.Object) field.ErrorList
- func (SeccompProfileStrategy) WarningsOnCreate(_ context.Context, _ runtime.Object) []string
- func (SeccompProfileStrategy) WarningsOnUpdate(_ context.Context, _, _ runtime.Object) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAttrs ¶
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 ¶
func SelectableFields(obj *softwarecomposition.SeccompProfile) fields.Set
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 seccompprofiles-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. DefaultQualifiedResource/SingularQualifiedResource are inverted relative to normal convention (singular/plural swapped) -- this directly determines the on-disk key prefix (see pkg/registry/softwarecomposition/containerprofile/custom_rest.go's doc comment for why), so both values are copied verbatim from etcd.go's NewREST, not "corrected".
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 seccompprofiles. Its signature intentionally matches NewREST's so it can be wired in as a drop-in alternative in pkg/apiserver/apiserver.go.
type SeccompProfileStrategy ¶ added in v0.0.199
type SeccompProfileStrategy struct {
runtime.ObjectTyper
names.NameGenerator
}
func NewStrategy ¶
func NewStrategy(typer runtime.ObjectTyper) SeccompProfileStrategy
NewStrategy creates and returns a seccompProfileStrategy instance
func (SeccompProfileStrategy) AllowCreateOnUpdate ¶ added in v0.0.199
func (SeccompProfileStrategy) AllowCreateOnUpdate() bool
func (SeccompProfileStrategy) AllowUnconditionalUpdate ¶ added in v0.0.199
func (SeccompProfileStrategy) AllowUnconditionalUpdate() bool
func (SeccompProfileStrategy) Canonicalize ¶ added in v0.0.199
func (SeccompProfileStrategy) Canonicalize(_ runtime.Object)
func (SeccompProfileStrategy) NamespaceScoped ¶ added in v0.0.199
func (SeccompProfileStrategy) NamespaceScoped() bool
func (SeccompProfileStrategy) PrepareForCreate ¶ added in v0.0.199
func (SeccompProfileStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)
func (SeccompProfileStrategy) PrepareForUpdate ¶ added in v0.0.199
func (SeccompProfileStrategy) PrepareForUpdate(_ context.Context, _, _ runtime.Object)
func (SeccompProfileStrategy) ValidateUpdate ¶ added in v0.0.199
func (SeccompProfileStrategy) WarningsOnCreate ¶ added in v0.0.199
WarningsOnCreate returns warnings for the creation of the given object.
func (SeccompProfileStrategy) WarningsOnUpdate ¶ added in v0.0.199
WarningsOnUpdate returns warnings for the given update.