MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / registerSSHConfigFile

Function registerSSHConfigFile

agent/app/service/ssh.go:927–935  ·  view source on GitHub ↗
(fileName string, fileList *[]sshConfigFile, priority *int)

Source from the content-addressed store, hash-verified

925}
926
927func registerSSHConfigFile(fileName string, fileList *[]sshConfigFile, priority *int) {
928 for _, item := range *fileList {
929 if item.Path == fileName {
930 return
931 }
932 }
933 *priority++
934 *fileList = append(*fileList, sshConfigFile{Path: fileName, Priority: *priority})
935}
936
937func parseSSHConfigLine(line string) (string, string, bool) {
938 line = trimSSHInlineComment(line)

Callers 1

parseSSHConfigFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected