clis

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2021 Murray Inc. All Rights Reserved.

2021/10/29 15:10, by m18527, create ----------------------------------- SSH terminal 工具类

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	IP       string
	Username string
	Password string
	Port     int

	LastResult string
	// contains filtered or unexported fields
}

Go实现远程终端

func NewCli

func NewCli(ip string, username string, password string, port ...int) *Cli

创建 SSH Terminal

func (*Cli) RunTerminal

func (c *Cli) RunTerminal(stdout, stderr io.Writer) error

执行 Terminal

Jump to

Keyboard shortcuts

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