# Functions
AuthKey authenticates based on a public key.
Configure creates a new SSH configuration object.
NewCircuit creates a new circuit, in the open (non-functional) state.
NewInMemoryRepositoryLock returns a new instance of a RepositoryLock.
Ping handles a simple test SSH exec.
Serve starts a native SSH server.
# Constants
Address is the context key for SSH address.
ClosedState indicates that the circuit is in the closed state, and thus functional.
HostKeys is the context key for Host Keys list.
OpenState indicates that the circuit is in the open state, and thus non-functional.
ServerConfig is the context key for ServerConfig object.
# Structs
Circuit is a concurrency-safe data structure that can take one of two states at any point in time:
- OpenState - non functional - ClosedState - functional
The circuit is intended as a point-in-time indicator of functionality.
Config represents the required SSH server configuration.
EnvVar is an SSH env request.
ExecCmd is an SSH exec request.
GenericMessage describes a simple string message, which is common in SSH.
# Interfaces
RepositoryLock interface that allows the creation of a lock associated with a repository name to avoid simultaneous git operations.
# Type aliases
CircuitState represents the state of a Circuit.