ssh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Stdout chan Out
	Stderr chan Out
	// contains filtered or unexported fields
}

func NewSSHConnection

func NewSSHConnection(name, user, host string, port int, privateKeyPath string) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Run

func (c *Connection) Run(command string) (int, error)

func (*Connection) Upload

func (c *Connection) Upload(src, dest string) (int64, error)

type Out

type Out struct {
	Name      string
	ID        string
	Command   string
	Message   string
	Completed bool
}

Jump to

Keyboard shortcuts

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