MCPcopy Index your code
hub / github.com/smallstep/cli / allowCommand

Function allowCommand

command/ca/policy/x509/allow.go:13–28  ·  view source on GitHub ↗

allowCommand returns the allow subcommand.

(ctx context.Context)

Source from the content-addressed store, hash-verified

11
12// allowCommand returns the allow subcommand.
13func allowCommand(ctx context.Context) cli.Command {
14 ctx = policycontext.WithAllow(ctx)
15 return cli.Command{
16 Name: "allow",
17 Usage: "manage allowed names for X.509 certificate issuance policies",
18 UsageText: "**step ca policy <scope> x509 allow** <subcommand> [arguments] [global-flags] [subcommand-flags]",
19 Description: `**step ca policy <scope> x509 allow** command group provides facilities for managing X.509 names to be allowed.`,
20 Subcommands: cli.Commands{
21 actions.CommonNamesCommand(ctx),
22 actions.DNSCommand(ctx),
23 actions.EmailCommand(ctx),
24 actions.IPCommand(ctx),
25 actions.URICommand(ctx),
26 },
27 }
28}

Callers 1

CommandFunction · 0.70

Calls 6

WithAllowFunction · 0.92
CommonNamesCommandFunction · 0.92
DNSCommandFunction · 0.92
EmailCommandFunction · 0.92
IPCommandFunction · 0.92
URICommandFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…