Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPrefixFn = func() string { hostname, err := os.Hostname() if err != nil { fmt.Fprintln(os.Stderr, "Could not get hostname with os.Hostname()") hostname = "unknown" } var username string userobj, err := user.Current() if err != nil { fmt.Fprintln(os.Stderr, "Could not get user with user.Current()") username = "unknown" } else { username = userobj.Username } return fmt.Sprintf("%s@%s", username, hostname) }
Functions ¶
This section is empty.
Types ¶
type FileReq ¶
type FileReq struct { Path string Username string Hostname string ServerConn *ssh.ServerConn IsDir bool // contains filtered or unexported fields }
func NewFileReq ¶
func (*FileReq) RebuildUrls ¶
func (fr *FileReq) RebuildUrls()
type NewChannel ¶
type NewChannel struct { ssh.NewChannel DoZip bool }
Click to show internal directories.
Click to hide internal directories.