mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	Calls to builtin plugins now go directly to the implementation instead of go-plugin
This commit is contained in:
		| @@ -23,7 +23,7 @@ type MySQL struct { | ||||
| 	credsutil.CredentialsProducer | ||||
| } | ||||
|  | ||||
| func New() *MySQL { | ||||
| func New() (interface{}, error) { | ||||
| 	connProducer := &connutil.SQLConnectionProducer{} | ||||
| 	connProducer.Type = mySQLTypeName | ||||
|  | ||||
| @@ -37,14 +37,17 @@ func New() *MySQL { | ||||
| 		CredentialsProducer: credsProducer, | ||||
| 	} | ||||
|  | ||||
| 	return dbType | ||||
| 	return dbType, nil | ||||
| } | ||||
|  | ||||
| // Run instantiates a MySQL object, and runs the RPC server for the plugin | ||||
| func Run() error { | ||||
| 	dbType := New() | ||||
| 	dbType, err := New() | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	dbplugin.NewPluginServer(dbType) | ||||
| 	dbplugin.NewPluginServer(dbType.(*MySQL)) | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brian Kassouf
					Brian Kassouf