mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
@@ -37,7 +37,7 @@ func (p *PathMap) init() {
|
||||
|
||||
if p.Schema == nil {
|
||||
p.Schema = map[string]*FieldSchema{
|
||||
"value": &FieldSchema{
|
||||
"value": {
|
||||
Type: TypeString,
|
||||
Description: fmt.Sprintf("Value for %s mapping", p.Name),
|
||||
},
|
||||
@@ -207,7 +207,7 @@ func (p *PathMap) Paths() []*Path {
|
||||
}
|
||||
|
||||
return []*Path{
|
||||
&Path{
|
||||
{
|
||||
Pattern: fmt.Sprintf("%s/%s/?$", p.Prefix, p.Name),
|
||||
|
||||
Callbacks: map[logical.Operation]OperationFunc{
|
||||
@@ -218,7 +218,7 @@ func (p *PathMap) Paths() []*Path {
|
||||
HelpSynopsis: fmt.Sprintf("Read mappings for %s", p.Name),
|
||||
},
|
||||
|
||||
&Path{
|
||||
{
|
||||
Pattern: fmt.Sprintf(`%s/%s/(?P<key>[-\w]+)`, p.Prefix, p.Name),
|
||||
|
||||
Fields: schema,
|
||||
|
||||
Reference in New Issue
Block a user