MCPcopy
hub / github.com/gliderlabs/ssh / PublicKey

Method PublicKey

session.go:146–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (sess *session) PublicKey() PublicKey {
147 sessionkey := sess.ctx.Value(ContextKeyPublicKey)
148 if sessionkey == nil {
149 return nil
150 }
151 return sessionkey.(PublicKey)
152}
153
154func (sess *session) Permissions() Permissions {
155 // use context permissions because its properly

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected