Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(wp *WorkerPool)
func WithContext ¶
func WithDownload ¶
func WithDownload(fn transferFn) Option
func WithMaxSize ¶
func WithUpload ¶
func WithUpload(fn transferFn) Option
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(config *ssh.ClientConfig, ipPort string, opts ...Option) *WorkerPool
NewPool creates a new pool of connections and starts GC. If no configuration is specified (nil), defaults values are used.
func (*WorkerPool) Close ¶
func (p *WorkerPool) Close()
func (*WorkerPool) DownloadFile ¶
func (p *WorkerPool) DownloadFile(src, dest string)
func (*WorkerPool) UploadFile ¶
func (p *WorkerPool) UploadFile(src, dest string)
func (*WorkerPool) Wait ¶
func (p *WorkerPool) Wait() error
Click to show internal directories.
Click to hide internal directories.