aboutsummaryrefslogtreecommitdiff
path: root/pkg/trust
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-23 00:46:51 -0500
committerGitHub <noreply@github.com>2022-02-23 00:46:51 -0500
commitccb96a2791fe9ae58a697bf1715600ecec8b246b (patch)
tree92add99773bfc2f3d68c550e09a46a177d7789b2 /pkg/trust
parentbc0e084f2d909eeeacbe17938cb1ef8dbc90f7a2 (diff)
parent6f7a803d06e1fe5e760fcd87959f3290b7c460d2 (diff)
downloadpodman-ccb96a2791fe9ae58a697bf1715600ecec8b246b.tar.gz
podman-ccb96a2791fe9ae58a697bf1715600ecec8b246b.tar.bz2
podman-ccb96a2791fe9ae58a697bf1715600ecec8b246b.zip
Merge pull request #13247 from rhatdan/trust
Cleanup display of trust with transports
Diffstat (limited to 'pkg/trust')
-rw-r--r--pkg/trust/config.go6
-rw-r--r--pkg/trust/trust.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/trust/config.go b/pkg/trust/config.go
index 164df2a90..6186d4cbd 100644
--- a/pkg/trust/config.go
+++ b/pkg/trust/config.go
@@ -2,11 +2,11 @@ package trust
// Policy describes a basic trust policy configuration
type Policy struct {
- Name string `json:"name"`
+ Transport string `json:"transport"`
+ Name string `json:"name,omitempty"`
RepoName string `json:"repo_name,omitempty"`
Keys []string `json:"keys,omitempty"`
- SignatureStore string `json:"sigstore"`
- Transport string `json:"transport"`
+ SignatureStore string `json:"sigstore,omitempty"`
Type string `json:"type"`
GPGId string `json:"gpg_id,omitempty"`
}
diff --git a/pkg/trust/trust.go b/pkg/trust/trust.go
index 584d1fa02..1d0cc61ba 100644
--- a/pkg/trust/trust.go
+++ b/pkg/trust/trust.go
@@ -21,7 +21,7 @@ import (
// PolicyContent struct for policy.json file
type PolicyContent struct {
Default []RepoContent `json:"default"`
- Transports TransportsContent `json:"transports"`
+ Transports TransportsContent `json:"transports,omitempty"`
}
// RepoContent struct used under each repo