cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Address  string `json:"Address"`
	Port     int32  `json:"Port"`
	Username string `json:"Username"`
	Password string `json:"Password"`
	Key      string `json:"Key"`
	Group    string `json:"Group"`
	Title    string `json:"Title"`
	Authtype string `json:"Authtype"`
}

func (Host) String

func (host Host) String() string

type Terminal

type Terminal struct {
	Address    string
	Username   string
	Password   string
	PublicKey  string
	Port       int32
	Client     *ssh.Client
	LastResult string
}

func New

func New(address string, username string, password string, publicKey string, port int32) *Terminal

func (*Terminal) RunTerminal

func (t *Terminal) RunTerminal(stdout, stderr io.Writer) error

RunTerminal reader terminal parameters

Jump to

Keyboard shortcuts

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