Documentation
¶
Index ¶
- Constants
- Variables
- func Run()
- type Config
- type Cp
- type FileLike
- type Group
- type IOClient
- type IOClientType
- type IndexType
- type LocalIOClient
- 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
- type Operation
- type Proxy
- type ProxyType
- type ResType
- type Server
- 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
- type ServerLog
- type SftpIOClient
- 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
- type Upgrade
Constants ¶
View Source
const ( InputCmdOpt int = iota InputCmdServer InputCmdGroupPrefix )
Variables ¶
View Source
var ( Version string Build string )
Functions ¶
Types ¶
type IOClientType ¶
type IOClientType int
type LocalIOClient ¶
type LocalIOClient struct { }
Local
func (*LocalIOClient) Mkdir ¶
func (client *LocalIOClient) Mkdir(path string) error
type Server ¶
type Server struct { Name string `json:"name"` Ip string `json:"ip"` Port int `json:"port"` User string `json:"user"` Password string `json:"password"` Method string `json:"method"` Key string `json:"key"` Options map[string]interface{} `json:"options"` Alias string `json:"alias"` Log ServerLog `json:"log"` Term string `json:"term"` // contains filtered or unexported fields }
func (*Server) FormatPrint ¶
格式化输出,用于打印
func (*Server) GetSftpClient ¶
生成Sftp Client
func (*Server) GetSshClient ¶
生成SSH Client
func (*Server) MergeOptions ¶
合并选项
type ServerIndex ¶
type ServerIndex struct {
// contains filtered or unexported fields
}
type SftpIOClient ¶
SFTP(Remote)
func (*SftpIOClient) Mkdir ¶
func (client *SftpIOClient) Mkdir(path string) error
type TransferObject ¶
type TransferObject struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.