2016-08-26 13:02:38 -04:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
2016-09-06 14:18:12 -04:00
|
|
|
"github.com/docker/docker/api/types"
|
2016-08-26 13:02:38 -04: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 09:59:15 -04:00
|
|
|
RefCount int `json:"-"`
|
2016-08-26 13:02:38 -04:00
|
|
|
}
|