(ctx context.Context)
| 1314 | } |
| 1315 | |
| 1316 | func 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 | |
| 1325 | func remoteGPGAgentSocket(sshClient *gossh.Client) (string, error) { |
| 1326 | remoteSocket, err := runRemoteSSH(sshClient, nil, "gpgconf --list-dir agent-socket") |
no test coverage detected