localhost

package
v0.0.0-...-73fa917 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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) Run

func (c *LocalhostClient) Run(task *entity.Task) error

func (*LocalhostClient) SetRcloneCfg

func (c *LocalhostClient) SetRcloneCfg(config string)

func (*LocalhostClient) SetTube

func (c *LocalhostClient) SetTube(name string)

func (*LocalhostClient) Signal

func (c *LocalhostClient) Signal(sig os.Signal) error

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) Write

func (c *LocalhostClient) Write(p []byte) (n int, err error)

func (*LocalhostClient) WriteClose

func (c *LocalhostClient) WriteClose() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL