package
0.0.0-20181214184433-b04c0947ad2f
Repository: https://github.com/rancher/pkg.git
Documentation: pkg.go.dev

# Packages

Package duck defines logic for defining and consuming "duck typed" Kubernetes resources.
No description provided by the author

# Functions

ErrDisallowedFields is a variadic helper method for constructing a FieldError for a set of disallowed fields.
ErrInvalidKeyName is a variadic helper method for constructing a FieldError that specifies a key name that is invalid.
ErrInvalidValue constructs a FieldError for a field that has received an invalid string value.
ErrMissingField is a variadic helper method for constructing a FieldError for a set of missing fields.
ErrMissingOneOf is a variadic helper method for constructing a FieldError for not having at least one field in a mutually exclusive field group.
ErrMultipleOneOf is a variadic helper method for constructing a FieldError for having more than one field set in a mutually exclusive field group.
ErrOutOfBoundsValue constructs a FieldError for a field that has received an out of bound value.
KindToResource converts a GroupVersionKind to a GroupVersionResource through the world's simplest (worst) pluralizer.

# Constants

CurrentField is a constant to supply as a fieldPath for when there is a problem with the current field itself.

# Structs

FieldError is used to propagate the context of errors pertaining to specific fields in a manner suitable for use in a recursive walk, so that errors contain the appropriate field context.
VolatileTime wraps metav1.Time.

# Interfaces

Defaultable defines an interface for setting the defaults for the uninitialized fields of this instance.
Immutable indicates that a particular type has fields that should not change after creation.
Listable indicates that a particular type can be returned via the returned list type by the API server.
Validatable indicates that a particular type may have its fields validated.