Documentation ¶
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func ToSelectableFields(leasecandidate *coordination.LeaseCandidate) fields.Set
- type LeaseCandidateStrategy
- func (LeaseCandidateStrategy) AllowCreateOnUpdate() bool
- func (LeaseCandidateStrategy) AllowUnconditionalUpdate() bool
- func (LeaseCandidateStrategy) Canonicalize(obj runtime.Object)
- func (LeaseCandidateStrategy) NamespaceScoped() bool
- func (LeaseCandidateStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (LeaseCandidateStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (LeaseCandidateStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (LeaseCandidateStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (LeaseCandidateStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string
- func (LeaseCandidateStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string
Constants ¶
This section is empty.
Variables ¶
var Strategy = LeaseCandidateStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating leasecandidate objects.
Functions ¶
func ToSelectableFields ¶
func ToSelectableFields(leasecandidate *coordination.LeaseCandidate) fields.Set
ToSelectableFields returns a field set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.
Types ¶
type LeaseCandidateStrategy ¶
type LeaseCandidateStrategy struct { runtime.ObjectTyper names.NameGenerator }
LeaseCandidateStrategy implements verification logic for leasecandidates.
func (LeaseCandidateStrategy) AllowCreateOnUpdate ¶
func (LeaseCandidateStrategy) AllowCreateOnUpdate() bool
AllowCreateOnUpdate is true for leasecandidate; this means you may create one with a PUT request.
func (LeaseCandidateStrategy) AllowUnconditionalUpdate ¶
func (LeaseCandidateStrategy) AllowUnconditionalUpdate() bool
AllowUnconditionalUpdate is the default update policy for leasecandidate objects.
func (LeaseCandidateStrategy) Canonicalize ¶
func (LeaseCandidateStrategy) Canonicalize(obj runtime.Object)
Canonicalize normalizes the object after validation.
func (LeaseCandidateStrategy) NamespaceScoped ¶
func (LeaseCandidateStrategy) NamespaceScoped() bool
NamespaceScoped returns true because all leasecandidate' need to be within a namespace.
func (LeaseCandidateStrategy) PrepareForCreate ¶
func (LeaseCandidateStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object)
PrepareForCreate prepares leasecandidate for creation.
func (LeaseCandidateStrategy) PrepareForUpdate ¶
func (LeaseCandidateStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
PrepareForUpdate clears fields that are not allowed to be set by end users on update.
func (LeaseCandidateStrategy) ValidateUpdate ¶
func (LeaseCandidateStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
ValidateUpdate is the default update validation for an end user.
func (LeaseCandidateStrategy) WarningsOnCreate ¶
WarningsOnCreate returns warnings for the creation of the given object.
func (LeaseCandidateStrategy) WarningsOnUpdate ¶
func (LeaseCandidateStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string
WarningsOnUpdate returns warnings for the given update.