exposureclass

package
v1.63.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 7 Imported by: 0

Documentation

Index

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) Validate

Validate allow to validate the object.

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.

func (ExposureClassStrategy) WarningsOnCreate added in v1.34.0

func (ExposureClassStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string

WarningsOnCreate returns warnings to the client performing a create.

func (ExposureClassStrategy) WarningsOnUpdate added in v1.34.0

func (ExposureClassStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string

WarningsOnUpdate returns warnings to the client performing the update.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL