mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
plugin register with artifact stubs VAULT-32686 (#29113)
* add plugin catalog's entValidate() and setInternal() oss stubs * create plugin register command constructor oss stub * create EntPluginRunner oss stub * add validateSHA256() oss stub to validate plugin catalog update input
This commit is contained in:
@@ -551,9 +551,7 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) map[string]cli.Co
|
||||
}, nil
|
||||
},
|
||||
"plugin register": func() (cli.Command, error) {
|
||||
return &PluginRegisterCommand{
|
||||
BaseCommand: getBaseCommand(),
|
||||
}, nil
|
||||
return NewPluginRegisterCommand(getBaseCommand()), nil
|
||||
},
|
||||
"plugin reload": func() (cli.Command, error) {
|
||||
return &PluginReloadCommand{
|
||||
|
||||
14
command/plugin_register_stubs_oss.go
Normal file
14
command/plugin_register_stubs_oss.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
//go:build !enterprise
|
||||
|
||||
package command
|
||||
|
||||
import "github.com/hashicorp/cli"
|
||||
|
||||
func NewPluginRegisterCommand(baseCommand *BaseCommand) cli.Command {
|
||||
return &PluginRegisterCommand{
|
||||
BaseCommand: baseCommand,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user