Versions in this module Expand all Collapse all v1 v1.4.0 Aug 10, 2022 v1.3.0 Aug 10, 2022 v1.2.1 Aug 10, 2022 Changes in this version + const InputCmdGroupPrefix + const InputCmdOpt + const InputCmdServer + var Build string + var Version string + func Run() + type Config struct + Groups []*Group + Options map[string]interface{} + Servers []*Server + ShowDetail bool + type Cp struct + type FileLike interface + Close func() error + Name func() string + Read func([]byte) (int, error) + Stat func() (os.FileInfo, error) + Write func(p []byte) (n int, err error) + type Group struct + Collapse bool + GroupName string + Prefix string + Proxy *Proxy + Servers []Server + type IOClient interface + Create func(file string) (FileLike, error) + Mkdir func(path string) error + Open func(file string) (FileLike, error) + ReadDir func(file string) ([]os.FileInfo, error) + Stat func(file string) (os.FileInfo, error) + type IOClientType int + type IndexType int + const IndexTypeGroup + const IndexTypeServer + type LocalIOClient struct + func (client *LocalIOClient) Create(file string) (FileLike, error) + func (client *LocalIOClient) Mkdir(path string) error + func (client *LocalIOClient) Open(file string) (FileLike, error) + func (client *LocalIOClient) ReadDir(file string) ([]os.FileInfo, error) + func (client *LocalIOClient) Stat(file string) (os.FileInfo, error) + type LogMode string + const LogModeAppend + const LogModeCover + type Operation struct + End bool + Key string + Label string + Process func(cfg *Config, args []string) error + type Proxy struct + Password string + Port int + Server string + Type ProxyType + User string + type ProxyType string + const ProxyTypeSocks5 + type ResType int + const ResTypeDst + const ResTypeSrc + type Server struct + Alias string + Ip string + Key string + Log ServerLog + Method string + Name string + Options map[string]interface{} + Password string + Port int + Term string + User string + func (server *Server) Connect() error + func (server *Server) Edit() error + func (server *Server) Format() + func (server *Server) FormatPrint(flag string, ShowDetail bool) string + func (server *Server) GetSftpClient() (*sftp.Client, error) + func (server *Server) GetSshClient() (*ssh.Client, error) + func (server *Server) MergeOptions(options map[string]interface{}, overwrite bool) + type ServerIndex struct + type ServerLog struct + Enable bool + Filename string + Mode LogMode + type SftpIOClient struct + SftpClient *sftp.Client + func (client *SftpIOClient) Create(file string) (FileLike, error) + func (client *SftpIOClient) Mkdir(path string) error + func (client *SftpIOClient) Open(file string) (FileLike, error) + func (client *SftpIOClient) ReadDir(file string) ([]os.FileInfo, error) + func (client *SftpIOClient) Stat(file string) (os.FileInfo, error) + type TransferObject struct + type Upgrade struct + Version string