package
1.6.0-alpha.0
Repository: https://github.com/libnux/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package filters contains all the http handler chain filters which _are_ api related.
No description provided by the author
No description provided by the author
Package request contains everything around extracting info from a http request object.
No description provided by the author

# Functions

Adds a service to return the supported api versions at the legacy /api.
Adds a service to return the supported resources, E.g., a such web service will be registered at /apis/extensions/v1.
APIVersionHandler returns a handler which will list the provided versions as available.
ConnectResource returns a function that handles a connect request on a rest.Storage object.
CreateNamedResource returns a function that will handle a resource creation with name.
CreateResource returns a function that will handle a resource creation.
DeleteCollection returns a function that will handle a collection deletion.
DeleteResource returns a function that will handle a resource deletion.
GetResource returns a function that handles retrieving a single resource from a rest.Storage object.
GetResourceWithOptions returns a function that handles retrieving a single resource from a rest.Storage object.
GroupHandler returns a handler which will return the api.GroupAndVersion of the group.
TODO: needs to perform response type negotiation, this is probably the wrong way to recover panics.
No description provided by the author
No description provided by the author
ListResource returns a function that handles retrieving a list of resources from a rest.Storage object.
NewApisWebService returns a webservice serving the available api version under /apis.
NewGroupWebService returns a webservice serving the supported versions, preferred version, and name of a group.
PatchResource returns a function that will handle a resource patch TODO: Eventually PatchResource should just use GuaranteedUpdate and this routine should be a bit cleaner.
RootAPIHandler returns a handler which will list the provided groups and versions as available.
SupportedResourcesHandler returns a handler which will list the provided resources as available.
UpdateResource returns a function that will handle a resource update.
WriteRawJSON writes a non-API object in JSON.

# Constants

MaxPatchConflicts is the maximum number of conflicts retry for during a patch operation before returning failure.
Maximum duration before timing out read/write requests.
Minimum duration before timing out read/write requests.

# Structs

APIGroupVersion is a helper for exposing rest.Storage objects as http.Handlers via go-restful It handles URLs of the form: /${storage_key}[/${object_name}] Where 'storage_key' points to a rest.Storage object stored in storage.
No description provided by the author
ProxyHandler provides a http.Handler which will proxy traffic to locations specified by items implementing Redirector.
RequestScope encapsulates common fields across all RESTful handler methods.
No description provided by the author
No description provided by the author
StripVersionNegotiatedSerializer will return stripVersionEncoder when EncoderForVersion is called.
WatchServer serves a watch.Interface over a websocket or vanilla HTTP.

# Interfaces

No description provided by the author
ScopeNamer handles accessing names from requests and objects.

# Type aliases

ContextFunc returns a Context given a request - a context must be returned.
No description provided by the author
No description provided by the author