Documentation ¶
Index ¶
- type Client
- type ClientOption
- type Screen
- type ScreenPip
- type Sftp
- func (obj *Sftp) Close() error
- func (obj *Sftp) Download(remote_path string, local_paths ...string) error
- func (obj *Sftp) DownloadDir(remote_path string, local_path string) error
- func (obj *Sftp) DownloadFile(remote_path string, local_path string) error
- func (obj *Sftp) Upload(local_path string, remote_paths ...string) error
- func (obj *Sftp) UploadDir(local_path string, remote_path string) error
- func (obj *Sftp) UploadFile(local_path string, remote_path string) error
- type Ssh
- func (obj *Ssh) Close() error
- func (obj *Ssh) Run(cmd string) ([]byte, error)
- func (obj *Ssh) SetStdErr(val io.Writer)
- func (obj *Ssh) SetStdIn(val io.Reader)
- func (obj *Ssh) SetStdOut(val io.Writer)
- func (obj *Ssh) StdErrPipe() (io.Reader, error)
- func (obj *Ssh) StdInPipe() (io.WriteCloser, error)
- func (obj *Ssh) StdOutPipe() (io.Reader, error)
- func (obj *Ssh) Term(options ...TermOption) error
- type TermOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(option ClientOption) (*Client, error)
type ClientOption ¶
type Sftp ¶
type Sftp struct {
// contains filtered or unexported fields
}
func (*Sftp) DownloadDir ¶
func (*Sftp) DownloadFile ¶
Click to show internal directories.
Click to hide internal directories.