ssh

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConInfoCmd

type ConInfoCmd struct {
	Index           int
	Count           int
	Cmd             []string
	Server          string
	ServerMaxLength int
	Addr            string
	Port            string
	User            string
	Pass            string
	KeyPath         string
	Flag            ConInfoCmdFlag
	Connect         *ssh.Client

	StdinTempPath string
}

func (*ConInfoCmd) CreateConnect added in v0.4.3

func (c *ConInfoCmd) CreateConnect() (conn *ssh.Client, err error)

func (*ConInfoCmd) Run

func (c *ConInfoCmd) Run(conn *ssh.Client) int

exec ssh command function

type ConInfoCmdFlag

type ConInfoCmdFlag struct {
	PesudoTerm bool
	Parallel   bool
}

type ConInfoTerm

type ConInfoTerm struct {
	Log     bool
	LogDir  string
	Server  string
	Addr    string
	Port    string
	User    string
	Pass    string
	KeyPath string
}

func (*ConInfoTerm) Connect

func (c *ConInfoTerm) Connect() (err error)

type RunInfoCmd added in v0.4.3

type RunInfoCmd struct {
	ServerList []string
	ConfList   conf.Config
	Tflag      bool
	Pflag      bool
	ExecCmd    []string
}

func (*RunInfoCmd) ConSshCmd added in v0.4.3

func (r *RunInfoCmd) ConSshCmd() int

remote ssh server exec command only

Jump to

Keyboard shortcuts

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