MCPcopy Create free account
hub / github.com/hashicorp/vault / Flags

Method Flags

command/secrets_enable.go:92–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func (c *SecretsEnableCommand) Flags() *FlagSets {
93 set := c.flagSet(FlagSetHTTP)
94
95 f := set.NewFlagSet("Command Options")
96
97 f.StringVar(&StringVar{
98 Name: "description",
99 Target: &c.flagDescription,
100 Completion: complete.PredictAnything,
101 Usage: "Human-friendly description for the purpose of this engine.",
102 })
103
104 f.StringVar(&StringVar{
105 Name: "path",
106 Target: &c.flagPath,
107 Default: "", // The default is complex, so we have to manually document
108 Completion: complete.PredictAnything,
109 Usage: "Place where the secrets engine will be accessible. This must be " +
110 "unique cross all secrets engines. This defaults to the \"type\" of the " +
111 "secrets engine.",
112 })
113
114 f.DurationVar(&DurationVar{
115 Name: "default-lease-ttl",
116 Target: &c.flagDefaultLeaseTTL,
117 Completion: complete.PredictAnything,
118 Usage: "The default lease TTL for this secrets engine. If unspecified, " +
119 "this defaults to the Vault server's globally configured default lease " +
120 "TTL.",
121 })
122
123 f.DurationVar(&DurationVar{
124 Name: "max-lease-ttl",
125 Target: &c.flagMaxLeaseTTL,
126 Completion: complete.PredictAnything,
127 Usage: "The maximum lease TTL for this secrets engine. If unspecified, " +
128 "this defaults to the Vault server's globally configured maximum lease " +
129 "TTL.",
130 })
131
132 f.StringSliceVar(&StringSliceVar{
133 Name: flagNameAuditNonHMACRequestKeys,
134 Target: &c.flagAuditNonHMACRequestKeys,
135 Usage: "Key that will not be HMAC'd by audit devices in the request data object. " +
136 "To specify multiple values, specify this flag multiple times.",
137 })
138
139 f.StringSliceVar(&StringSliceVar{
140 Name: flagNameAuditNonHMACResponseKeys,
141 Target: &c.flagAuditNonHMACResponseKeys,
142 Usage: "Key that will not be HMAC'd by audit devices in the response data object. " +
143 "To specify multiple values, specify this flag multiple times.",
144 })
145
146 f.StringVar(&StringVar{
147 Name: flagNameListingVisibility,
148 Target: &c.flagListingVisibility,
149 Usage: "Determines the visibility of the mount in the UI-specific listing endpoint.",

Callers 3

HelpMethod · 0.95
AutocompleteFlagsMethod · 0.95
RunMethod · 0.95

Calls 10

StringVarMethod · 0.95
DurationVarMethod · 0.95
StringSliceVarMethod · 0.95
BoolVarMethod · 0.95
BoolPtrVarMethod · 0.95
StringMapVarMethod · 0.95
IntVarMethod · 0.95
flagSetMethod · 0.80
NewFlagSetMethod · 0.80
PredictVaultPluginsMethod · 0.80

Tested by

no test coverage detected