telnet

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCredentials

func CheckCredentials(address string, password string) error

CheckCredentials sends auth request for remote server. Returns en error if address or password is incorrect.

func Execute

func Execute(address string, password string, command string) (string, error)

Execute sends command to Execute to the remote server and returns the response.

func Interactive

func Interactive(r io.Reader, w io.Writer, address string, password string) error

Interactive parses commands from input reader, executes them on remote server and writes responses to output writer. Password can be empty string. In this case password will be prompted in an interactive window.

Types

This section is empty.

Jump to

Keyboard shortcuts

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