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

Function loadFirstSSHDirectiveValue

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

Source from the content-addressed store, hash-verified

983}
984
985func loadFirstSSHDirectiveValue(directives []sshDirective, key string) (string, bool) {
986 for _, item := range directives {
987 if item.InMatch || !strings.EqualFold(item.Key, key) {
988 continue
989 }
990 return item.Value, true
991 }
992 return "", false
993}
994
995func loadSSHDirectiveValues(directives []sshDirective, key string) []string {
996 var values []string

Callers 1

loadSSHConfigInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected