package
0.12.6
Repository: https://github.com/charmbracelet/charm.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CharmUserMiddleware looks up and authenticates a Charm user based on the provided JWT in the request.
DefaultConfig returns a Config with the values populated with the defaults or specified environment variables.
JWTMiddleware creates a new middleware function that will validate JWT tokens based on the supplied public key.
NewHTTPServer returns a new *HTTPServer with the specified Config.
NewJSONWebKeyPair creates a new JSONWebKeyPair from a given ED25519 private key.
NewServer returns a *Server with the specified Config.
NewSSHServer creates a new SSHServer from the provided Config.
PublicPrefixesMiddleware allows for the specification of non-authed URL prefixes.
RequestLimitMiddleware limits the request body size to the specified limit.

# Variables

# Structs

Config is the configuration for the Charm server.
HTTPServer is the HTTP server for the Charm Cloud backend.
JSONWebKeyPair holds the ED25519 private key and JSON Web Key used in JWT operations.
Server contains the SSH and HTTP servers required to host the Charm Cloud.
Session represents a Charm User's SSH session.
SSHLinker implments proto.LinkTransport for the Charm SSH server.
SSHServer serves the SSH protocol and handles requests to authenticate and link Charm user accounts.

# Type aliases

SessionHandler defines a function that handles a session for a given SSH command.