Documentation
¶
Index ¶
- type LocalhostClient
- func (c *LocalhostClient) Close() error
- func (c *LocalhostClient) Connect(_ entity.NetworkHost) error
- func (c *LocalhostClient) Download(src, dst string, silent bool) error
- func (c *LocalhostClient) GenerateOnRemote(data []byte) error
- func (c *LocalhostClient) GetHost() string
- func (c LocalhostClient) GetTube() string
- func (c *LocalhostClient) Prefix() (string, int)
- func (c *LocalhostClient) Run(task *entity.Task) error
- func (c *LocalhostClient) SetRcloneCfg(config string)
- func (c *LocalhostClient) SetTube(name string)
- func (c *LocalhostClient) Signal(sig os.Signal) error
- func (c *LocalhostClient) Stderr() io.Reader
- func (c *LocalhostClient) Stdin() io.WriteCloser
- func (c *LocalhostClient) Stdout() io.Reader
- func (c *LocalhostClient) Upload(src, dst string, config string) error
- func (c *LocalhostClient) Wait() error
- func (c *LocalhostClient) Write(p []byte) (n int, err error)
- func (c *LocalhostClient) WriteClose() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalhostClient ¶
type LocalhostClient struct { Host string Env *entity.EnvList //export FOO="bar"; export BAR="baz"; RcloneCfg string // contains filtered or unexported fields }
Client is a wrapper over the SSH connection/sessions.
func (*LocalhostClient) Close ¶
func (c *LocalhostClient) Close() error
func (*LocalhostClient) Connect ¶
func (c *LocalhostClient) Connect(_ entity.NetworkHost) error
func (*LocalhostClient) Download ¶
func (c *LocalhostClient) Download(src, dst string, silent bool) error
func (*LocalhostClient) GenerateOnRemote ¶
func (c *LocalhostClient) GenerateOnRemote(data []byte) error
func (*LocalhostClient) GetHost ¶
func (c *LocalhostClient) GetHost() string
func (LocalhostClient) GetTube ¶
func (c LocalhostClient) GetTube() string
func (*LocalhostClient) Prefix ¶
func (c *LocalhostClient) Prefix() (string, int)
func (*LocalhostClient) SetRcloneCfg ¶
func (c *LocalhostClient) SetRcloneCfg(config string)
func (*LocalhostClient) SetTube ¶
func (c *LocalhostClient) SetTube(name string)
func (*LocalhostClient) Stderr ¶
func (c *LocalhostClient) Stderr() io.Reader
func (*LocalhostClient) Stdin ¶
func (c *LocalhostClient) Stdin() io.WriteCloser
func (*LocalhostClient) Stdout ¶
func (c *LocalhostClient) Stdout() io.Reader
func (*LocalhostClient) Upload ¶
func (c *LocalhostClient) Upload(src, dst string, config string) error
func (*LocalhostClient) Wait ¶
func (c *LocalhostClient) Wait() error
func (*LocalhostClient) WriteClose ¶
func (c *LocalhostClient) WriteClose() error
Click to show internal directories.
Click to hide internal directories.