Documentation
¶
Index ¶
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchContainerProfile(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, ...) (*registry.REST, error)
- func SelectableFields(obj *softwarecomposition.ContainerProfile) fields.Set
- type ContainerProfileStrategy
- func (ContainerProfileStrategy) AllowCreateOnUpdate() bool
- func (ContainerProfileStrategy) AllowUnconditionalUpdate() bool
- func (ContainerProfileStrategy) Canonicalize(_ runtime.Object)
- func (ContainerProfileStrategy) NamespaceScoped() bool
- func (ContainerProfileStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)
- func (ContainerProfileStrategy) PrepareForUpdate(_ context.Context, obj, old runtime.Object)
- func (ContainerProfileStrategy) Validate(_ context.Context, obj runtime.Object) field.ErrorList
- func (ContainerProfileStrategy) ValidateUpdate(_ context.Context, obj, _ runtime.Object) field.ErrorList
- func (ContainerProfileStrategy) WarningsOnCreate(_ context.Context, _ runtime.Object) []string
- func (ContainerProfileStrategy) WarningsOnUpdate(_ context.Context, _, _ runtime.Object) []string
- type CustomREST
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 ContainerProfile
func MatchContainerProfile ¶ added in v0.0.303
MatchContainerProfile 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.ContainerProfile) fields.Set
SelectableFields returns a field set that represents the object.
Types ¶
type ContainerProfileStrategy ¶ added in v0.0.303
type ContainerProfileStrategy struct {
runtime.ObjectTyper
names.NameGenerator
}
func NewStrategy ¶
func NewStrategy(typer runtime.ObjectTyper) ContainerProfileStrategy
NewStrategy creates and returns a ContainerProfileStrategy instance
func (ContainerProfileStrategy) AllowCreateOnUpdate ¶ added in v0.0.303
func (ContainerProfileStrategy) AllowCreateOnUpdate() bool
func (ContainerProfileStrategy) AllowUnconditionalUpdate ¶ added in v0.0.303
func (ContainerProfileStrategy) AllowUnconditionalUpdate() bool
func (ContainerProfileStrategy) Canonicalize ¶ added in v0.0.303
func (ContainerProfileStrategy) Canonicalize(_ runtime.Object)
func (ContainerProfileStrategy) NamespaceScoped ¶ added in v0.0.303
func (ContainerProfileStrategy) NamespaceScoped() bool
func (ContainerProfileStrategy) PrepareForCreate ¶ added in v0.0.303
func (ContainerProfileStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)
func (ContainerProfileStrategy) PrepareForUpdate ¶ added in v0.0.303
func (ContainerProfileStrategy) PrepareForUpdate(_ context.Context, obj, old runtime.Object)
func (ContainerProfileStrategy) ValidateUpdate ¶ added in v0.0.303
func (ContainerProfileStrategy) WarningsOnCreate ¶ added in v0.0.303
WarningsOnCreate returns warnings for the creation of the given object.
func (ContainerProfileStrategy) WarningsOnUpdate ¶ added in v0.0.303
WarningsOnUpdate returns warnings for the given update.
type CustomREST ¶ added in v0.0.318
type CustomREST = genericrest.Store
CustomREST is a hand-written rest.Storage implementation for ContainerProfile, gated behind config.Config.CustomContainerProfileRestEnabled (see pkg/apiserver/apiserver.go). It talks directly to whatever storage.Interface it's given via NewCustomREST -- it does not reimplement SQLite/file access or the consolidation processor.
func NewCustomREST ¶ added in v0.0.318
func NewCustomREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*CustomREST, error)
NewCustomREST returns the custom rest.Storage implementation for containerprofile. Its signature intentionally matches NewREST's so it can be wired in as a drop-in alternative in pkg/apiserver/apiserver.go, including being passed the same non-default containerProfileStorageImpl storage.Interface NewREST is wired with today.