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

Function insertSSHDirectivesAt

agent/app/service/ssh.go:1180–1186  ·  view source on GitHub ↗
(lines []string, insertAt int, directives []string)

Source from the content-addressed store, hash-verified

1178}
1179
1180func insertSSHDirectivesAt(lines []string, insertAt int, directives []string) []string {
1181 newLines := make([]string, 0, len(lines)+len(directives))
1182 newLines = append(newLines, lines[:insertAt]...)
1183 newLines = append(newLines, directives...)
1184 newLines = append(newLines, lines[insertAt:]...)
1185 return newLines
1186}
1187
1188func isSSHConfigPathAllowed(fileName string) bool {
1189 if fileName == "" {

Callers 2

ensureSSHManagedMarkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected