sshsession

package
v0.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = serrors.New("timed out connecting to ssh daemon")

ErrTimeout is returned when there was a timeout when connecting to SSH daemon.

View Source
var SessionLimit = 5

Functions

func Check

func Check(d *schema.ResourceData) error

func IsConnectTimeout

func IsConnectTimeout(err error) bool

func IsExecError

func IsExecError(err error) bool

func Run

func Run(d *schema.ResourceData, cmd string) ([]byte, []byte, error)

func RunWithStdin

func RunWithStdin(d *schema.ResourceData, cmd string, stdin io.Reader) ([]byte, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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