MCPcopy Create free account
hub / github.com/tailscale/tailcat / sshKeyDir

Function sshKeyDir

tailcat_ssh.go:331–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329}
330
331func sshKeyDir() (string, error) {
332 cfgDir, err := os.UserConfigDir()
333 if err != nil {
334 return "", fmt.Errorf("UserConfigDir: %w", err)
335 }
336 dir := filepath.Join(cfgDir, "tailcat", "ssh")
337 if err := os.MkdirAll(dir, 0700); err != nil {
338 return "", err
339 }
340 return dir, nil
341}
342
343// hostKeyMu protects concurrent generation of host keys with
344// [getHostKeys], making sure two callers don't try to concurrently find

Callers 1

getHostKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected