sshexec

package
v0.0.0-...-29e2100 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 2 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address, user string, sshkeyPEM []byte) (*Client, error)

func NewClientFromSSH

func NewClientFromSSH(conn *ssh.Client) *Client

func (*Client) Run

func (c *Client) Run(cmd *Cmd) error

type Cmd

type Cmd struct {
	Command string
	Stdin   io.Reader
	Stdout  io.Writer
	Stderr  io.Writer
}

Jump to

Keyboard shortcuts

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