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

Function newTrustSignerCommand

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

newTrustSignerCommand returns a cobra command for `trust signer` subcommands

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

8
9// newTrustSignerCommand returns a cobra command for `trust signer` subcommands
10func newTrustSignerCommand(dockerCLI command.Cli) *cobra.Command {
11 cmd := &cobra.Command{
12 Use: "signer",
13 Short: "Manage entities who can sign Docker images",
14 Args: cli.NoArgs,
15 RunE: command.ShowHelp(dockerCLI.Err()),
16
17 DisableFlagsInUseLine: true,
18 }
19 cmd.AddCommand(
20 newSignerAddCommand(dockerCLI),
21 newSignerRemoveCommand(dockerCLI),
22 )
23 return cmd
24}

Callers 2

NewRootCmdFunction · 0.85
newTrustCommandFunction · 0.85

Calls 3

newSignerAddCommandFunction · 0.85
newSignerRemoveCommandFunction · 0.85
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…