Versions in this module Expand all Collapse all v0 v0.19.0 Jun 9, 2015 Changes in this version + const MaxTimeoutSecs + const MinTimeoutSecs + const ModeABAC + const ModeAlwaysAllow + const ModeAlwaysDeny + const RetryAfter + var AuthorizationModeChoices = []string + func APIVersionHandler(versions ...string) restful.RouteFunction + func AddApiWebService(container *restful.Container, apiPrefix string, versions []string) + func CORS(handler http.Handler, allowedOriginPatterns []*regexp.Regexp, ...) http.Handler + func ConnectResource(connecter rest.Connecter, scope RequestScope, admit admission.Interface, ...) restful.RouteFunction + func CreateNamedResource(r rest.NamedCreater, scope RequestScope, typer runtime.ObjectTyper, ...) restful.RouteFunction + func CreateResource(r rest.Creater, scope RequestScope, typer runtime.ObjectTyper, ...) restful.RouteFunction + func DeleteResource(r rest.GracefulDeleter, checkBody bool, scope RequestScope, ...) restful.RouteFunction + func GetResource(r rest.Getter, scope RequestScope) restful.RouteFunction + func GetResourceWithOptions(r rest.GetterWithOptions, scope RequestScope, getOptionsKind string, ...) restful.RouteFunction + func IndexHandler(container *restful.Container, muxHelper *MuxHelper) func(http.ResponseWriter, *http.Request) + func InstallLogsSupport(mux Mux) + func InstallServiceErrorHandler(container *restful.Container, requestResolver *APIRequestInfoResolver, ...) + func InstallSupport(mux Mux, ws *restful.WebService) + func IsReadOnlyReq(req http.Request) bool + func ListResource(r rest.Lister, rw rest.Watcher, scope RequestScope, forceWatch bool, ...) restful.RouteFunction + func MaxInFlightLimit(c chan bool, longRunningRequestRE *regexp.Regexp, handler http.Handler) http.Handler + func NewAlwaysAllowAuthorizer() authorizer.Authorizer + func NewAlwaysDenyAuthorizer() authorizer.Authorizer + func NewAuthenticator(basicAuthFile, clientCAFile, tokenFile, serviceAccountKeyFile string, ...) (authenticator.Request, error) + func NewAuthorizerFromAuthorizationConfig(authorizationMode string, authorizationPolicyFile string) (authorizer.Authorizer, error) + func PatchResource(r rest.Patcher, scope RequestScope, typer runtime.ObjectTyper, ...) restful.RouteFunction + func RateLimit(rl util.RateLimiter, handler http.Handler) http.Handler + func ReadOnly(handler http.Handler) http.Handler + func RecoverPanics(handler http.Handler) http.Handler + func UpdateResource(r rest.Updater, scope RequestScope, typer runtime.ObjectTyper, ...) restful.RouteFunction + func WithAuthorizationCheck(handler http.Handler, getAttribs RequestAttributeGetter, ...) http.Handler + type APIGroupVersion struct + Admit admission.Interface + Codec runtime.Codec + Context api.RequestContextMapper + Convertor runtime.ObjectConvertor + Creater runtime.ObjectCreater + Linker runtime.SelfLinker + Mapper meta.RESTMapper + Root string + ServerVersion string + Storage map[string]rest.Storage + Typer runtime.ObjectTyper + Version string + func (g *APIGroupVersion) InstallREST(container *RestContainer, ...) error + type APIInstaller struct + func (a *APIInstaller) Install(proxyDialer func(network, addr string) (net.Conn, error)) (ws *restful.WebService, errors []error) + type APIRequestInfo struct + APIVersion string + Kind string + Name string + Namespace string + Parts []string + Raw []string + Resource string + Subresource string + Verb string + type APIRequestInfoResolver struct + APIPrefixes util.StringSet + RestMapper meta.RESTMapper + func (r *APIRequestInfoResolver) GetAPIRequestInfo(req *http.Request) (APIRequestInfo, error) + type Attributes struct + type ContextFunc func(req *restful.Request) api.Context + type Mux interface + Handle func(pattern string, handler http.Handler) + HandleFunc func(pattern string, handler func(http.ResponseWriter, *http.Request)) + type MuxHelper struct + Mux Mux + RegisteredPaths []string + func (m *MuxHelper) Handle(path string, handler http.Handler) + func (m *MuxHelper) HandleFunc(path string, handler func(http.ResponseWriter, *http.Request)) + type ProxyHandler struct + func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type RedirectHandler struct + func (r *RedirectHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type RequestAttributeGetter interface + GetAttribs func(req *http.Request) (attribs authorizer.Attributes) + func NewRequestAttributeGetter(requestContextMapper api.RequestContextMapper, restMapper meta.RESTMapper, ...) RequestAttributeGetter + type RequestScope struct + APIVersion string + Convertor runtime.ObjectConvertor + Creater runtime.ObjectCreater + Kind string + Namer ScopeNamer + Resource string + ServerAPIVersion string + type RestContainer struct + MinRequestTimeout int + type ScopeNamer interface + GenerateLink func(req *restful.Request, obj runtime.Object) (path, query string, err error) + GenerateListLink func(req *restful.Request) (path, query string, err error) + Name func(req *restful.Request) (namespace, name string, err error) + Namespace func(req *restful.Request) (namespace string, err error) + ObjectName func(obj runtime.Object) (namespace, name string, err error) + SetSelfLink func(obj runtime.Object, url string) error + type Server struct + Addr string + EnableHTTPS bool + Path string + Port int + func (server *Server) DoServerCheck(rt http.RoundTripper) (probe.Result, string, error) + type ServerStatus struct + Component string + Err string + Health string + HealthCode probe.Result + Msg string + type WatchServer struct + func (self *WatchServer) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (w *WatchServer) HandleWS(ws *websocket.Conn)