Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBuildHandlerChain ¶
DefaultBuildHandlerChain set default filters
Types ¶
type APIServerHandler ¶
type APIServerHandler struct {
FullHandlerChain http.Handler
RestfulContainer *restful.Container
NonRestfulMux *mux.Router
Director http.Handler
}
func NewAPIServerHandler ¶
func NewAPIServerHandler(name string, handlerChainBuilder HandlerChainBuilderFn, notFoundHandler http.Handler) *APIServerHandler
func (*APIServerHandler) ServeHTTP ¶
func (a *APIServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GenericAPIServer ¶
type GenericAPIServer struct {
Handler *APIServerHandler
Storage map[string]rest.Storage
// contains filtered or unexported fields
}
func NewGenericAPIServer ¶
func NewGenericAPIServer(name string, config *config.Config) *GenericAPIServer
func (*GenericAPIServer) Run ¶
func (g *GenericAPIServer) Run(_ <-chan struct{}) error
type Instance ¶
type Instance struct {
GenericAPIServer *GenericAPIServer
AuthenticationInfo *controller.AuthenticationInfo
}
func NewInstance ¶
Click to show internal directories.
Click to hide internal directories.