Legacy plugin model maintained a map of plugins. This is not used by the new model. Using this map in the new model causes incorrect lookup of plugins. This change uses adds a plugin to the map only if its legacy. Signed-off-by: Anusha Ragunathan <anusha@docker.com> Upstream-commit: 8fd779dc28a11d8727d76e9553379b0c854f7c4c Component: engine
11 lines
253 B
Go
11 lines
253 B
Go
package plugin
|
|
|
|
import "github.com/docker/docker/pkg/plugins"
|
|
|
|
// Plugin represents a plugin. It is used to abstract from an older plugin architecture (in pkg/plugins).
|
|
type Plugin interface {
|
|
Client() *plugins.Client
|
|
Name() string
|
|
IsLegacy() bool
|
|
}
|