MCPcopy Index your code
hub / github.com/coder/coder / remoteGPGAgentSocket

Function remoteGPGAgentSocket

cli/ssh.go:1325–1332  ·  view source on GitHub ↗
(sshClient *gossh.Client)

Source from the content-addressed store, hash-verified

1323}
1324
1325func remoteGPGAgentSocket(sshClient *gossh.Client) (string, error) {
1326 remoteSocket, err := runRemoteSSH(sshClient, nil, "gpgconf --list-dir agent-socket")
1327 if err != nil {
1328 return "", xerrors.Errorf("get remote GPG agent socket: %w", err)
1329 }
1330
1331 return string(bytes.TrimSpace(remoteSocket)), nil
1332}
1333
1334type closerWithName struct {
1335 name string

Callers 2

forwardGPGAgentFunction · 0.85
forwardGPGAgentFunction · 0.85

Calls 2

runRemoteSSHFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected