Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Placeholders are used for templated connections Placeholders = map[string]string{ "@@USER_INITIAL_LASTNAME": "{{.FirstNameInitial}}{{.LastName}}", "@@USER_LASTNAME_INITIAL": "{{.LastName}}{{.FirstNameInitial}}", "@@USER_FIRSTNAME_INITIAL": "{{.FirstName}}{{.LastNameInitial}}", "@@USER_FIRSTNAME.@@USER_LASTNAME": "{{.FirstName}}.{{.LastName}}", "@@USER_FIRSTNAME": "{{.FirstName}}", "@@" + cfg.EnvSSHUsername: "{{.FullName}}", } )
Functions ¶
Types ¶
type CachedConnection ¶
type CachedConnection struct {
Config string
}
CachedConnection contains a full config
type Connection ¶
type Connection struct { HostName string Port uint16 User string LocalForward []LocalForward IdentityFile string IdentitiesOnly bool ProxyJump string ServerAliveInterval uint16 ServerAliveCountMax uint16 Cache CachedConnection ControlPath string }
Connection stores the SSH properties
func (*Connection) BuildConnection ¶
func (c *Connection) BuildConnection(args map[string]interface{}, key string, templateUser string) []string
BuildConnection creates the SSH command for execution args : options provided for inspection
type LocalForward ¶
LocalForward stores the port-forwarding details
Click to show internal directories.
Click to hide internal directories.