Documentation
¶
Index ¶
- Variables
- func DownloadPathWith(ftp *sftp.Client, remotePath string, localPath string) error
- func UploadPathWith(ftp *sftp.Client, localPath string, remotePath string) error
- type Config
- func (c *Config) DownloadPath(remotePath string, localPath string) error
- func (c *Config) NewSftp() (*sftp.Client, func() error, error)
- func (c *Config) Run(cmd string, timeout ...time.Duration) (string, string, error)
- func (c *Config) StreamLog(ctx context.Context, cmd string, logName string, ...) error
- func (c *Config) UploadPath(localPath string, remotePath string) error
- func (c *Config) Wait(ctx context.Context) error
- type Remote
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = fmt.Errorf("timeout")
Functions ¶
func DownloadPathWith ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.