MCPcopy Create free account
hub / github.com/belak/gitdir / GetAdminConfig

Method GetAdminConfig

ssh_server.go:137–142  ·  view source on GitHub ↗

GetAdminConfig returns the current admin config in a thread-safe manner. The config should not be modified.

()

Source from the content-addressed store, hash-verified

135// GetAdminConfig returns the current admin config in a thread-safe manner. The
136// config should not be modified.
137func (serv *Server) GetAdminConfig() *Config {
138 serv.lock.RLock()
139 defer serv.lock.RUnlock()
140
141 return serv.config
142}
143
144func (serv *Server) handlePublicKey(ctx ssh.Context, incomingKey ssh.PublicKey) bool {
145 slog := CtxLogger(ctx).With().

Callers 1

handlePublicKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected