Documentation
¶
Index ¶
- func ParseSSHAddress(sshAddr string) (string, string, string, error)
- type Client
- func (s *Client) C() (*Client, error)
- func (s *Client) Close() error
- func (s *Client) DeleteFiles(path string) error
- func (s *Client) ExecuteCommand(command string) (string, error)
- func (s *Client) ExecuteCommandWithStream(command string, stdout, stderr io.Writer) error
- func (s *Client) MustC() *Client
- func (s *Client) SFTP() *SftpX
- type Option
- type SftpX
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteFiles ¶
func (*Client) ExecuteCommandWithStream ¶
type Option ¶
type Option func(*Client)
func WithPassword ¶
func WithPrivateKeyPath ¶
func WithUsername ¶
type SftpX ¶
type SftpX struct {
*Client
// contains filtered or unexported fields
}
func (*SftpX) DownloadFile ¶
func (*SftpX) SFTPClient ¶
Click to show internal directories.
Click to hide internal directories.