Documentation
¶
Index ¶
- Constants
- Variables
- func BrowserSessionCapabilities(hasExport bool) []string
- func ExportSessionFile(source *os.File, info os.FileInfo, target config.ExportTarget, ownerID string) (string, int64, error)
- func LoadSessionFilePolicy(session ws.SessionInfo, effectiveHome string) (sessionFilePolicy, error)
- func OpenSessionFile(session ws.SessionInfo, policy sessionFilePolicy, userPaths []string, ...) (*os.File, string, os.FileInfo, error)
- func ResolveOwnedActiveSession(req ws.TunnelRequest, sessionID string, sessions []ws.SessionInfo, ...) (ws.SessionInfo, error)
- func ResolveOwnedSessionFileTarget(req ws.TunnelRequest, sessionID string, sessions []ws.SessionInfo, ...) (ws.SessionInfo, sessionFilePolicy, error)
- func StreamSessionFile(ctx context.Context, file *os.File, path string, info os.FileInfo, ...) error
- func StreamSessionFileError(gcm cipher.AEAD, requestID, message string, write ws.PTYWriteFunc) error
Constants ¶
View Source
const ( MaxSessionUploadSize = 25 << 20 MaxSessionUploadChunk = 128 << 10 MaxSessionDownloadSize = 100 << 20 )
Variables ¶
View Source
var SessionUploads = newSessionUploadRegistry()
Functions ¶
func ExportSessionFile ¶
func LoadSessionFilePolicy ¶
func LoadSessionFilePolicy(session ws.SessionInfo, effectiveHome string) (sessionFilePolicy, error)
func OpenSessionFile ¶
func ResolveOwnedActiveSession ¶
func ResolveOwnedActiveSession(req ws.TunnelRequest, sessionID string, sessions []ws.SessionInfo, userPaths []string) (ws.SessionInfo, error)
func ResolveOwnedSessionFileTarget ¶
func ResolveOwnedSessionFileTarget(req ws.TunnelRequest, sessionID string, sessions []ws.SessionInfo, userPaths []string, effectiveHome string) (ws.SessionInfo, sessionFilePolicy, error)
func StreamSessionFile ¶
func StreamSessionFileError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.