Documentation ¶
Index ¶
- Constants
- Variables
- func AppInit() *cli.App
- func CmdType(cmd string) string
- func FileExist(path string) error
- func FilePathExist(path string) error
- func GetPasswd(masked bool) (string, error)
- func Getch() byte
- func ParseHosts(hosts []string) ([]string, error)
- func StdOutput(outputs []*CmdOutput)
- type AgentPool
- type CmdOutput
- type ConfigStruct
- type CpFile
- type SSHClient
- type SSHOut
- type Signal
- type Stdin
Constants ¶
View Source
const APP_NAME = "elfgate"
View Source
const APP_VERSION = "1.4.0"
Variables ¶
Functions ¶
func FilePathExist ¶
If filepath exists, will auto create one if not exist.
func GetPasswd ¶
getPasswd returns the input read from terminal. If masked is true, typing will be matched by asterisks on the screen. Otherwise, typing will echo nothing.
func ParseHosts ¶
Parse Hosts & add default ssh ports. Supported simple preg, just like: 192.168.1.[1-100]:22.
Types ¶
type AgentPool ¶
type AgentPool struct {
// contains filtered or unexported fields
}
func NewAgentPool ¶
type ConfigStruct ¶
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
SSH connection session instance
func NewSSHClient ¶
type SSHOut ¶
type SSHOut struct {
// contains filtered or unexported fields
}
Getting response from OutputChan
Click to show internal directories.
Click to hide internal directories.