2016-08-26 20:02:38 +03:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
2016-09-06 21:18:12 +03:00
|
|
|
"github.com/docker/docker/api/types"
|
2016-08-26 20:02:38 +03:00
|
|
|
"github.com/docker/docker/pkg/plugins"
|
|
|
|
"github.com/docker/docker/restartmanager"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Plugin represents an individual plugin.
|
|
|
|
type Plugin struct {
|
|
|
|
sync.RWMutex
|
|
|
|
PluginObj types.Plugin `json:"plugin"`
|
|
|
|
PClient *plugins.Client `json:"-"`
|
|
|
|
RestartManager restartmanager.RestartManager `json:"-"`
|
|
|
|
RuntimeSourcePath string `json:"-"`
|
|
|
|
ExitChan chan bool `json:"-"`
|
2016-09-07 16:59:15 +03:00
|
|
|
RefCount int `json:"-"`
|
2016-08-26 20:02:38 +03:00
|
|
|
}
|