MCPcopy Create free account

hub / github.com/kevinburke/ssh_config / functions

Functions133 in github.com/kevinburke/ssh_config

↓ 38 callersMethodGet
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 callersFunctiontestConfigFinder
(filename string)
config_test.go:41
↓ 14 callersMethodGetStrict
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 callersMethodString
()
config.go:628
↓ 12 callersFunctionDecode
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 callersMethodskip
()
lexer.go:178
↓ 9 callersMethodpeek
()
lexer.go:197
↓ 8 callersMethodGetAllStrict
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 callersMethodraiseErrorf
Formats and panics an error message based on a token
parser.go:24
↓ 7 callersFunctionDefault
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 callersMethodMatches
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 callersFunctionNewPattern
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 callersMethodemitWithValue
(t tokenType, value string)
lexer.go:187
↓ 6 callersFunctionhomedir
()
config.go:63
↓ 6 callersMethodnext
()
lexer.go:128
↓ 5 callersMethodGet
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 callersMethodgetToken
()
parser.go:56
↓ 5 callersFunctionisSpace
(r rune)
token.go:35
↓ 4 callersMethodGetAll
GetAll returns all values in the configuration that match the alias and contains key, or nil if none are present.
config.go:406
↓ 4 callersMethodemit
(t tokenType)
lexer.go:183
↓ 3 callersFunctiondecodeBytes
(b []byte, system bool, depth uint8)
config.go:343
↓ 3 callersFunctionfindAll
(c *Config, alias, key string)
config.go:103
↓ 3 callersFunctionfindVal
(c *Config, alias, key string)
config.go:89
↓ 3 callersFunctionparseFile
(filename string)
config.go:310
↓ 2 callersMethodConfigFinder
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 callersMethoddoLoadConfigs
()
config.go:271
↓ 2 callersMethodfollow
(next string)
lexer.go:206
↓ 2 callersMethodignore
()
lexer.go:172
↓ 2 callersMethodlexComment
(previousState sshLexStateFn)
lexer.go:22
↓ 2 callersFunctionloadFile
(t *testing.T, filename string)
config_test.go:12
↓ 2 callersFunctionmarshal
(c Config)
config.go:446
↓ 2 callersFunctionparseWithDepth
(filename string, depth uint8)
config.go:314
↓ 2 callersMethodpeek
()
parser.go:43
↓ 2 callersFunctionvalidate
(key, val string)
validators.go:69
↓ 1 callersMethodGetAll
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 callersMethodMarshalText
()
config.go:442
↓ 1 callersFunctionNewInclude
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 callersMethodString
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 callersMethodString
String prints k as it was parsed in the config file.
config.go:653
↓ 1 callersFunctionisKeyChar
I'm not sure that this is correct
token.go:44
↓ 1 callersFunctionisKeyStartChar
(r rune)
token.go:39
↓ 1 callersFunctionisSystem
(filename string)
config.go:322
↓ 1 callersFunctionlexSSH
(input []byte)
lexer.go:228
↓ 1 callersFunctionmustBeUint
(lkey string)
validators.go:65
↓ 1 callersFunctionmustBeYesOrNo
(lkey string)
validators.go:61
↓ 1 callersFunctionnewConfig
()
config.go:867
↓ 1 callersMethodparseMatch
(val *token, hasEquals bool, comment string)
parser.go:171
↓ 1 callersFunctionparseSSH
(flow chan token, system bool, depth uint8)
parser.go:250
↓ 1 callersMethodraiseError
(tok *token, err error)
parser.go:29
↓ 1 callersMethodread
()
lexer.go:116
↓ 1 callersFunctionremoveDups
(arr []string)
config.go:731
↓ 1 callersMethodrun
()
parser.go:37
↓ 1 callersMethodrun
()
lexer.go:221
↓ 1 callersFunctionspecial
(b byte)
config.go:473
↓ 1 callersFunctionsystemConfigFinder
()
config.go:85
↓ 1 callersFunctionuserConfigFinder
()
config.go:72
FunctionDecodeBytes
DecodeBytes reads b into a Config, or returns an error if r could not be parsed as an SSH config file.
config.go:339
FunctionExampleDecode
()
example_test.go:31
FunctionExampleDefault
()
example_test.go:43
FunctionExampleHost_Matches
()
example_test.go:11
FunctionExamplePattern
()
example_test.go:21
FunctionExampleUserSettings_ConfigFinder
()
example_test.go:51
FunctionFuzzDecode
(f *testing.F)
fuzz_test.go:11
FunctionGet
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
MethodGet
Get finds the first value in the Include statement matching the alias and the given key.
config.go:801
FunctionGetAll
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
MethodGetAll
GetAll finds all values in the Include statement matching the alias and the given key.
config.go:820
FunctionGetAllStrict
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
FunctionGetStrict
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
MethodInvalid
Invalid returns whether or not the position is valid (i.e. with negative or null values)
position.go:23
MethodPos
()
config.go:627
MethodPos
Pos returns k's Position.
config.go:648
MethodPos
Pos returns e's Position.
config.go:687
MethodPos
Pos returns the position of the Include directive in the larger file.
config.go:795
MethodRead
(p []byte)
parser_test.go:11
MethodString
String returns a string representation of the Config file.
config.go:438
MethodString
String prints the string representation of the pattern.
config.go:463
MethodString
String prints e as it was parsed in the config file.
config.go:692
MethodString
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
MethodString
()
token.go:11
MethodString
String representation of the position. Displays 1-indexed line and column numbers.
position.go:17
FunctionSupportsMultiple
SupportsMultiple reports whether a directive can be specified multiple times.
validators.go:184
FunctionTestCustomFinder
(t *testing.T)
config_test.go:565
FunctionTestDecode
(t *testing.T)
config_test.go:27
FunctionTestDefault
(t *testing.T)
validators_test.go:34
FunctionTestDosLinesEndingsDecode
(t *testing.T)
config_test.go:498
FunctionTestEOLCommentSpacing
(t *testing.T)
config_test.go:538
FunctionTestGet
(t *testing.T)
config_test.go:49
FunctionTestGetAllNotFoundNoDefault
(t *testing.T)
config_test.go:219
FunctionTestGetAllWithDefault
(t *testing.T)
config_test.go:74
FunctionTestGetCaseInsensitive
(t *testing.T)
config_test.go:277
FunctionTestGetEmpty
(t *testing.T)
config_test.go:288
FunctionTestGetEqsign
(t *testing.T)
config_test.go:302
FunctionTestGetExtraSpaces
(t *testing.T)
config_test.go:266
FunctionTestGetIdentities
(t *testing.T)
config_test.go:88
FunctionTestGetInvalidPort
(t *testing.T)
config_test.go:188
FunctionTestGetNotFoundNoDefault
(t *testing.T)
config_test.go:205
FunctionTestGetQuotedValues
(t *testing.T)
config_test.go:133
FunctionTestGetWildcard
(t *testing.T)
config_test.go:233
FunctionTestGetWithDefault
(t *testing.T)
config_test.go:60
next →1–100 of 133, ranked by callers