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 ¶
Types ¶
type Command ¶
type Command struct { Source bool // data producer Sink bool // data consumer Verbose bool // verbose TargetIsDir bool // target should be dir Target string Recursive bool User *user.User }
Command mimics behavior of SCP command line tool to teleport can pretend it launches real scp behind the scenes
func ParseCommand ¶
type MtimeCmd ¶
func ParseMtime ¶
type NewFileCmd ¶
func ParseNewFile ¶
func ParseNewFile(line string) (*NewFileCmd, error)
Click to show internal directories.
Click to hide internal directories.