MCPcopy Create free account
hub / github.com/docker/cli / newTrustKeyCommand

Function newTrustKeyCommand

cmd/docker-trust/trust/key.go:10–24  ·  view source on GitHub ↗

newTrustKeyCommand returns a cobra command for `trust key` subcommands

(dockerCLI command.Streams)

Source from the content-addressed store, hash-verified

8
9// newTrustKeyCommand returns a cobra command for `trust key` subcommands
10func newTrustKeyCommand(dockerCLI command.Streams) *cobra.Command {
11 cmd := &cobra.Command{
12 Use: "key",
13 Short: "Manage keys for signing Docker images",
14 Args: cli.NoArgs,
15 RunE: command.ShowHelp(dockerCLI.Err()),
16
17 DisableFlagsInUseLine: true,
18 }
19 cmd.AddCommand(
20 newKeyGenerateCommand(dockerCLI),
21 newKeyLoadCommand(dockerCLI),
22 )
23 return cmd
24}

Callers 2

NewRootCmdFunction · 0.85
newTrustCommandFunction · 0.85

Calls 3

newKeyGenerateCommandFunction · 0.85
newKeyLoadCommandFunction · 0.85
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…