Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Adembc/lazyssh
/ functions
Functions
299 in github.com/Adembc/lazyssh
⨍
Functions
299
◇
Types & classes
26
↓ 1 callers
Function
pinnedIcon
(pinnedAt time.Time)
internal/adapters/ui/utils.go:76
↓ 1 callers
Method
recordSSH
(alias string)
internal/adapters/data/ssh_config_file/metadata_manager.go:152
↓ 1 callers
Method
removeHostByAlias
removeHostByAlias removes a host by its alias from the list of hosts.
internal/adapters/data/ssh_config_file/crud.go:568
↓ 1 callers
Method
removeKVNode
removeKVNode removes a key-value node from the host if it exists.
internal/adapters/data/ssh_config_file/crud.go:400
↓ 1 callers
Method
renderScrollableTabs
(currentIdx, width int)
internal/adapters/ui/server_form.go:259
↓ 1 callers
Function
renderTagBadgesForList
renderTagBadgesForList renders up to two colored tag chips for the server list. If there are more tags, it appends a subtle gray "+N" badge. Returns a
internal/adapters/ui/utils.go:46
↓ 1 callers
Function
renderTagChips
renderTagChips builds colored tag chips for details view.
internal/adapters/ui/server_details.go:49
↓ 1 callers
Function
resolveSSHDestination
resolveSSHDestination uses `ssh -G <alias>` to extract HostName and Port from the user's SSH config. Returns host, port, ok where ok=false if resoluti
internal/core/services/server_service.go:342
↓ 1 callers
Method
serversDiffer
serversDiffer compares two servers for differences using reflection
internal/adapters/ui/server_form.go:2036
↓ 1 callers
Function
setDetach
setDetach configures SysProcAttr to detach the process on non-Windows platforms.
internal/core/services/sysprocattr_unix.go:8
↓ 1 callers
Method
setPinned
(alias string, pinned bool)
internal/adapters/data/ssh_config_file/metadata_manager.go:134
↓ 1 callers
Method
setupKeyboardShortcuts
Note: toggleHelp and rebuildLayout were removed due to hang issues The help panel is now always visible on the right side
internal/adapters/ui/server_form.go:524
↓ 1 callers
Function
shortCommit
shortCommit returns first 7 chars of commit if it looks valid; otherwise empty string.
internal/adapters/ui/header.go:114
↓ 1 callers
Method
showDeleteConfirmModal
============================================================================= UI Display Functions (show UI elements/modals) =========================
internal/adapters/ui/handlers.go:317
↓ 1 callers
Method
showEditTagsForm
(server domain.Server)
internal/adapters/ui/handlers.go:353
↓ 1 callers
Method
showPortForwardForm
(server domain.Server)
internal/adapters/ui/handlers.go:394
↓ 1 callers
Method
slicesEqual
slicesEqual compares two reflect.Value slices for equality
internal/adapters/ui/server_form.go:2109
↓ 1 callers
Method
toDomainServer
toDomainServer converts ssh_config.Config to a slice of domain.Server.
internal/adapters/data/ssh_config_file/mapper.go:27
↓ 1 callers
Method
updateHostNodes
updateHostNodes updates the nodes of an existing host with new server details.
internal/adapters/data/ssh_config_file/crud.go:262
↓ 1 callers
Method
updateOrAddKVNode
updateOrAddKVNode updates an existing key-value node or adds a new one if it doesn't exist.
internal/adapters/data/ssh_config_file/crud.go:380
↓ 1 callers
Function
validateAddressLabels
validateAddressLabels validates labels in a bind address
internal/adapters/ui/validation.go:698
↓ 1 callers
Method
validateAllFields
validateAllFields validates all fields in the current form
internal/adapters/ui/server_form.go:1024
↓ 1 callers
Function
validateBindHostname
validateBindHostname validates a hostname for bind address (more permissive than regular hostname)
internal/adapters/ui/validation.go:648
↓ 1 callers
Function
validateDynamicForward
validateDynamicForward validates dynamic port forwarding specification
internal/adapters/ui/validation.go:574
↓ 1 callers
Function
validateFilePath
validateFilePath validates a single file path for existence and readability
internal/adapters/ui/validation.go:338
↓ 1 callers
Function
validateHostLabel
validateHostLabel validates a single hostname label
internal/adapters/ui/validation.go:506
↓ 1 callers
Function
validateHostLabels
validateHostLabels validates each label in a hostname
internal/adapters/ui/validation.go:495
↓ 1 callers
Function
validateHostname
validateHostname validates a hostname (not IP)
internal/adapters/ui/validation.go:471
↓ 1 callers
Function
validateKeyPaths
validateKeyPaths validates SSH key file paths (comma-separated)
internal/adapters/ui/validation.go:440
↓ 1 callers
Function
validatePortForward
validatePortForward validates port forwarding specification
internal/adapters/ui/validation.go:520
↓ 1 callers
Method
writeConfigToFile
writeConfigToFile writes the SSH config content to the specified file
internal/adapters/data/ssh_config_file/config_io.go:87
Method
AddServer
(server domain.Server)
internal/core/ports/repositories.go:22
Method
AddServer
AddServer adds a new server to the repository.
internal/core/services/server_service.go:126
Method
AddServer
AddServer adds a new server to the SSH config.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:77
Method
Chmod
(path string, perms os.FileMode)
internal/adapters/data/ssh_config_file/file_system.go:64
Method
Create
(name string)
internal/adapters/data/ssh_config_file/file_system.go:43
Method
DeleteServer
(server domain.Server)
internal/core/ports/repositories.go:23
Method
DeleteServer
DeleteServer removes a server from the repository.
internal/core/services/server_service.go:139
Method
DeleteServer
DeleteServer removes a server from the SSH config.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:138
Method
GetError
GetError gets the error for a specific field
internal/adapters/ui/validation.go:61
Function
GetSSHFieldDefaultWithFallback
GetSSHFieldDefaultWithFallback returns the default value for a given SSH field with a fallback value if no default is defined
internal/adapters/ui/defaults.go:123
Method
IsForwarding
(alias string)
internal/core/ports/services.go:33
Method
IsForwarding
IsForwarding reports whether there is at least one active forward for alias.
internal/core/services/server_service.go:306
Method
IsNotExist
(err error)
internal/adapters/data/ssh_config_file/file_system.go:52
Method
ListServers
(query string)
internal/core/ports/repositories.go:20
Method
ListServers
ListServers returns a list of servers sorted with pinned on top.
internal/core/services/server_service.go:53
Method
ListServers
ListServers returns all servers matching the query pattern. Empty query returns all servers.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:56
Function
NewRepositoryWithFS
NewRepositoryWithFS creates a new SSH config repository with a custom filesystem.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:45
Method
OnSelection
(fn func(server domain.Server))
internal/adapters/ui/server_list.go:87
Method
Open
(name string)
internal/adapters/data/ssh_config_file/file_system.go:38
Method
OpenFile
(path string, i int, perms os.FileMode)
internal/adapters/data/ssh_config_file/file_system.go:68
Method
Ping
Ping checks if the server is reachable on its SSH port.
internal/core/services/server_service.go:313
Method
ReadDir
(dir string)
internal/adapters/data/ssh_config_file/file_system.go:73
Method
RecordSSH
RecordSSH increments the SSH access count and updates the last seen timestamp for a server.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:164
Method
Remove
(file string)
internal/adapters/data/ssh_config_file/file_system.go:56
Method
Rename
(file string, path string)
internal/adapters/data/ssh_config_file/file_system.go:60
Method
Run
()
internal/adapters/ui/tui.go:61
Method
SSH
SSH starts an interactive SSH session to the given alias using the system's ssh client.
internal/core/services/server_service.go:157
Method
SSHWithArgs
SSHWithArgs runs system ssh with provided extra args (e.g., -L/-R/-D) for the given alias.
internal/core/services/server_service.go:177
Method
SetPinned
(alias string, pinned bool)
internal/core/ports/repositories.go:24
Method
SetPinned
SetPinned sets or clears a pin timestamp for the server alias.
internal/core/services/server_service.go:148
Method
SetPinned
SetPinned sets or unsets the pinned status of a server.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:159
Method
StartForward
StartForward starts ssh port forwarding in the background and tracks the process.
internal/core/services/server_service.go:198
Method
Stat
(name string)
internal/adapters/data/ssh_config_file/file_system.go:48
Method
StopForwarding
StopForwarding kills all active forward processes for the alias.
internal/core/services/server_service.go:277
Function
TestBuildSSHCommand_CompleteCommand
(t *testing.T)
internal/adapters/ui/utils_test.go:126
Function
TestBuildSSHCommand_PortForwarding
(t *testing.T)
internal/adapters/ui/utils_test.go:24
Function
TestConvertCLIForwardToConfigFormat
(t *testing.T)
internal/adapters/data/ssh_config_file/crud_test.go:21
Function
TestConvertConfigForwardToCLIFormat
(t *testing.T)
internal/adapters/data/ssh_config_file/crud_test.go:85
Function
TestFieldValidatorPatterns
(t *testing.T)
internal/adapters/ui/validation_test.go:185
Function
TestGetAllCategories
(t *testing.T)
internal/adapters/ui/field_help_test.go:112
Function
TestGetFieldHelp
(t *testing.T)
internal/adapters/ui/field_help_test.go:21
Function
TestGetFieldsByCategory
(t *testing.T)
internal/adapters/ui/field_help_test.go:88
Function
TestHelpContent
(t *testing.T)
internal/adapters/ui/field_help_test.go:139
Function
TestValidateBindAddress
(t *testing.T)
internal/adapters/ui/validation_test.go:105
Function
TestValidateDynamicForward
(t *testing.T)
internal/adapters/ui/validation_test.go:80
Function
TestValidateHost
(t *testing.T)
internal/adapters/ui/validation_test.go:23
Function
TestValidateKeyPaths
(t *testing.T)
internal/adapters/ui/validation_test.go:138
Function
TestValidatePortForward
(t *testing.T)
internal/adapters/ui/validation_test.go:52
Function
TestValidationState_Clear
(t *testing.T)
internal/adapters/ui/validation_test.go:311
Function
TestValidationState_MultipleErrors
(t *testing.T)
internal/adapters/ui/validation_test.go:270
Method
UpdateServer
(server domain.Server, newServer domain.Server)
internal/core/ports/repositories.go:21
Method
UpdateServer
UpdateServer updates an existing server with new details.
internal/core/services/server_service.go:113
Method
UpdateServer
UpdateServer updates an existing server in the SSH config.
internal/adapters/data/ssh_config_file/ssh_config_file_repo.go:98
Method
UpdateServer
(server domain.Server)
internal/adapters/ui/server_details.go:60
Method
blurSearchBar
============================================================================= UI State Management (hide UI elements) =================================
internal/adapters/ui/handlers.go:529
Method
handleGlobalKeys
(event *tcell.EventKey)
internal/adapters/ui/handlers.go:40
Method
handleSaveButton
handleSaveButton is a wrapper for button callback (no return value)
internal/adapters/ui/server_form.go:1872
Method
handleSearchInput
(query string)
internal/adapters/ui/handlers.go:171
Method
handleServerSave
(server domain.Server, original *domain.Server)
internal/adapters/ui/handlers.go:220
Method
handleServerSelectionChange
(server domain.Server)
internal/adapters/ui/handlers.go:196
Function
main
()
cmd/main.go:35
Function
setDetach
setDetach is a no-op on Windows because syscall.SysProcAttr does not have Setsid.
internal/core/services/sysprocattr_windows.go:8
Function
validateConnectTimeout
validateConnectTimeout validates connection timeout
internal/adapters/ui/validation.go:246
Function
validateEscapeChar
validateEscapeChar validates escape character format
internal/adapters/ui/validation.go:291
Function
validateIPQoS
validateIPQoS validates IPQoS values
internal/adapters/ui/validation.go:310
Function
validateKnownHostsFiles
validateKnownHostsFiles validates known_hosts file paths (space-separated)
internal/adapters/ui/validation.go:445
Function
validateNonNegativeNumber
validateNonNegativeNumber validates that a value is a non-negative number
internal/adapters/ui/validation.go:261
Function
validatePasswordPrompts
validatePasswordPrompts validates NumberOfPasswordPrompts
internal/adapters/ui/validation.go:276
← previous
201–299 of 299, ranked by callers