summaryrefslogtreecommitdiff
path: root/cmd/podman/trust_set_show.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2019-04-05 19:49:36 -0500
committerbaude <bbaude@redhat.com>2019-04-05 20:09:45 -0500
commit23602de816b9ee3e92a8cbac295e955ba43fa283 (patch)
tree8ae6789a7e7e5e52de2270bb3854f01dc55b9949 /cmd/podman/trust_set_show.go
parentbc320be00bc584bd88525266d23a9d5edb9d44f8 (diff)
downloadpodman-23602de816b9ee3e92a8cbac295e955ba43fa283.tar.gz
podman-23602de816b9ee3e92a8cbac295e955ba43fa283.tar.bz2
podman-23602de816b9ee3e92a8cbac295e955ba43fa283.zip
Revert "Switch to golangci-lint"
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/trust_set_show.go')
-rw-r--r--cmd/podman/trust_set_show.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/trust_set_show.go b/cmd/podman/trust_set_show.go
index cd6c4897e..626d27aae 100644
--- a/cmd/podman/trust_set_show.go
+++ b/cmd/podman/trust_set_show.go
@@ -7,6 +7,7 @@ import (
"strings"
"github.com/containers/buildah/pkg/formats"
+ "github.com/containers/image/types"
"github.com/containers/libpod/cmd/podman/cliconfig"
"github.com/containers/libpod/cmd/podman/libpodruntime"
"github.com/containers/libpod/libpod/image"
@@ -236,6 +237,10 @@ func isValidTrustType(t string) bool {
return false
}
+func getDefaultPolicyPath() string {
+ return trust.DefaultPolicyPath(&types.SystemContext{})
+}
+
func getPolicyJSON(policyContentStruct trust.PolicyContent, systemRegistriesDirPath string) (map[string]map[string]interface{}, error) {
registryConfigs, err := trust.LoadAndMergeConfig(systemRegistriesDirPath)
if err != nil {