seed

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusStrategy

type StatusStrategy struct {
	Strategy
}

StatusStrategy defines the strategy for storing seeds statuses.

func NewStatusStrategy

func NewStatusStrategy(cloudProfiles rest.StandardStorage) StatusStrategy

NewStatusStrategy defines the storage strategy for the status subresource of Seeds.

func (StatusStrategy) PrepareForUpdate

func (s StatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForUpdate is invoked on update before validation to normalize the object. For example: remove fields that are not to be persisted, sort order-insensitive list fields, etc. This should not remove fields whose presence would be considered a validation error.

func (StatusStrategy) ValidateUpdate

func (StatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateUpdate validates the update on the given old and new object.

type Strategy

type Strategy struct {
	runtime.ObjectTyper
	names.NameGenerator

	CloudProfiles rest.StandardStorage
}

Strategy defines the strategy for storing seeds.

func NewStrategy

func NewStrategy(cloudProfiles rest.StandardStorage) Strategy

NewStrategy defines the storage strategy for Seeds.

func (Strategy) AllowCreateOnUpdate

func (Strategy) AllowCreateOnUpdate() bool

AllowCreateOnUpdate returns true if the object can be created by a PUT.

func (Strategy) AllowUnconditionalUpdate

func (Strategy) AllowUnconditionalUpdate() bool

AllowUnconditionalUpdate returns true if the object can be updated unconditionally (irrespective of the latest resource version), when there is no resource version specified in the object.

func (Strategy) Canonicalize

func (Strategy) Canonicalize(obj runtime.Object)

Canonicalize allows an object to be mutated into a canonical form. This ensures that code that operates on these objects can rely on the common form for things like comparison. Canonicalize is invoked after validation has succeeded but before the object has been persisted. This method may mutate the object.

func (Strategy) NamespaceScoped

func (Strategy) NamespaceScoped() bool

NamespaceScoped returns true if the object must be within a namespace.

func (Strategy) PrepareForCreate

func (s Strategy) PrepareForCreate(ctx context.Context, obj runtime.Object)

PrepareForCreate mutates some fields in the object before it's created.

func (Strategy) PrepareForUpdate

func (s Strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForUpdate is invoked on update before validation to normalize the object. For example: remove fields that are not to be persisted, sort order-insensitive list fields, etc. This should not remove fields whose presence would be considered a validation error.

func (Strategy) Validate

func (Strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList

Validate validates the given object.

func (Strategy) ValidateUpdate

func (Strategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList

ValidateUpdate validates the update on the given old and new object.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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