ssh

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Host       string
	Port       string
	User       string
	PrivateKey string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg config.DeployConfig) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) RunCommandBuffered

func (c *Client) RunCommandBuffered(cmd string) (string, string, error)

func (*Client) RunCommandStreamed

func (c *Client) RunCommandStreamed(cmd string) error

func (*Client) UploadFileSCP

func (c *Client) UploadFileSCP(localPath, remotePath string) error

Jump to

Keyboard shortcuts

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