mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-18 17:08:29 +00:00
Remove unused function (deleteGpgKey)
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
This commit is contained in:
parent
663d0bc99f
commit
1ffd01550a
@ -65,14 +65,6 @@ func gpgCmdEnv(cmd *exec.Cmd) *exec.Cmd {
|
|||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) deleteGpgKey(keyId string) error {
|
|
||||||
out, err := logCmdRun(gpgCmdEnv(exec.Command("gpg", "--batch", "--yes", "--delete-secret-and-public-key", keyId)))
|
|
||||||
if err != nil {
|
|
||||||
s.log.Errorf("failed to delete gpg key: %s", out.String())
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *Server) importGpgKey(armoredKey string) error {
|
func (s *Server) importGpgKey(armoredKey string) error {
|
||||||
cmd := gpgCmdEnv(exec.Command("gpg", "--batch", "--yes", "--import", "-"))
|
cmd := gpgCmdEnv(exec.Command("gpg", "--batch", "--yes", "--import", "-"))
|
||||||
cmd.Stdin = strings.NewReader(armoredKey)
|
cmd.Stdin = strings.NewReader(armoredKey)
|
||||||
|
Loading…
Reference in New Issue
Block a user