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

Method Permissions

session.go:154–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154func (sess *session) Permissions() Permissions {
155 // use context permissions because its properly
156 // wrapped and easier to dereference
157 perms := sess.ctx.Value(ContextKeyPermissions).(*Permissions)
158 return *perms
159}
160
161func (sess *session) Context() Context {
162 return sess.ctx

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected