mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-24 11:00:53 -05:00
General code spring cleaning: * move file paths from `consts` package to `filepaths` * move InitData and ExportData to query and control packages
19 lines
517 B
Go
19 lines
517 B
Go
package connectionwatcher
|
|
|
|
import (
|
|
pb "github.com/turbot/steampipe/pluginmanager/grpc/proto"
|
|
"github.com/turbot/steampipe/steampipeconfig/modconfig"
|
|
)
|
|
|
|
func NewConnectionConfigMap(connectionMap map[string]*modconfig.Connection) map[string]*pb.ConnectionConfig {
|
|
configMap := make(map[string]*pb.ConnectionConfig)
|
|
for k, v := range connectionMap {
|
|
configMap[k] = &pb.ConnectionConfig{
|
|
Plugin: v.Plugin,
|
|
PluginShortName: v.PluginShortName,
|
|
Config: v.Config,
|
|
}
|
|
}
|
|
return configMap
|
|
}
|