//Meta returns meta data for plugin func Meta() *plugin.PluginMeta { return plugin.NewPluginMeta( pluginName, version, pluginType, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)) }
//Meta returns meta data for testing func Meta() *plugin.PluginMeta { return plugin.NewPluginMeta( Name, Version, Type, []string{plugin.SnapGOBContentType}, []string{plugin.SnapGOBContentType}, plugin.Unsecure(true), plugin.ConcurrencyCount(1000), ) }
// Meta returns a plugin meta data func Meta() *plugin.PluginMeta { return plugin.NewPluginMeta( pluginName, version, pluginType, []string{plugin.SnapGOBContentType}, []string{plugin.SnapGOBContentType}, plugin.RoutingStrategy(plugin.StickyRouting), plugin.ConcurrencyCount(1), ) }
func main() { dockerPlg, err := docker.New() if err != nil { panic(err) } plugin.Start( plugin.NewPluginMeta( docker.NS_PLUGIN, docker.VERSION, plugin.CollectorPluginType, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)), dockerPlg, os.Args[1], ) }
// plugin bootstrap func main() { p, err := iostat.New() if err != nil { panic(err) } plugin.Start( plugin.NewPluginMeta(iostat.Name, iostat.Version, iostat.Type, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)), p, os.Args[1], ) }
func main() { plugin.Start( plugin.NewPluginMeta(users.Name, users.Version, users.Type, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)), users.New(), os.Args[1], ) }
// plugin bootstrap func main() { plugin.Start( plugin.NewPluginMeta(name, version, pluginType, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)), ceph.New(), os.Args[1], ) }
func main() { plugin.Start(plugin.NewPluginMeta(nodeManagerPlugin.Name, nodeManagerPlugin.Version, nodeManagerPlugin.Type, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)), nodeManagerPlugin.New(), os.Args[1]) }