mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Cleanup display of trust with transports
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user