(sshClient *gossh.Client)
| 1323 | } |
| 1324 | |
| 1325 | func 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 | |
| 1334 | type closerWithName struct { |
| 1335 | name string |
no test coverage detected