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