Documentation
¶
Index ¶
Constants ¶
const (
DefaultPort = 22022
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager owns the lifecycle of the embedded SSH server.
func GetManager ¶
func GetManager() *Manager
GetManager returns the package-level SSH server manager singleton.
func (*Manager) Start ¶
func (m *Manager) Start(identityMap map[string]models.PeerIdentity, authorizedIdentities map[string]models.SSHAuthorizedIdentity) error
Start (re)records the manager's known peer identities and, if the server isn't already running, starts the listener.