Documentation
¶
Index ¶
Constants ¶
View Source
const ( EmptyString = "" EmptyArray = 0 )
Defaults
View Source
const ( HostnameFlagName string = "hostname" PortFlagName string = "port" TimeoutFlagName string = "timeout" CommandFlagName string = "command" ExecPlatformFlagName string = "exec-platform" EnableModeFlagName string = "enable-mode" RedundantModeFlagName string = "redundant-mode" SecureModeFlagName string = "secure-mode" DefaultPrivModeFlagName string = "default-privilege-mode" UsernameFlagName string = "username" PasswordFlagName string = "password" PrivPasswordFlagName string = "priv-password" )
Flag names
View Source
const ( HostnameFlagUsage string = "Set hostname or IP address." PortFlagUsage string = "Set port number." TimeoutFlagUsage string = "Set timeout seconds." CommandFlagUsage string = "Set a command." ExecPlatformFlagUsage string = "Set exec-platform. Refer to README.md what to be set." EnableModeFlagUsage string = "Raise to privileged EXEC mode." RedundantModeFlagUsage string = "Use redundant prompt mode." SecureModeFlagUsage string = "Use ssh mode." DefaultPrivModeFlagUsage string = "Use default privileged mode assinged by RADIUS attribute." UsernameFlagUsage string = "Set username." PasswordFlagUsage string = "Set password." PrivPasswordFlagUsage string = "Set password to raise to privileged EXEC mode." )
Flag usages
View Source
const ( PortFlagDefaultValue int64 = 0 TimeoutFlagDefaultValue int64 = 5 ExecPlatformFlagDefaultValue string = "ios" EnableModeFlagDefaultValue bool = false RedundantModeFlagDefaultValue bool = false SecureModeFlagDefaultValue bool = false DefaultPrivModeFlagDefaultValue bool = false UsernameFlagDefaultValue string = "admin" PasswordFlagDefaultValue string = "cisco" PrivPasswordFlagDefaultValue string = "enable" )
Flag values
View Source
const ( HostnameFlagRequired bool = true CommandFlagRequired bool = true )
Flag requireds
View Source
const ( AireOSPlatformName string = "aireos" AlliedWarePlatformName string = "allied" ASASoftwarePlatformName string = "asa" IOSPlatformName string = "ios" IronWarePlatformName string = "foundry" JunOSPlatformName string = "srx" NXOSPlatformName string = "nxos" ScreenOSPlatformName string = "ssg" YamahaOSPlatformName string = "yamaha" )
Used for routing in usecases
View Source
const ( SSHPort int = 22 TelnetPort int = 23 )
ports
View Source
const HintTelnetFailed = `` /* 302-byte string literal not displayed */
HintTelnetFailed invoked when expect was failed
View Source
const (
ProtocolTCP string = "tcp"
)
protocols
Variables ¶
View Source
var ( HostnameFlagAliases = []string{"H"} PortFlagAliases = []string{"P"} TimeoutFlagAliases = []string{"t"} CommandFlagAliases = []string{"C"} ExecPlatformFlagAliases = []string{"x"} EnableModeFlagAliases = []string{"e", "ena", "enable"} RedundantModeFlagAliases = []string{"r", "redundant"} DefaultPrivModeFlagAliases = []string{"d"} SecureModeFlagAliases = []string{"s", "sec", "secure"} UsernameFlagAliases = []string{"u"} PasswordFlagAliases = []string{"p"} PrivPasswordFlagAliases = []string{"pp"} )
Flag aliases
View Source
var ( HostnameFlagEnvVars = "TELEE_HOSTNAME" CommandFlagEnvVars = "TELEE_COMMAND" UsernameFlagEnvVars = "TELEE_USERNAME" PasswordFlagEnvVars = "TELEE_PASSWORD" PrivPasswordFlagEnvVars = "TELEE_PRIVPASSWORD" )
Flag envvars
View Source
var ( Platforms = []string{ AireOSPlatformName, AlliedWarePlatformName, ASASoftwarePlatformName, IOSPlatformName, IronWarePlatformName, JunOSPlatformName, NXOSPlatformName, ScreenOSPlatformName, YamahaOSPlatformName, } )
Used for config validation
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.