package
99.0.0+incompatible
Repository: https://github.com/poy/knative-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
No description provided by the author

# Functions

CheckDeprecated checks whether the provided named deprecated fields are set in a context where deprecation is disallowed.
CheckDeprecated checks whether the provided named deprecated fields are set in a context where deprecation is disallowed.
CheckDisallowedFields compares the request object against a masked request object.
DisallowDeprecated notes on the context that further validation should disallow the used of deprecated fields.
ErrDisallowedFields is a variadic helper method for constructing a FieldError for a set of disallowed fields.
ErrDisallowedUpdateDeprecatedFields is a variadic helper method for constructing a FieldError for updating of deprecated fields.
ErrInvalidArrayValue constructs a FieldError for a repetetive `field` at `index` that has received an invalid string value.
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.
GetBaseline returns the baseline of the update, or nil when we are not within an update context.
GetUserInfo accesses the UserInfo attached to the webhook context.
IsDeprecatedAllowed checks the context to see whether deprecated fields are allowed.
IsInCreate checks whether the context is a Create.
IsInSpec returns whether the context of validation or defaulting is the Spec of the parent resource.
IsInStatus returns whether the context of validation or defaulting is the Status of the parent resource.
IsInStatusUpdate checks whether the context is an Update.
IsInUpdate checks whether the context is an Update.
KindToResource converts a GroupVersionKind to a GroupVersionResource through the world's simplest (worst) pluralizer.
NewBatchConditionSet returns a ConditionSet to hold the conditions for the batch resource.
NewLivingConditionSet returns a ConditionSet to hold the conditions for the living resource.
ParentMeta accesses the ObjectMeta of the enclosing parent resource from the context.
ParseURL attempts to parse the given string as a URL.
ValidateObjectMetadata validates that `metadata` stanza of the resources is correct.
WithinCreate is used to note that the webhook is calling within the context of a Create operation.
WithinParent attaches the ObjectMeta of the resource enclosing the nested resources we are validating.
WithinSpec notes on the context that further validation or defaulting is within the context of a Spec.
WithinStatus notes on the context that further validation or defaulting is within the context of a Status.
WithinSubResourceUpdate is used to note that the webhook is calling within the context of a Update operation on a subresource.
WithinUpdate is used to note that the webhook is calling within the context of a Update operation.
WithUserInfo is used to note that the webhook is calling within the context of a Create operation.

# Constants

ConditionReady specifies that the resource is ready.
ConditionSeverityError specifies that a failure of a condition type should be viewed as an error.
ConditionSeverityInfo specifies that a failure of a condition type should be viewed as purely informational, and that things could still work.
ConditionSeverityWarning specifies that a failure of a condition type should be viewed as a warning, but that things could still work.
ConditionSucceeded specifies that the resource has finished.
CurrentField is a constant to supply as a fieldPath for when there is a problem with the current field itself.

# Structs

Conditions defines a readiness condition for a Knative resource.
ConditionSet is an abstract collection of the possible ConditionType values that a particular resource might expose.
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

Annotatable indicates that a particular type applies various annotations.
ConditionManager allows a resource to operate on its Conditions using higher order operations.
Conditions is the interface for a Resource that implements the getter and setter for accessing a Condition collection.
Convertible indicates that a particular type supports conversions to/from "higher" versions of the same type.
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.

# Type aliases

Conditions is the schema for the conditions portion of the payload.
ConditionSeverity expresses the severity of a Condition Type failing.
ConditionType is a camel-cased condition type.
URL is an alias of url.URL.