ssh

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig = ssh.ClientConfig // define alias to avoid package name conflict in consumers

type SerialConsole

type SerialConsole struct {
	// contains filtered or unexported fields
}

SerialConsole allows to get the serial console of a machine via SSH.

func NewSerialConsole

func NewSerialConsole(network, addr string, config *ClientConfig) *SerialConsole

func (*SerialConsole) Close

func (o *SerialConsole) Close() error

func (*SerialConsole) Copy

func (o *SerialConsole) Copy(dst io.Writer) error

Copy starts a new SSH session and copies the serial output stdout and stderr to dst. It starts go routines so it won't block. The caller should call Close when done.

Jump to

Keyboard shortcuts

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