package
0.21.4
Repository: https://github.com/monopole/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Adds a service to return the supported api versions.
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.
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.
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.
No description provided by the author
InstallLogsSupport registers the APIServer log support function into a mux.
No description provided by the author
TODO: document all handlers InstallSupport registers the APIServer support functions.
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).
IsValidServiceAccountKeyFile returns true if a valid public RSA key can be read from the given file.
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
NewAuthenticator returns an authenticator.Request or an error.
NewAuthorizerFromAuthorizationConfig returns the right sort of authorizer.Authorizer based on the authorizationMode xor 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.
RateLimit uses rl to rate limit accepting requests to 'handler'.
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.
UpdateResource returns a function that will handle a resource update.
WithAuthorizationCheck passes all authorized requests on to handler, and returns a forbidden error otherwise.

# Constants

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

# Variables

Keep this list in sync with constant list above.

# 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
APIRequestInfo holds information parsed from the http.Request.
No description provided by the author
Attributes implements authorizer.Attributes interface.
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.
RequestScope encapsulates common fields across all RESTful handler methods.
No description provided by the author
No description provided by the author
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