# Packages
No description provided by the author
# Functions
Date returns the Time corresponding to the supplied parameters by wrapping time.Date.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: remove me when watch is refactored.
FormatLabelSelector convert labelSelector into plain string.
FromAPIVersionAndKind returns a GVK representing the provided fields for types that do not use TypeMeta.
Kind takes an unqualified kind and returns a Group qualified GroupKind.
LabelSelectorAsMap converts the LabelSelector api type into a map of strings, ie.
LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements labels.Selector Note: This function should be kept in sync with the selector methods in pkg/labels/selector.go.
TODO: remove me when watch is refactored.
NewTime returns a wrapped instance of the provided time.
Now returns the current local time.
ParseGroupResource turns "resource.group" string into a GroupResource struct.
ParseGroupVersion turns "group/version" string into a GroupVersion struct.
ParseResourceArg takes the common style of string which may be either `resource.group.com` or `resource.version.group.com` and parses it out into both possibilities.
ParseToLabelSelector parses a string representing a selector into a LabelSelector object.
SetAsLabelSelector converts the labels.Set object into a LabelSelector api object.
Unix returns the local time corresponding to the given Unix time by wrapping time.Unix.
# Constants
CauseTypeFieldValueDuplicate is used to report collisions of values that must be unique (e.g.
CauseTypeFieldValueInvalid is used to report malformed values (e.g.
CauseTypeFieldValueNotFound is used to report failure to find a requested value (e.g.
CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules) values that can not be handled (e.g.
CauseTypeFieldValueRequired is used to report required values that are not provided (e.g.
CauseTypeUnexpectedServerResponse is used to report when the server responded to the client without the expected return type.
No description provided by the author
If you add a new topology domain here, also consider adding it to the set of default values for the scheduler's --failure-domain command-line argument.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Values of Status.Status.
StatusReasonAlreadyExists means the resource you are creating already exists.
StatusReasonBadRequest means that the request itself was invalid, because the request doesn't make any sense, for example deleting a read-only object.
StatusReasonConflict means the requested operation cannot be completed due to a conflict in the operation.
StatusReasonExpired indicates that the request is invalid because the content you are requesting has expired and is no longer available.
StatusReasonForbidden means the server can be reached and understood the request, but refuses to take any further action.
StatusReasonGone means the item is no longer available at the server and no forwarding address is known.
StatusReasonInternalError indicates that an internal error occurred, it is unexpected and the outcome of the call is unknown.
StatusReasonInvalid means the requested create or update operation cannot be completed due to invalid data provided as part of the request.
StatusReasonMethodNotAllowed means that the action the client attempted to perform on the resource was not supported by the code - for instance, attempting to delete a resource that can only be created.
StatusReasonNotFound means one or more resources required for this operation could not be found.
StatusReasonServerTimeout means the server can be reached and understood the request, but cannot complete the action in a reasonable time.
StatusReasonServiceUnavailable means that the request itself was valid, but the requested service is unavailable at this time.
StatusReasonTimeout means that the request could not be completed within the given time.
StatusReasonUnauthorized means the server can be reached and understood the request, but requires the user to present appropriate authorization credentials (identified by the WWW-Authenticate header) in order for the action to be completed.
StatusReasonUnknown means the server has declined to indicate a specific reason.
Values of Status.Status.
# Variables
EmptyObjectKind implements the ObjectKind interface as a noop TODO: this belongs in pkg/runtime, move unversioned.GVK into runtime.
No description provided by the author
No description provided by the author
SchemeGroupVersion is group version used to register these objects.
# Structs
APIGroup contains the name, the supported versions, and the preferred version of a group.
APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.
APIResource specifies the name of a resource and whether it is namespaced.
APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON.
ExportOptions is the query options to the standard REST get call.
GroupKind specifies a Group and a Kind, but does not force a version.
GroupResource specifies a Group and a Resource, but does not force a version.
GroupVersion contains the "group" and the "version", which uniquely identifies the API.
GroupVersion contains the "group/version" and "version" string of a version.
GroupVersionKind unambiguously identifies a kind.
GroupVersionResource unambiguously identifies a resource.
A label selector is a label query over a set of resources.
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
ListMeta describes metadata that synthetic resources must have, including lists and various status objects.
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
RootPaths lists the paths available at root.
ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
Status is a return value for calls that don't return other objects.
StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.
Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling.
TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version.
# Interfaces
List lets you work with list metadata from any of the versioned or internal API objects.
ListMetaAccessor retrieves the list interface from an object TODO: move this, and TypeMeta and ListMeta, to a different package.
All objects that are serialized from a Scheme encode their type information.
Type exposes the type and APIVersion of versioned or internal API objects.
# Type aliases
CauseType is a machine readable value providing more detail about what occurred in a status response.
GroupVersions can be used to represent a set of desired group versions.
A label selector operator is the set of operators that can be used in a selector requirement.
StatusReason is an enumeration of possible failure causes.