Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SessionContext ¶
type SessionContext struct {
// contains filtered or unexported fields
}
SessionContext is the context for a scp session. It contains the user that started the session as well as the project (determined from the slug in the project path).
func NewSessionContext ¶
func NewSessionContext(user *mcmodel.User) *SessionContext
NewSessionContext creates a new SessionContext. The user is a required parameter and cannot be nil.
Click to show internal directories.
Click to hide internal directories.