package
2.7.0+incompatible
Repository: https://github.com/kubernetes/dashboard.git
Documentation: pkg.go.dev
# Functions
CreateAttachHandler is called from main for /api/sockjs.
CreateHTTPAPIHandler creates a new HTTP handler that handles all requests to the API of the backend.
CreateLocaleHandler loads the localization configuration and constructs a LocaleHandler.
InstallFilters installs defined filter for given web service.
MakeGzipHandler adds support for gzip compression for given handler.
WaitForTerminal is called from apihandler.handleAttach as a goroutine Waits for the SockJS connection to be opened by the client the session to be bound in handleTerminalSession.
# Constants
ConfigTemplate is a template of a config.
ConfigTemplateName is a name of config template.
RequestLogString is a template for request log message.
ResponseLogString is a template for response log message.
# Structs
APIHandler is a representation of API handler.
AppConfig is a global configuration of application.
LocaleHandler serves different localized versions of the frontend application based on the Accept-Language header.
Localization is a spec for the localization configuration of dashboard.
SessionMap stores a map of all TerminalSession objects and a lock to avoid concurrent conflict.
TerminalMessage is the messaging protocol between ShellController and TerminalSession.
TerminalResponse is sent by handleExecShell.
TerminalSession implements PtyHandler (using a SockJS connection).
# Interfaces
PtyHandler is what remotecommand expects from a pty.
# Type aliases
AppHandler is an application handler.