trust: address review feedback, refactor to align with existing cli/command semantics

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy
2017-09-25 09:34:53 -07:00
parent 007aff70bf
commit 45c102a03d
15 changed files with 253 additions and 193 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ $ docker trust inspect my-image:purple
SIGNED TAG DIGEST SIGNERS
purple 941d3dba358621ce3c41ef67b47cf80f701ff80cdf46b5cc86587eaebfe45557 alice, bob, carol
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 47caae5b3e61, a85aab9d20a4
@@ -123,7 +123,7 @@ yellow 9cc65fc3126790e683d1b92f307a71f48f75fa7dd47a7b03145a123eaf0b
purple 941d3dba358621ce3c41ef67b47cf80f701ff80cdf46b5cc86587eaebfe45557 alice, bob, carol
orange d6c271baa6d271bcc24ef1cbd65abf39123c17d2e83455bdab545a1a9093fc1c alice
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 47caae5b3e61, a85aab9d20a4
+6 -6
View File
@@ -22,7 +22,7 @@ Remove trust for an image
Options:
--help Print usage
-y, --yes Answer yes to the removal question (no confirmation)
-y, --yes Do not prompt for confirmation
```
## Description
@@ -42,7 +42,7 @@ SIGNED TAG DIGEST
red 852cc04935f930a857b630edc4ed6131e91b22073bcc216698842e44f64d2943 alice
blue f1c38dbaeeb473c36716f6494d803fbfbe9d8a76916f7c0093f227821e378197 alice, bob
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
@@ -68,7 +68,7 @@ $ docker trust inspect example/trust-demo
SIGNED TAG DIGEST SIGNERS
blue f1c38dbaeeb473c36716f6494d803fbfbe9d8a76916f7c0093f227821e378197 alice, bob
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
@@ -89,7 +89,7 @@ SIGNED TAG DIGEST
red 852cc04935f930a857b630edc4ed6131e91b22073bcc216698842e44f64d2943 alice
blue f1c38dbaeeb473c36716f6494d803fbfbe9d8a76916f7c0093f227821e378197 alice, bob
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
@@ -104,7 +104,7 @@ When `alice`, one of the signers, runs `docker trust revoke`:
```bash
$ docker trust revoke example/trust-demo
Please confirm you would like to delete all signature data for example/trust-demo? (y/n) y
Please confirm you would like to delete all signature data for example/trust-demo? [y/N] y
Enter passphrase for delegation key with ID 27d42a8:
Successfully deleted signature for example/trust-demo
```
@@ -117,7 +117,7 @@ $ docker trust inspect example/trust-demo
No signatures for example/trust-demo
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
+3 -3
View File
@@ -84,7 +84,7 @@ $ docker trust inspect example/trust-demo
No signatures for example/trust-demo
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
@@ -119,7 +119,7 @@ $ docker trust inspect example/trust-demo
SIGNED TAG DIGEST SIGNERS
v1 74d4bfa917d55d53c7df3d2ab20a8d926874d61c3da5ef6de15dd2654fc467c4 alice
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
@@ -168,7 +168,7 @@ $ docker trust inspect example/trust-demo
SIGNED TAG DIGEST SIGNERS
v1 8f6f460abf0436922df7eb06d28b3cdf733d2cac1a185456c26debbff0839c56 alice
List of signers and their KeyIDs:
List of signers and their keys:
SIGNER KEYS
alice 6d52b29d940f