MCPcopy Create free account
hub / github.com/smallstep/cli / allowCommand

Function allowCommand

command/ca/policy/ssh/host/allow.go:13–26  ·  view source on GitHub ↗

Command returns the SSH host allow subcommand.

(ctx context.Context)

Source from the content-addressed store, hash-verified

11
12// Command returns the SSH host 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 SSH host certificate principals",
18 UsageText: "**step ca policy ssh host allow** <subcommand> [arguments] [global-flags] [subcommand-flags]",
19 Description: `**step ca policy ssh host allow** command group provides facilities for managing SSH host certificate principals to be allowed.`,
20 Subcommands: cli.Commands{
21 actions.DNSCommand(ctx),
22 actions.EmailCommand(ctx),
23 actions.PrincipalsCommand(ctx),
24 },
25 }
26}

Callers 1

CommandFunction · 0.70

Calls 4

WithAllowFunction · 0.92
DNSCommandFunction · 0.92
EmailCommandFunction · 0.92
PrincipalsCommandFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…