Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + const StatusUnprocessableEntity + func CORS(handler http.Handler, allowedOriginPatterns []*regexp.Regexp, ...) http.Handler + func Handle(storage map[string]RESTStorage, codec runtime.Codec, prefix string, ...) http.Handler + func InstallLogsSupport(mux mux) + func InstallSupport(mux mux) + func MakeAsync(fn WorkFunc) <-chan runtime.Object + func NewValidator(servers map[string]string) (http.Handler, error) + func RecoverPanics(handler http.Handler) http.Handler + type APIGroup struct + func NewAPIGroup(storage map[string]RESTStorage, codec runtime.Codec, canonicalPrefix string, ...) *APIGroup + func (g *APIGroup) InstallREST(mux mux, paths ...string) + type Operation struct + ID string + func (op *Operation) StatusOrResult() (description runtime.Object, finished bool) + func (op *Operation) WaitFor(timeout time.Duration) + type OperationHandler struct + func (h *OperationHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type Operations struct + func NewOperations() *Operations + func (ops *Operations) Get(id string) *Operation + func (ops *Operations) List() *api.ServerOpList + func (ops *Operations) NewOperation(from <-chan runtime.Object, onReceive func(runtime.Object)) *Operation + type ProxyHandler struct + func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type RESTHandler struct + func (h *RESTHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type RESTStorage interface + Create func(ctx api.Context, obj runtime.Object) (<-chan runtime.Object, error) + Delete func(ctx api.Context, id string) (<-chan runtime.Object, error) + Get func(ctx api.Context, id string) (runtime.Object, error) + List func(ctx api.Context, label, field labels.Selector) (runtime.Object, error) + New func() runtime.Object + Update func(ctx api.Context, obj runtime.Object) (<-chan runtime.Object, error) + type RedirectHandler struct + func (r *RedirectHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type Redirector interface + ResourceLocation func(ctx api.Context, id string) (remoteLocation string, err error) + type ResourceWatcher interface + Watch func(ctx api.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error) + type ServerStatus struct + Component string + Err string + Health string + HealthCode health.Status + Msg string + type WatchHandler struct + func (h *WatchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type WatchServer struct + func (self *WatchServer) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (w *WatchServer) HandleWS(ws *websocket.Conn) + type WorkFunc func() (result runtime.Object, err error)