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

Function loadSSHDirectiveValues

agent/app/service/ssh.go:995–1004  ·  view source on GitHub ↗
(directives []sshDirective, key string)

Source from the content-addressed store, hash-verified

993}
994
995func loadSSHDirectiveValues(directives []sshDirective, key string) []string {
996 var values []string
997 for _, item := range directives {
998 if item.InMatch || !strings.EqualFold(item.Key, key) {
999 continue
1000 }
1001 values = append(values, item.Value)
1002 }
1003 return values
1004}
1005
1006func loadSSHPortValues(directives []sshDirective) []string {
1007 values := loadSSHDirectiveValues(directives, "Port")

Callers 2

loadSSHConfigInfoFunction · 0.85
loadSSHPortValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected