Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kevinburke/ssh_config
/ functions
Functions
133 in github.com/kevinburke/ssh_config
⨍
Functions
133
◇
Types & classes
17
↓ 38 callers
Method
Get
Get finds the first value for key within a declaration that matches the alias. Get returns the empty string if no value was found, or if IgnoreErrors
config.go:173
↓ 26 callers
Function
testConfigFinder
(filename string)
config_test.go:41
↓ 14 callers
Method
GetStrict
GetStrict finds the first value for key within a declaration that matches the alias. If key has a default value and no matching configuration is found
config.go:199
↓ 13 callers
Method
String
()
config.go:628
↓ 12 callers
Function
Decode
Decode reads r into a Config, or returns an error if r could not be parsed as an SSH config file.
config.go:329
↓ 11 callers
Method
skip
()
lexer.go:178
↓ 9 callers
Method
peek
()
lexer.go:197
↓ 8 callers
Method
GetAllStrict
GetAllStrict retrieves zero or more directives for key for the given alias. If key has a default value and no matching configuration is found, the def
config.go:231
↓ 8 callers
Method
raiseErrorf
Formats and panics an error message based on a token
parser.go:24
↓ 7 callers
Function
Default
Default returns the default value for the given keyword, for example "22" if the keyword is "Port". Default returns the empty string if the keyword ha
validators.go:14
↓ 7 callers
Method
Matches
Matches returns true if the Host matches for the given alias. For a description of the rules that provide a match, see the manpage for ssh_config.
config.go:550
↓ 7 callers
Function
NewPattern
NewPattern creates a new Pattern for matching hosts. NewPattern("*") creates a Pattern that matches all hosts. From the manpage, a pattern consists o
config.go:491
↓ 7 callers
Method
emitWithValue
(t tokenType, value string)
lexer.go:187
↓ 6 callers
Function
homedir
()
config.go:63
↓ 6 callers
Method
next
()
lexer.go:128
↓ 5 callers
Method
Get
Get finds the first value in the configuration that matches the alias and contains key. Get returns the empty string if no value was found, or if the
config.go:375
↓ 5 callers
Method
getToken
()
parser.go:56
↓ 5 callers
Function
isSpace
(r rune)
token.go:35
↓ 4 callers
Method
GetAll
GetAll returns all values in the configuration that match the alias and contains key, or nil if none are present.
config.go:406
↓ 4 callers
Method
emit
(t tokenType)
lexer.go:183
↓ 3 callers
Function
decodeBytes
(b []byte, system bool, depth uint8)
config.go:343
↓ 3 callers
Function
findAll
(c *Config, alias, key string)
config.go:103
↓ 3 callers
Function
findVal
(c *Config, alias, key string)
config.go:89
↓ 3 callers
Function
parseFile
(filename string)
config.go:310
↓ 2 callers
Method
ConfigFinder
ConfigFinder will invoke f to try to find a ssh config file in a custom location on disk, instead of in /etc/ssh or $HOME/.ssh. f should return the na
config.go:264
↓ 2 callers
Method
doLoadConfigs
()
config.go:271
↓ 2 callers
Method
follow
(next string)
lexer.go:206
↓ 2 callers
Method
ignore
()
lexer.go:172
↓ 2 callers
Method
lexComment
(previousState sshLexStateFn)
lexer.go:22
↓ 2 callers
Function
loadFile
(t *testing.T, filename string)
config_test.go:12
↓ 2 callers
Function
marshal
(c Config)
config.go:446
↓ 2 callers
Function
parseWithDepth
(filename string, depth uint8)
config.go:314
↓ 2 callers
Method
peek
()
parser.go:43
↓ 2 callers
Function
validate
(key, val string)
validators.go:69
↓ 1 callers
Method
GetAll
GetAll retrieves zero or more directives for key for the given alias. GetAll returns nil if no value was found, or if IgnoreErrors is false and we cou
config.go:187
↓ 1 callers
Method
MarshalText
()
config.go:442
↓ 1 callers
Function
NewInclude
NewInclude creates a new Include with a list of file globs to include. Configuration files are parsed greedily (e.g. as soon as this function runs). A
config.go:750
↓ 1 callers
Method
String
String prints h as it would appear in a config file. Minor tweaks may be present in the whitespace in the printed file.
config.go:571
↓ 1 callers
Method
String
String prints k as it was parsed in the config file.
config.go:653
↓ 1 callers
Function
isKeyChar
I'm not sure that this is correct
token.go:44
↓ 1 callers
Function
isKeyStartChar
(r rune)
token.go:39
↓ 1 callers
Function
isSystem
(filename string)
config.go:322
↓ 1 callers
Function
lexSSH
(input []byte)
lexer.go:228
↓ 1 callers
Function
mustBeUint
(lkey string)
validators.go:65
↓ 1 callers
Function
mustBeYesOrNo
(lkey string)
validators.go:61
↓ 1 callers
Function
newConfig
()
config.go:867
↓ 1 callers
Method
parseMatch
(val *token, hasEquals bool, comment string)
parser.go:171
↓ 1 callers
Function
parseSSH
(flow chan token, system bool, depth uint8)
parser.go:250
↓ 1 callers
Method
raiseError
(tok *token, err error)
parser.go:29
↓ 1 callers
Method
read
()
lexer.go:116
↓ 1 callers
Function
removeDups
(arr []string)
config.go:731
↓ 1 callers
Method
run
()
parser.go:37
↓ 1 callers
Method
run
()
lexer.go:221
↓ 1 callers
Function
special
(b byte)
config.go:473
↓ 1 callers
Function
systemConfigFinder
()
config.go:85
↓ 1 callers
Function
userConfigFinder
()
config.go:72
Function
DecodeBytes
DecodeBytes reads b into a Config, or returns an error if r could not be parsed as an SSH config file.
config.go:339
Function
ExampleDecode
()
example_test.go:31
Function
ExampleDefault
()
example_test.go:43
Function
ExampleHost_Matches
()
example_test.go:11
Function
ExamplePattern
()
example_test.go:21
Function
ExampleUserSettings_ConfigFinder
()
example_test.go:51
Function
FuzzDecode
(f *testing.F)
fuzz_test.go:11
Function
Get
Get finds the first value for key within a declaration that matches the alias. Get returns the empty string if no value was found, or if IgnoreErrors
config.go:118
Method
Get
Get finds the first value in the Include statement matching the alias and the given key.
config.go:801
Function
GetAll
GetAll retrieves zero or more directives for key for the given alias. GetAll returns nil if no value was found, or if IgnoreErrors is false and we cou
config.go:134
Method
GetAll
GetAll finds all values in the Include statement matching the alias and the given key.
config.go:820
Function
GetAllStrict
GetAllStrict retrieves zero or more directives for key for the given alias. In most cases you want to use Get or GetStrict, which returns a single va
config.go:163
Function
GetStrict
GetStrict finds the first value for key within a declaration that matches the alias. If key has a default value and no matching configuration is found
config.go:148
Method
Invalid
Invalid returns whether or not the position is valid (i.e. with negative or null values)
position.go:23
Method
Pos
()
config.go:627
Method
Pos
Pos returns k's Position.
config.go:648
Method
Pos
Pos returns e's Position.
config.go:687
Method
Pos
Pos returns the position of the Include directive in the larger file.
config.go:795
Method
Read
(p []byte)
parser_test.go:11
Method
String
String returns a string representation of the Config file.
config.go:438
Method
String
String prints the string representation of the pattern.
config.go:463
Method
String
String prints e as it was parsed in the config file.
config.go:692
Method
String
String prints out a string representation of this Include directive. Note included Config files are not printed as part of this representation.
config.go:845
Method
String
()
token.go:11
Method
String
String representation of the position. Displays 1-indexed line and column numbers.
position.go:17
Function
SupportsMultiple
SupportsMultiple reports whether a directive can be specified multiple times.
validators.go:184
Function
TestCustomFinder
(t *testing.T)
config_test.go:565
Function
TestDecode
(t *testing.T)
config_test.go:27
Function
TestDefault
(t *testing.T)
validators_test.go:34
Function
TestDosLinesEndingsDecode
(t *testing.T)
config_test.go:498
Function
TestEOLCommentSpacing
(t *testing.T)
config_test.go:538
Function
TestGet
(t *testing.T)
config_test.go:49
Function
TestGetAllNotFoundNoDefault
(t *testing.T)
config_test.go:219
Function
TestGetAllWithDefault
(t *testing.T)
config_test.go:74
Function
TestGetCaseInsensitive
(t *testing.T)
config_test.go:277
Function
TestGetEmpty
(t *testing.T)
config_test.go:288
Function
TestGetEqsign
(t *testing.T)
config_test.go:302
Function
TestGetExtraSpaces
(t *testing.T)
config_test.go:266
Function
TestGetIdentities
(t *testing.T)
config_test.go:88
Function
TestGetInvalidPort
(t *testing.T)
config_test.go:188
Function
TestGetNotFoundNoDefault
(t *testing.T)
config_test.go:205
Function
TestGetQuotedValues
(t *testing.T)
config_test.go:133
Function
TestGetWildcard
(t *testing.T)
config_test.go:233
Function
TestGetWithDefault
(t *testing.T)
config_test.go:60
next →
1–100 of 133, ranked by callers