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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Adds a service to return the supported api versions at /apis.
Adds a service to return the supported api versions at the legacy /api.
Adds a service to return the supported versions, preferred version, and name of a group.
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.
BasicLongRunningRequestCheck pathRegex operates against the url path, the queryParams match is case insensitive.
ConnectResource returns a function that handles a connect request on a rest.Storage object.
TODO: use restful.CrossOriginResourceSharing Simple CORS implementation that wraps an http Handler For a more detailed implementation use https://github.com/martini-contrib/cors or implement CORS at your proxy layer Pass nil for allowedMethods and allowedHeaders to use the defaults.
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.
No description provided by the author
InstallLogsSupport registers the APIServer log support function into a mux.
TODO: needs to perform response type negotiation, this is probably the wrong way to recover panics.
No description provided by the author
TODO: document all handlers InstallVersionHandler registers the APIServer's `/version` handler.
No description provided by the author
IsReadOnlyReq() is true for any (or at least many) request which has no observable side effects on state of apiserver (though there may be internal side effects like caching and logging).
ListResource returns a function that handles retrieving a list of resources from a rest.Storage object.
MaxInFlight limits the number of in-flight requests to buffer size of the passed in channel.
No description provided by the author
No description provided by the author
NewAuthorizerFromAuthorizationConfig returns the right sort of union of multiple authorizer.Authorizer objects based on the authorizationMode or an error.
NewAttributeGetter returns an object which implements the RequestAttributeGetter interface.
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.
ReadOnly passes all GET requests on to handler, and returns an error on all other requests.
RecoverPanics wraps an http Handler to recover and log panics.
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.
TimeoutHandler returns an http.Handler that runs h with a timeout determined by timeoutFunc.
UpdateResource returns a function that will handle a resource update.
WithAuthorizationCheck passes all authorized requests on to handler, and returns a forbidden error otherwise.
No description provided by the author

# 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.
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
Constant for the retry-after interval on rate limiting.

# Variables

Keep this list in sync with constant list above.
NamespaceSubResourcesForTest exports namespaceSubresources for testing in pkg/master/master_test.go, so we never drift.

# 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
Attributes implements authorizer.Attributes interface.
No description provided by the author
Offers additional functionality over ServeMux, for ex: supports listing registered paths.
ProxyHandler provides a http.Handler which will proxy traffic to locations specified by items implementing Redirector.
RequestInfo holds information parsed from the http.Request.
No description provided by the author
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

mux is an object that can register http handlers.
RequestAttributeGetter is a function that extracts authorizer.Attributes from an http.Request.
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
No description provided by the author