sessionfiles

package
v0.149.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSessionUploadSize  = 25 << 20
	MaxSessionUploadChunk = 128 << 10

	MaxSessionDownloadSize = 100 << 20
)

Variables

View Source
var SessionUploads = newSessionUploadRegistry()

Functions

func BrowserSessionCapabilities

func BrowserSessionCapabilities(hasExport bool) []string

func ExportSessionFile

func ExportSessionFile(source *os.File, info os.FileInfo, target config.ExportTarget, ownerID string) (string, int64, error)

func LoadSessionFilePolicy

func LoadSessionFilePolicy(session ws.SessionInfo, effectiveHome string) (sessionFilePolicy, error)

func OpenSessionFile

func OpenSessionFile(session ws.SessionInfo, policy sessionFilePolicy, userPaths []string, requested string) (*os.File, string, os.FileInfo, error)

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 StreamSessionFile(ctx context.Context, file *os.File, path string, info os.FileInfo, gcm cipher.AEAD, requestID string, write ws.PTYWriteFunc) error

func StreamSessionFileError

func StreamSessionFileError(gcm cipher.AEAD, requestID, message string, write ws.PTYWriteFunc) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL