Documentation ¶
Overview ¶
Package scp handles file uploads and downloads via scp command
Index ¶
Constants ¶
View Source
const ( // OKByte is scp OK message bytes OKByte = 0x0 // WarnByte tells that next goes a warning string WarnByte = 0x1 // ErrByte tells that next goes an error string ErrByte = 0x2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Source bool // data producer Sink bool // data consumer Verbose bool // verbose Target string Recursive bool User *user.User AuditLog events.IAuditLog RemoteAddr string LocalAddr string // terminal is only initialized on the client, for printing the progress Terminal io.Writer }
Command mimics behavior of SCP command line tool to teleport can pretend it launches real scp behind the scenes
type MtimeCmd ¶
func ParseMtime ¶
type NewFileCmd ¶
func ParseNewFile ¶
func ParseNewFile(line string) (*NewFileCmd, error)
Click to show internal directories.
Click to hide internal directories.