Merge pull request #24776 from anusha-ragunathan/plugins-connect

Add only legacy plugins to the legacy lookup map.
Upstream-commit: 6875f71d7c6a01b918fcc372ac2c17c5a0d65418
Component: engine
This commit is contained in:
Vincent Demeester
2016-07-19 17:11:50 +02:00
committed by GitHub
4 changed files with 17 additions and 2 deletions
+5
View File
@@ -83,6 +83,11 @@ func (p *Plugin) Client() *Client {
return p.client
}
// IsLegacy returns true for legacy plugins and false otherwise.
func (p *Plugin) IsLegacy() bool {
return true
}
// NewLocalPlugin creates a new local plugin.
func NewLocalPlugin(name, addr string) *Plugin {
return &Plugin{