Swap server interface for client (#1580)
This commit is contained in:
1 parent
098c3e1f22
commit
70e6536919
19 files changed
+146
-96
No files matched your search
@@ -107,14 +107,14 @@ func New(ctx context.Context, conf *Config) (*Controller, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if _, err := conf.CreateHostPlugin(ctx, "azure", &azureplg.AzurePlugin{}, hostplugin.WithDescription("Boundary provided host plugin for Azure.")); err != nil {
|
||||
if _, err := conf.CreateHostPlugin(ctx, "azure", pluginhost.NewWrappingPluginClient(&azureplg.AzurePlugin{}), hostplugin.WithDescription("Boundary provided host plugin for Azure.")); err != nil {
|
||||
return nil, fmt.Errorf("error creating azure host plugin: %w", err)
|
||||
}
|
||||
if _, err := conf.CreateHostPlugin(ctx, "aws", &awsplg.AwsPlugin{}, hostplugin.WithDescription("Boundary provided host plugin for AWS.")); err != nil {
|
||||
if _, err := conf.CreateHostPlugin(ctx, "aws", pluginhost.NewWrappingPluginClient(&awsplg.AwsPlugin{}), hostplugin.WithDescription("Boundary provided host plugin for AWS.")); err != nil {
|
||||
return nil, fmt.Errorf("error creating aws host plugin: %w", err)
|
||||
}
|
||||
if conf.HostPlugins == nil {
|
||||
conf.HostPlugins = make(map[string]plugin.HostPluginServiceServer)
|
||||
conf.HostPlugins = make(map[string]plugin.HostPluginServiceClient)
|
||||
}
|
||||
|
||||
// Set up repo stuff
|
||||
|
||||
Reference in new issue
Block a user