diff --git a/plugins/plugin.go b/plugins/plugin.go index c0fffa6ed..5a3007f33 100644 --- a/plugins/plugin.go +++ b/plugins/plugin.go @@ -11,11 +11,7 @@ type Plugin struct { } type handshakeResp struct { - InterestedIn []string - Name string - Author string - Org string - Website string + Implements []string } func (p *Plugin) Call(method, path string, data interface{}) (io.ReadCloser, error) { diff --git a/plugins/repository.go b/plugins/repository.go index ed477c6de..d99adce33 100644 --- a/plugins/repository.go +++ b/plugins/repository.go @@ -42,7 +42,7 @@ func (repository *Repository) RegisterPlugin(addr string) error { return fmt.Errorf("error in plugin handshake: %v", err) } - for _, interest := range resp.InterestedIn { + for _, interest := range resp.Implements { if _, exists := supportedPluginTypes[interest]; !exists { return fmt.Errorf("plugin type %s is not supported", interest) }