Documentation ¶
Index ¶
- type ExposureClassStrategy
- func (ExposureClassStrategy) AllowCreateOnUpdate() bool
- func (ExposureClassStrategy) AllowUnconditionalUpdate() bool
- func (ExposureClassStrategy) Canonicalize(obj runtime.Object)
- func (ExposureClassStrategy) NamespaceScoped() bool
- func (ExposureClassStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (ExposureClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (ExposureClassStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (ExposureClassStrategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExposureClassStrategy ¶
type ExposureClassStrategy struct { runtime.ObjectTyper names.NameGenerator }
ExposureClassStrategy define the strategy for storing exposureclasses.
func NewStrategy ¶
func NewStrategy() ExposureClassStrategy
NewStrategy return a storage strategy for exposureclasses.
func (ExposureClassStrategy) AllowCreateOnUpdate ¶
func (ExposureClassStrategy) AllowCreateOnUpdate() bool
AllowCreateOnUpdate indicates if the object can be created via a PUT operation.
func (ExposureClassStrategy) AllowUnconditionalUpdate ¶
func (ExposureClassStrategy) AllowUnconditionalUpdate() bool
AllowUnconditionalUpdate indicates if the object can be updated independently of the resouce version.
func (ExposureClassStrategy) Canonicalize ¶
func (ExposureClassStrategy) Canonicalize(obj runtime.Object)
Canonicalize can be used to transfrom the object into its cannoical format.
func (ExposureClassStrategy) NamespaceScoped ¶
func (ExposureClassStrategy) NamespaceScoped() bool
NamespaceScoped indicates if the object is namespaced scoped.
func (ExposureClassStrategy) PrepareForCreate ¶
func (ExposureClassStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object)
PrepareForCreate mutates the object before creation. It is called before Validate.
func (ExposureClassStrategy) PrepareForUpdate ¶
func (ExposureClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
PrepareForUpdate allows to modify an object before it get stored. It is called before ValidateUpdate.
func (ExposureClassStrategy) ValidateUpdate ¶
func (ExposureClassStrategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList
ValidateUpdate validates the update on the object. The old and the new version of the object are passed in.