server

package
v0.28.0-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

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) HTTPHandle

func (s *Server) HTTPHandle(pattern string, f http.Handler)

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) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Wrap added in v0.8.0

func (s *Server) Wrap(f api.HandlerFunc) http.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL