Documentation
¶
Index ¶
- type Server
- func (s *Server) HTTPHandle(pattern string, f http.Handler)
- func (s *Server) HandleFunc(pattern string, f api.HandlerFunc)
- func (s *Server) HandleSCIM(f api.HandlerFunc)
- func (s *Server) ServeDevUI()
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) Wrap(f api.HandlerFunc) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(storageClient storage.Client, gatewayClient *gclient.Client, localK8sClient kclient.Client, obotNamespace string, authn *authn.Authenticator, authz *authz.Authorizer, proxyManager *proxy.Manager, auditLogger audit.Logger, rateLimiter *ratelimiter.RateLimiter, baseURL string, oauthScopesSupported []string, registryNoAuth bool, licenseProvider *license.Provider) *Server
func (*Server) HandleFunc ¶
func (s *Server) HandleFunc(pattern string, f api.HandlerFunc)
func (*Server) HandleSCIM ¶ added in v0.27.0
func (s *Server) HandleSCIM(f api.HandlerFunc)
HandleSCIM serves the SCIM endpoint with f. SCIM requests bypass the mux, which would answer the base URL without a trailing slash, and any path it would clean, such as one with a doubled slash, with a redirect that no SCIM client expects, rather than with a SCIM response.
func (*Server) ServeDevUI ¶ added in v0.27.0
func (s *Server) ServeDevUI()
ServeDevUI tells the server that the UI is served by the Vite dev server, as in dev mode. The dev server loads the UI's modules from its own paths, which must stay reachable while a user has to change their password, or the change-password page can't load.
func (*Server) Wrap ¶ added in v0.8.0
func (s *Server) Wrap(f api.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.