()
| 90 | } |
| 91 | |
| 92 | func (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.", |
no test coverage detected