openapi: Add display attributes for cubbyhole/ (#19880)
This commit is contained in:
parent
14ac4fc045
commit
7e12300d7c
|
@ -50,6 +50,10 @@ func (b *CubbyholeBackend) paths() []*framework.Path {
|
||||||
{
|
{
|
||||||
Pattern: framework.MatchAllRegex("path"),
|
Pattern: framework.MatchAllRegex("path"),
|
||||||
|
|
||||||
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
|
OperationPrefix: "cubbyhole",
|
||||||
|
},
|
||||||
|
|
||||||
Fields: map[string]*framework.FieldSchema{
|
Fields: map[string]*framework.FieldSchema{
|
||||||
"path": {
|
"path": {
|
||||||
Type: framework.TypeString,
|
Type: framework.TypeString,
|
||||||
|
@ -60,21 +64,36 @@ func (b *CubbyholeBackend) paths() []*framework.Path {
|
||||||
Operations: map[logical.Operation]framework.OperationHandler{
|
Operations: map[logical.Operation]framework.OperationHandler{
|
||||||
logical.ReadOperation: &framework.PathOperation{
|
logical.ReadOperation: &framework.PathOperation{
|
||||||
Callback: b.handleRead,
|
Callback: b.handleRead,
|
||||||
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
|
OperationVerb: "read",
|
||||||
|
},
|
||||||
Summary: "Retrieve the secret at the specified location.",
|
Summary: "Retrieve the secret at the specified location.",
|
||||||
},
|
},
|
||||||
logical.UpdateOperation: &framework.PathOperation{
|
logical.UpdateOperation: &framework.PathOperation{
|
||||||
Callback: b.handleWrite,
|
Callback: b.handleWrite,
|
||||||
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
|
OperationVerb: "write",
|
||||||
|
},
|
||||||
Summary: "Store a secret at the specified location.",
|
Summary: "Store a secret at the specified location.",
|
||||||
},
|
},
|
||||||
logical.CreateOperation: &framework.PathOperation{
|
logical.CreateOperation: &framework.PathOperation{
|
||||||
Callback: b.handleWrite,
|
Callback: b.handleWrite,
|
||||||
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
|
OperationVerb: "write",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
logical.DeleteOperation: &framework.PathOperation{
|
logical.DeleteOperation: &framework.PathOperation{
|
||||||
Callback: b.handleDelete,
|
Callback: b.handleDelete,
|
||||||
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
|
OperationVerb: "delete",
|
||||||
|
},
|
||||||
Summary: "Deletes the secret at the specified location.",
|
Summary: "Deletes the secret at the specified location.",
|
||||||
},
|
},
|
||||||
logical.ListOperation: &framework.PathOperation{
|
logical.ListOperation: &framework.PathOperation{
|
||||||
Callback: b.handleList,
|
Callback: b.handleList,
|
||||||
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
|
OperationVerb: "list",
|
||||||
|
},
|
||||||
Summary: "List secret entries at the specified location.",
|
Summary: "List secret entries at the specified location.",
|
||||||
Description: "Folders are suffixed with /. The input must be a folder; list on a file will not return a value. The values themselves are not accessible via this command.",
|
Description: "Folders are suffixed with /. The input must be a folder; list on a file will not return a value. The values themselves are not accessible via this command.",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue