package
0.12.0
Repository: https://github.com/cnaize/kubernetes.git
Documentation: pkg.go.dev

# Functions

Adds a service to return the supported api versions.
APIVersionHandler returns a handler which will list the provided versions as available.
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.
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 RESTStorage object.
Handle returns a Handler function that exposes the provided storage interfaces as RESTful resources at prefix, serialized by codec, and also includes the support http resources.
No description provided by the author
InstallLogsSupport registers the APIServer log support function into a mux.
TODO: document all handlers InstallSupport registers the APIServer support functions.
TODO: Convert to go-restful.
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 RESTStorage object.
MakeAsync takes a function and executes it, delivering the result in the way required by RESTStorage's Update, Delete, and Create methods.
No description provided by the author
No description provided by the author
NewAPIGroupVersion returns an object that will serve a set of REST resources and their associated operations.
NewAuthenticatorFromTokenFile returns an authenticator.Request or an error.
NewAuthorizerFromAuthorizationConfig returns the right sort of authorizer.Authorizer based on the authorizationMode xor an error.
NewOperations returns a new Operations repository.
NewAttributeGetter returns an object which implements the RequestAttributeGetter interface.
NewValidator creates a validator for a set of servers.
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

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

# Variables

Keep this list in sync with constant list above.

# Structs

APIGroupVersion is a helper for exposing RESTStorage objects as http.Handlers via go-restful It handles URLs of the form: /${storage_key}[/${object_name}] Where 'storage_key' points to a RESTStorage 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.
Operation represents an ongoing action which the server is performing.
Operations tracks all the ongoing operations.
ProxyHandler provides a http.Handler which will proxy traffic to locations specified by items implementing Redirector.
No description provided by the author
RESTResult indicates the result of a REST transformation.
No description provided by the author
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.
Redirector know how to return a remote resource's location.
RequestAttributeGetter is a function that extracts authorizer.Attributes from an http.Request.
ResourceWatcher should be implemented by all RESTStorage objects that want to offer the ability to watch for changes through the watch api.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RESTStorage is a generic interface for RESTful storage services.
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.
WorkFunc is used to perform any time consuming work for an api call, after the input has been validated.