mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Rename NewPluginServer to just Serve
This commit is contained in:
@@ -7,10 +7,10 @@ import (
|
||||
"github.com/hashicorp/vault/helper/pluginutil"
|
||||
)
|
||||
|
||||
// NewPluginServer is called from within a plugin and wraps the provided
|
||||
// Serve is called from within a plugin and wraps the provided
|
||||
// Database implementation in a databasePluginRPCServer object and starts a
|
||||
// RPC server.
|
||||
func NewPluginServer(db Database) {
|
||||
func Serve(db Database) {
|
||||
dbPlugin := &DatabasePlugin{
|
||||
impl: db,
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ func Run() error {
|
||||
return err
|
||||
}
|
||||
|
||||
dbplugin.NewPluginServer(dbType.(*MSSQL))
|
||||
dbplugin.Serve(dbType.(*MSSQL))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ func Run() error {
|
||||
return err
|
||||
}
|
||||
|
||||
dbplugin.NewPluginServer(dbType.(*MySQL))
|
||||
dbplugin.Serve(dbType.(*MySQL))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ func Run() error {
|
||||
return err
|
||||
}
|
||||
|
||||
dbplugin.NewPluginServer(dbType.(*PostgreSQL))
|
||||
dbplugin.Serve(dbType.(*PostgreSQL))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user