Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReservedName = fmt.Errorf("name is a reserved command")
ErrReservedName is returned when a connection name conflicts with a CLI command.
View Source
var ReservedNames = map[string]bool{ "add": true, "rm": true, "list": true, "ls": true, "new": true, "create": true, "edit": true, "delete": true, "reset": true, "help": true, }
ReservedNames are CLI subcommand names that cannot be used as connection names.
Functions ¶
func ValidateName ¶
ValidateName checks whether a connection name conflicts with a CLI command.
Types ¶
type Connection ¶
type Connection struct {
ID int64
Name string
User string
Host string
Port int
Directory string
AuthType AuthType
IdentityFile string
EncryptedPass []byte
PassNonce []byte
CreatedAt string
UpdatedAt string
}
Connection represents a saved SSH connection.
func (Connection) DisplayLabel ¶
func (c Connection) DisplayLabel() string
DisplayLabel returns a formatted label for TUI display.
Click to show internal directories.
Click to hide internal directories.