Discover Packages
github.com/cfstras/pcm
types
package
Version:
v0.0.0-...-1826ff0
Opens a new window with list of versions in this module.
Published: Apr 24, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
lists all connections of config into a path->connection mapping
type Command struct {
Command1 string `xml:"command1"`
Command2 string `xml:"command2"`
Command3 string `xml:"command3"`
Command4 string `xml:"command4"`
Command5 string `xml:"command5"`
}
type Configuration struct {
XMLName xml .Name `xml:"configuration"`
Root Container `xml:"root"`
Version string `xml:"version,attr"`
SavePassword bool `xml:"savepassword,attr"`
}
type Connection struct {
Expanded bool `xml:"-"`
Info Info `xml:"connection_info"`
Login Login `xml:"login"`
Timeout Timeout `xml:"timeout"`
Commands Command `xml:"command"`
Options Options `xml:"options"`
}
func (n *Connection) Path() string
type Container struct {
Expanded bool `xml:"expanded,attr"`
Containers []Container `xml:"container"`
Connections []Connection `xml:"connection"`
}
func (n *Container) Path() string
type Info struct {
Name string `xml:"name"`
Protocol string `xml:"protocol"`
Host string `xml:"host"`
Port uint16 `xml:"port"`
Session string `xml:"session"`
Commandline string `xml:"commandline"`
Description string `xml:"description"`
}
type Login struct {
User string `xml:"login"`
Password string `xml:"password"`
Prompt string `xml:"prompt"`
}
type Node interface {
Path() string
}
type Options struct {
LoginMacro bool `xml:"loginmacro"`
PostCommands bool `xml:"postcommands"`
EndlineChar int `xml:"endlinechar"`
SSHPublicKey string `xml:"ssh_public_key,omitempty"`
}
type Timeout struct {
ConnectionTimeout int `xml:"connectiontimeout"`
LoginTimeout int `xml:"logintimeout"`
PasswordTimeout int `xml:"passwordtimeout"`
CommandTimeout int `xml:"commandtimeout"`
}
Timeouts are in milliseconds
Source Files
¶
Click to show internal directories.
Click to hide internal directories.