Documentation ¶
Index ¶
- type CustomResourceStorageStrategy
- func (CustomResourceStorageStrategy) AllowCreateOnUpdate() bool
- func (CustomResourceStorageStrategy) AllowUnconditionalUpdate() bool
- func (CustomResourceStorageStrategy) Canonicalize(obj runtime.Object)
- func (a CustomResourceStorageStrategy) GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func (a CustomResourceStorageStrategy) MatchCustomResourceStorage(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func (a CustomResourceStorageStrategy) NamespaceScoped() bool
- func (CustomResourceStorageStrategy) PrepareForCreate(ctx genericapirequest.Context, obj runtime.Object)
- func (CustomResourceStorageStrategy) PrepareForUpdate(ctx genericapirequest.Context, obj, old runtime.Object)
- func (a CustomResourceStorageStrategy) Validate(ctx genericapirequest.Context, obj runtime.Object) field.ErrorList
- func (CustomResourceStorageStrategy) ValidateUpdate(ctx genericapirequest.Context, obj, old runtime.Object) field.ErrorList
- type REST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomResourceStorageStrategy ¶
type CustomResourceStorageStrategy struct { runtime.ObjectTyper names.NameGenerator // contains filtered or unexported fields }
func NewStrategy ¶
func NewStrategy(typer runtime.ObjectTyper, namespaceScoped bool) CustomResourceStorageStrategy
func (CustomResourceStorageStrategy) AllowCreateOnUpdate ¶
func (CustomResourceStorageStrategy) AllowCreateOnUpdate() bool
func (CustomResourceStorageStrategy) AllowUnconditionalUpdate ¶
func (CustomResourceStorageStrategy) AllowUnconditionalUpdate() bool
func (CustomResourceStorageStrategy) Canonicalize ¶
func (CustomResourceStorageStrategy) Canonicalize(obj runtime.Object)
func (CustomResourceStorageStrategy) MatchCustomResourceStorage ¶
func (a CustomResourceStorageStrategy) MatchCustomResourceStorage(label labels.Selector, field fields.Selector) storage.SelectionPredicate
func (CustomResourceStorageStrategy) NamespaceScoped ¶
func (a CustomResourceStorageStrategy) NamespaceScoped() bool
func (CustomResourceStorageStrategy) PrepareForCreate ¶
func (CustomResourceStorageStrategy) PrepareForCreate(ctx genericapirequest.Context, obj runtime.Object)
func (CustomResourceStorageStrategy) PrepareForUpdate ¶
func (CustomResourceStorageStrategy) PrepareForUpdate(ctx genericapirequest.Context, obj, old runtime.Object)
func (CustomResourceStorageStrategy) Validate ¶
func (a CustomResourceStorageStrategy) Validate(ctx genericapirequest.Context, obj runtime.Object) field.ErrorList
func (CustomResourceStorageStrategy) ValidateUpdate ¶
func (CustomResourceStorageStrategy) ValidateUpdate(ctx genericapirequest.Context, obj, old runtime.Object) field.ErrorList
type REST ¶
type REST struct {
*genericregistry.Store
}
rest implements a RESTStorage for API services against etcd
func NewREST ¶
func NewREST(resource schema.GroupResource, listKind schema.GroupVersionKind, copier runtime.ObjectCopier, strategy CustomResourceStorageStrategy, optsGetter generic.RESTOptionsGetter) *REST
NewREST returns a RESTStorage object that will work against API services.
Click to show internal directories.
Click to hide internal directories.