remote

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSH

func SSH(function func(Connection) error) error

func SSHExecuteGoEnum

func SSHExecuteGoEnum(ssh Connection) error

func SSHTmpfsExecuteGoEnum

func SSHTmpfsExecuteGoEnum(ssh Connection) error

Types

type Connection

type Connection struct {
	Client *ssh.Client
	Mode   *ssh.TerminalModes
}

func (*Connection) Scp

func (c *Connection) Scp(source string, destination string) error

func (*Connection) Shell

func (c *Connection) Shell(command string) (string, string, error)

func (*Connection) ShellOutput

func (c *Connection) ShellOutput(command string) error

func (*Connection) TemporaryFileCopy

func (c *Connection) TemporaryFileCopy(source string, destination string, function func(string, string) error, params string) error

func (*Connection) Tmpfs

func (c *Connection) Tmpfs(function func(string) error) error

Jump to

Keyboard shortcuts

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