b09abef332
allow oss to parse sink duration clean up audit sink parsing ent eventer config reload fix typo SetEnabled to eventer interface client acl test rm dead code fix failing test
37 lines
1 KiB
Go
37 lines
1 KiB
Go
// +build !ent
|
|
|
|
package agent
|
|
|
|
import "net/http"
|
|
|
|
// registerEnterpriseHandlers is a no-op for the oss release
|
|
func (s *HTTPServer) registerEnterpriseHandlers() {
|
|
s.mux.HandleFunc("/v1/namespaces", s.wrap(s.entOnly))
|
|
s.mux.HandleFunc("/v1/namespace", s.wrap(s.entOnly))
|
|
s.mux.HandleFunc("/v1/namespace/", s.wrap(s.entOnly))
|
|
|
|
s.mux.HandleFunc("/v1/sentinel/policies", s.wrap(s.entOnly))
|
|
s.mux.HandleFunc("/v1/sentinel/policy/", s.wrap(s.entOnly))
|
|
|
|
s.mux.HandleFunc("/v1/quotas", s.wrap(s.entOnly))
|
|
s.mux.HandleFunc("/v1/quota-usages", s.wrap(s.entOnly))
|
|
s.mux.HandleFunc("/v1/quota/", s.wrap(s.entOnly))
|
|
s.mux.HandleFunc("/v1/quota", s.wrap(s.entOnly))
|
|
}
|
|
|
|
func (s *HTTPServer) entOnly(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
|
|
return nil, CodedError(501, ErrEntOnly)
|
|
}
|
|
|
|
func (s HTTPServer) auditHandler(h handlerFn) handlerFn {
|
|
return h
|
|
}
|
|
|
|
func (s *HTTPServer) auditByteHandler(h handlerByteFn) handlerByteFn {
|
|
return h
|
|
}
|
|
|
|
func (s *HTTPServer) auditHTTPHandler(h http.Handler) http.Handler {
|
|
return h
|
|
}
|