telnet

package
v0.0.0-...-aee11aa Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MPL-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 Client

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

func NewClient

func NewClient(config ClientConfig, host, username string, password dsl.PasswordCallback) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Execute

func (c *Client) Execute(command string) (string, error)

type ClientConfig

type ClientConfig struct {
	Prompts []Prompts

	ExpectRepeatedPromptCRLF bool
}

type Prompts

type Prompts struct {
	Account  string
	Password string
	Command  string
}

Jump to

Keyboard shortcuts

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