Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions plugins/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down