Documentation ¶
Index ¶
- Constants
- type FileExplorer
- type SSHFileExplorer
- func (fe *SSHFileExplorer) Chmod(path string, code string) error
- func (fe *SSHFileExplorer) Close() error
- func (fe *SSHFileExplorer) Copy(path string, newPath string) error
- func (fe *SSHFileExplorer) Delete(path string) error
- func (fe *SSHFileExplorer) Exec(cmd string) ([]byte, error)
- func (fe *SSHFileExplorer) ExecOnly(cmd string) error
- func (fe *SSHFileExplorer) Init() error
- func (fe *SSHFileExplorer) ListDir(path string) ([]models.ListDirEntry, error)
- func (fe *SSHFileExplorer) Mkdir(path string, name string) error
- func (fe *SSHFileExplorer) Move(path string, newPath string) error
Constants ¶
View Source
const DefaultTimeout = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileExplorer ¶
type SSHFileExplorer ¶
type SSHFileExplorer struct { FileExplorer Host string User string Password string // contains filtered or unexported fields }
func NewSSHFileExplorer ¶
func NewSSHFileExplorer(host string, user string, password string) *SSHFileExplorer
func (*SSHFileExplorer) Close ¶
func (fe *SSHFileExplorer) Close() error
func (*SSHFileExplorer) Delete ¶
func (fe *SSHFileExplorer) Delete(path string) error
func (*SSHFileExplorer) Exec ¶
func (fe *SSHFileExplorer) Exec(cmd string) ([]byte, error)
Execute cmd on the remote host and return stderr and stdout
func (*SSHFileExplorer) ExecOnly ¶
func (fe *SSHFileExplorer) ExecOnly(cmd string) error
func (*SSHFileExplorer) Init ¶
func (fe *SSHFileExplorer) Init() error
func (*SSHFileExplorer) ListDir ¶
func (fe *SSHFileExplorer) ListDir(path string) ([]models.ListDirEntry, error)
Click to show internal directories.
Click to hide internal directories.