-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support listing at parent plugin catalog
- Loading branch information
Becca Petrin
committed
Nov 7, 2018
1 parent
8d32f46
commit f6d2ee9
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -560,6 +560,26 @@ func (b *SystemBackend) sealPaths() []*framework.Path { | |
|
||
func (b *SystemBackend) pluginsCatalogPaths() []*framework.Path { | ||
return []*framework.Path{ | ||
{ | ||
Pattern: "plugins/catalog/?$", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
Fields: map[string]*framework.FieldSchema{ | ||
"type": &framework.FieldSchema{ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tyrannosaurus-becks
Contributor
|
||
Type: framework.TypeString, | ||
Description: strings.TrimSpace(sysHelp["plugin-catalog_type"][0]), | ||
}, | ||
}, | ||
|
||
Operations: map[logical.Operation]framework.OperationHandler{ | ||
logical.ListOperation: &framework.PathOperation{ | ||
Callback: b.handlePluginsListDeprecated, | ||
Summary: "List the plugins in the catalog.", | ||
}, | ||
}, | ||
|
||
HelpSynopsis: strings.TrimSpace(sysHelp["plugin-catalog"][0]), | ||
HelpDescription: strings.TrimSpace(sysHelp["plugin-catalog"][1]), | ||
}, | ||
{ | ||
Pattern: "plugins/catalog/(?P<type>auth|database|secret)/?$", | ||
|
||
|
This pattern already exists below, i think we can just add the list operation there.