diff options
author | Miloslav Trmač <mitr@redhat.com> | 2022-08-24 21:08:41 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2022-08-25 00:35:59 +0200 |
commit | 4c5366ee0306777d164dfa6ce02c97e29849d9f2 (patch) | |
tree | fc90d9cd357e98588dd4c1395aad953ee798c00b /pkg/trust | |
parent | 5be00f2270d4da30b0bffb15fca47f0325a963e2 (diff) | |
download | podman-4c5366ee0306777d164dfa6ce02c97e29849d9f2.tar.gz podman-4c5366ee0306777d164dfa6ce02c97e29849d9f2.tar.bz2 podman-4c5366ee0306777d164dfa6ce02c97e29849d9f2.zip |
Make trust.CreateTempFile private
Nothing uses it outside the package.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/trust')
-rw-r--r-- | pkg/trust/policy.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/trust/policy.go b/pkg/trust/policy.go index 9c44f7da2..62950131d 100644 --- a/pkg/trust/policy.go +++ b/pkg/trust/policy.go @@ -51,8 +51,8 @@ func DefaultPolicyPath(sys *types.SystemContext) string { return systemDefaultPolicyPath } -// CreateTmpFile creates a temp file under dir and writes the content into it -func CreateTmpFile(dir, pattern string, content []byte) (string, error) { +// createTmpFile creates a temp file under dir and writes the content into it +func createTmpFile(dir, pattern string, content []byte) (string, error) { tmpfile, err := ioutil.TempFile(dir, pattern) if err != nil { return "", err @@ -83,7 +83,7 @@ func GetGPGIdFromKeyData(key string) []string { logrus.Errorf("%s, error decoding key data", err) return nil } - tmpfileName, err := CreateTmpFile("", "", decodeKey) + tmpfileName, err := createTmpFile("", "", decodeKey) if err != nil { logrus.Errorf("Creating key date temp file %s", err) } |