Documentation
¶
Index ¶
- func ClientReadFile(client *Connect, file string) (string, error)
- type ByName
- type BySize
- type ByTime
- type Connect
- type FileInfos
- type PathSet
- type RunSftp
- func (r *RunSftp) Completer(t prompt.Document) []prompt.Suggest
- func (r *RunSftp) CreatePrompt() (p string, result bool)
- func (r *RunSftp) Executor(command string)
- func (r *RunSftp) GetLocalComplete(path string)
- func (r *RunSftp) GetRemoteComplete(path string)
- func (r *RunSftp) PathComplete(remote bool, num int, t prompt.Document) []prompt.Suggest
- func (r *RunSftp) SortLsData(c *cli.Context, files []os.FileInfo)
- func (r *RunSftp) Start(confpath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶
type Connect struct {
// ssh connect
Connect *sftp.Client
// Output
Output *output.Output
// Current Directory
Pwd string
}
Connect ...
type RunSftp ¶
type RunSftp struct {
// select server
SelectServer []string
// config
Config conf.Config
// Client
Client map[string]*Connect
// ssh Run
Run *sshl.Run
// now not use. delete at 0.6.1
Permission bool
// progress bar
Progress *mpb.Progress
ProgressWG *sync.WaitGroup
// PathComplete
RemoteComplete []prompt.Suggest
LocalComplete []prompt.Suggest
}
RunSftp ...
func (*RunSftp) CreatePrompt ¶
CreatePrompt creates prompt.
func (*RunSftp) GetLocalComplete ¶
GetLocalComplete ...
func (*RunSftp) GetRemoteComplete ¶
GetRemoteComplete ...
func (*RunSftp) PathComplete ¶
PathComplete ...
func (*RunSftp) SortLsData ¶
SortLsData sorts ...
Click to show internal directories.
Click to hide internal directories.