mirror of https://github.com/docker/cli.git
Merge pull request #1300 from mmacy/1299-trust-inspect-typo
Fix 'trust inspect' typo: "AdminstrativeKeys"
This commit is contained in:
commit
3f7c6c8200
|
@ -31,10 +31,10 @@ type trustTagRow struct {
|
|||
|
||||
// trustRepo represents consumable information about a trusted repository
|
||||
type trustRepo struct {
|
||||
Name string
|
||||
SignedTags []trustTagRow
|
||||
Signers []trustSigner
|
||||
AdminstrativeKeys []trustSigner
|
||||
Name string
|
||||
SignedTags []trustTagRow
|
||||
Signers []trustSigner
|
||||
AdministrativeKeys []trustSigner
|
||||
}
|
||||
|
||||
// trustSigner represents a trusted signer in a trusted repository
|
||||
|
|
|
@ -107,9 +107,9 @@ func getRepoTrustInfo(cli command.Cli, remote string) ([]byte, error) {
|
|||
sort.Slice(adminList, func(i, j int) bool { return adminList[i].Name > adminList[j].Name })
|
||||
|
||||
return json.Marshal(trustRepo{
|
||||
Name: remote,
|
||||
SignedTags: signatureRows,
|
||||
Signers: signerList,
|
||||
AdminstrativeKeys: adminList,
|
||||
Name: remote,
|
||||
SignedTags: signatureRows,
|
||||
Signers: signerList,
|
||||
AdministrativeKeys: adminList,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"Name": "reg/img:unsigned-tag",
|
||||
"SignedTags": [],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
@ -106,7 +106,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
|
@ -53,7 +53,7 @@ $ docker trust inspect alpine:latest
|
|||
}
|
||||
],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Repository",
|
||||
"Keys": [
|
||||
|
@ -131,7 +131,7 @@ $ docker trust inspect my-image:purple
|
|||
]
|
||||
}
|
||||
],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Repository",
|
||||
"Keys": [
|
||||
|
@ -170,7 +170,7 @@ $ docker trust inspect alpine:unsigned
|
|||
{
|
||||
"Name": "alpine:unsigned",
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Repository",
|
||||
"Keys": [
|
||||
|
@ -233,7 +233,7 @@ $ docker trust inspect alpine
|
|||
}
|
||||
],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Repository",
|
||||
"Keys": [
|
||||
|
@ -304,7 +304,7 @@ $ docker trust inspect alpine notary
|
|||
}
|
||||
],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Repository",
|
||||
"Keys": [
|
||||
|
@ -342,7 +342,7 @@ $ docker trust inspect alpine notary
|
|||
}
|
||||
],
|
||||
"Signers": [],
|
||||
"AdminstrativeKeys": [
|
||||
"AdministrativeKeys": [
|
||||
{
|
||||
"Name": "Root",
|
||||
"Keys": [
|
||||
|
|
Loading…
Reference in New Issue