Documentation
¶
Index ¶
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchCollapseConfiguration(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, ...) (*registry.REST, error)
- func SelectableFields(obj *softwarecomposition.CollapseConfiguration) fields.Set
- type CollapseConfigurationStrategy
- func (CollapseConfigurationStrategy) AllowCreateOnUpdate() bool
- func (CollapseConfigurationStrategy) AllowUnconditionalUpdate() bool
- func (CollapseConfigurationStrategy) Canonicalize(_ runtime.Object)
- func (CollapseConfigurationStrategy) NamespaceScoped() bool
- func (CollapseConfigurationStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)
- func (CollapseConfigurationStrategy) PrepareForUpdate(_ context.Context, _, _ runtime.Object)
- func (CollapseConfigurationStrategy) Validate(_ context.Context, obj runtime.Object) field.ErrorList
- func (CollapseConfigurationStrategy) ValidateUpdate(_ context.Context, obj, _ runtime.Object) field.ErrorList
- func (CollapseConfigurationStrategy) WarningsOnCreate(_ context.Context, _ runtime.Object) []string
- func (CollapseConfigurationStrategy) 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 CollapseConfiguration.
func MatchCollapseConfiguration ¶
func MatchCollapseConfiguration(label labels.Selector, field fields.Selector) storage.SelectionPredicate
MatchCollapseConfiguration returns a generic SelectionPredicate that pairs the supplied label/field selectors with the type's GetAttrs.
func NewREST ¶
func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*registry.REST, error)
NewREST returns a RESTStorage object that exposes CollapseConfiguration resources. The CRD is cluster-scoped (NamespaceScoped() == false in strategy.go) and is normally read by the storage server's deflate path at deflateApplicationProfileContainer / DeflateContainerProfileSpec time.
func SelectableFields ¶
func SelectableFields(obj *softwarecomposition.CollapseConfiguration) fields.Set
SelectableFields returns a field set that represents the object. CollapseConfiguration is cluster-scoped, so the namespaceScoped flag is false — `metadata.namespace` is intentionally absent from the selectable set.
Types ¶
type CollapseConfigurationStrategy ¶
type CollapseConfigurationStrategy struct {
runtime.ObjectTyper
names.NameGenerator
}
CollapseConfigurationStrategy carries the per-object lifecycle hooks the generic registry calls during Create/Update/Delete. CollapseConfiguration is cluster-scoped, has no immutable fields, and validates that each per-prefix entry has a non-empty Prefix and a positive Threshold.
func NewStrategy ¶
func NewStrategy(typer runtime.ObjectTyper) CollapseConfigurationStrategy
NewStrategy creates and returns a CollapseConfigurationStrategy instance.
func (CollapseConfigurationStrategy) AllowCreateOnUpdate ¶
func (CollapseConfigurationStrategy) AllowCreateOnUpdate() bool
func (CollapseConfigurationStrategy) AllowUnconditionalUpdate ¶
func (CollapseConfigurationStrategy) AllowUnconditionalUpdate() bool
func (CollapseConfigurationStrategy) Canonicalize ¶
func (CollapseConfigurationStrategy) Canonicalize(_ runtime.Object)
func (CollapseConfigurationStrategy) NamespaceScoped ¶
func (CollapseConfigurationStrategy) NamespaceScoped() bool
NamespaceScoped declares the resource as cluster-scoped.
func (CollapseConfigurationStrategy) PrepareForCreate ¶
func (CollapseConfigurationStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)
func (CollapseConfigurationStrategy) PrepareForUpdate ¶
func (CollapseConfigurationStrategy) PrepareForUpdate(_ context.Context, _, _ runtime.Object)
func (CollapseConfigurationStrategy) Validate ¶
func (CollapseConfigurationStrategy) Validate(_ context.Context, obj runtime.Object) field.ErrorList
Validate runs spec-level checks on a Create. Returns an empty list when the object is well-formed.
func (CollapseConfigurationStrategy) ValidateUpdate ¶
func (CollapseConfigurationStrategy) ValidateUpdate(_ context.Context, obj, _ runtime.Object) field.ErrorList
ValidateUpdate runs the same spec-level checks as Validate; the spec is fully mutable on update.