domain

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package domain defines core business domain types, constants, and messages.

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"
	HostKeyPathFlagName     string = "host-key-path"
)

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."
	HostKeyPathFlagUsage     string = "Set path to host key file for SSH host key verification."
)

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"
	HostKeyPathFlagDefaultValue     string = ""
)

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"}
	HostKeyPathFlagAliases     = []string{"hkp"}
)

Flag aliases.

View Source
var (
	HostnameFlagEnvVars     = "TELEE_HOSTNAME"
	CommandFlagEnvVars      = "TELEE_COMMAND"
	UsernameFlagEnvVars     = "TELEE_USERNAME"
	PasswordFlagEnvVars     = "TELEE_PASSWORD"
	PrivPasswordFlagEnvVars = "TELEE_PRIVPASSWORD"
	HostKeyPathFlagEnvVars  = "TELEE_HOSTKEYPATH"
)

Flag envvars.

Used for config validation.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL