Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { User string `regex:".*"` HostAddress string `regex:"([-.\\da-zA-Z]+)|(\\d+-[\\d:A-Fa-f]+,\\[[^\\]]+\\])"` Port string `regex:"0*([0-5]?\\d{0,4}|6([0-4]\\d{3}|5([0-4]\\d{2}|5([0-2]\\d|3[0-5]))))"` PasswordAuthentication string `regex:"(yes|no)"` PubkeyAuthentication string `regex:"(yes|no)"` StrictHostKeyChecking string `regex:"(yes|no|ask)"` IdentityFile []string `regex:".*"` LocalForward string `regex:".*"` RemoteForward string `regex:".*"` UserKnownHostsFile string `regex:".*"` ProxyCommand string `regex:".*"` }
ClientConfig is a struct containing configuration for the client.
func Create ¶
func Create() *ClientConfig
Create creates a new ClientConfig with the default values.
Click to show internal directories.
Click to hide internal directories.