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

Function localGPGExtraSocket

cli/ssh.go:1316–1323  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1314}
1315
1316func localGPGExtraSocket(ctx context.Context) (string, error) {
1317 localSocket, err := runLocal(ctx, nil, "gpgconf", "--list-dir", "agent-extra-socket")
1318 if err != nil {
1319 return "", xerrors.Errorf("get local GPG agent socket: %w", err)
1320 }
1321
1322 return string(bytes.TrimSpace(localSocket)), nil
1323}
1324
1325func remoteGPGAgentSocket(sshClient *gossh.Client) (string, error) {
1326 remoteSocket, err := runRemoteSSH(sshClient, nil, "gpgconf --list-dir agent-socket")

Callers 2

forwardGPGAgentFunction · 0.85
forwardGPGAgentFunction · 0.85

Calls 2

runLocalFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected