Skip to content

Commit 3f7c6c8

Browse files
authored
Merge pull request #1300 from mmacy/1299-trust-inspect-typo
Fix 'trust inspect' typo: "AdminstrativeKeys"
2 parents 5706f95 + c11acdd commit 3f7c6c8

9 files changed

Lines changed: 21 additions & 21 deletions

cli/command/trust/common.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ type trustTagRow struct {
3131

3232
// trustRepo represents consumable information about a trusted repository
3333
type trustRepo struct {
34-
Name string
35-
SignedTags []trustTagRow
36-
Signers []trustSigner
37-
AdminstrativeKeys []trustSigner
34+
Name string
35+
SignedTags []trustTagRow
36+
Signers []trustSigner
37+
AdministrativeKeys []trustSigner
3838
}
3939

4040
// trustSigner represents a trusted signer in a trusted repository

cli/command/trust/inspect.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ func getRepoTrustInfo(cli command.Cli, remote string) ([]byte, error) {
107107
sort.Slice(adminList, func(i, j int) bool { return adminList[i].Name > adminList[j].Name })
108108

109109
return json.Marshal(trustRepo{
110-
Name: remote,
111-
SignedTags: signatureRows,
112-
Signers: signerList,
113-
AdminstrativeKeys: adminList,
110+
Name: remote,
111+
SignedTags: signatureRows,
112+
Signers: signerList,
113+
AdministrativeKeys: adminList,
114114
})
115115
}

cli/command/trust/testdata/trust-inspect-empty-repo.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Name": "reg/img:unsigned-tag",
44
"SignedTags": [],
55
"Signers": [],
6-
"AdminstrativeKeys": [
6+
"AdministrativeKeys": [
77
{
88
"Name": "Root",
99
"Keys": [

cli/command/trust/testdata/trust-inspect-full-repo-no-signers.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"Signers": [],
14-
"AdminstrativeKeys": [
14+
"AdministrativeKeys": [
1515
{
1616
"Name": "Root",
1717
"Keys": [

cli/command/trust/testdata/trust-inspect-full-repo-with-signers.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
]
4444
}
4545
],
46-
"AdminstrativeKeys": [
46+
"AdministrativeKeys": [
4747
{
4848
"Name": "Root",
4949
"Keys": [

cli/command/trust/testdata/trust-inspect-multiple-repos-with-signers.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
]
4444
}
4545
],
46-
"AdminstrativeKeys": [
46+
"AdministrativeKeys": [
4747
{
4848
"Name": "Root",
4949
"Keys": [
@@ -106,7 +106,7 @@
106106
]
107107
}
108108
],
109-
"AdminstrativeKeys": [
109+
"AdministrativeKeys": [
110110
{
111111
"Name": "Root",
112112
"Keys": [

cli/command/trust/testdata/trust-inspect-one-tag-no-signers.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"Signers": [],
14-
"AdminstrativeKeys": [
14+
"AdministrativeKeys": [
1515
{
1616
"Name": "Root",
1717
"Keys": [

cli/command/trust/testdata/trust-inspect-unsigned-tag-with-signers.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
]
2121
}
2222
],
23-
"AdminstrativeKeys": [
23+
"AdministrativeKeys": [
2424
{
2525
"Name": "Root",
2626
"Keys": [

docs/reference/commandline/trust_inspect.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $ docker trust inspect alpine:latest
5353
}
5454
],
5555
"Signers": [],
56-
"AdminstrativeKeys": [
56+
"AdministrativeKeys": [
5757
{
5858
"Name": "Repository",
5959
"Keys": [
@@ -131,7 +131,7 @@ $ docker trust inspect my-image:purple
131131
]
132132
}
133133
],
134-
"AdminstrativeKeys": [
134+
"AdministrativeKeys": [
135135
{
136136
"Name": "Repository",
137137
"Keys": [
@@ -170,7 +170,7 @@ $ docker trust inspect alpine:unsigned
170170
{
171171
"Name": "alpine:unsigned",
172172
"Signers": [],
173-
"AdminstrativeKeys": [
173+
"AdministrativeKeys": [
174174
{
175175
"Name": "Repository",
176176
"Keys": [
@@ -233,7 +233,7 @@ $ docker trust inspect alpine
233233
}
234234
],
235235
"Signers": [],
236-
"AdminstrativeKeys": [
236+
"AdministrativeKeys": [
237237
{
238238
"Name": "Repository",
239239
"Keys": [
@@ -304,7 +304,7 @@ $ docker trust inspect alpine notary
304304
}
305305
],
306306
"Signers": [],
307-
"AdminstrativeKeys": [
307+
"AdministrativeKeys": [
308308
{
309309
"Name": "Repository",
310310
"Keys": [
@@ -342,7 +342,7 @@ $ docker trust inspect alpine notary
342342
}
343343
],
344344
"Signers": [],
345-
"AdminstrativeKeys": [
345+
"AdministrativeKeys": [
346346
{
347347
"Name": "Root",
348348
"Keys": [

0 commit comments

Comments
 (0)