Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Upstream-commit: a452d1fccb6d515545dacd4bebfa36cbf70a6535 Component: engine
20 lines
472 B
Go
20 lines
472 B
Go
package v2
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/pkg/plugins"
|
|
)
|
|
|
|
// Plugin represents an individual plugin.
|
|
type Plugin struct {
|
|
sync.RWMutex
|
|
PluginObj types.Plugin `json:"plugin"`
|
|
PClient *plugins.Client `json:"-"`
|
|
RuntimeSourcePath string `json:"-"`
|
|
RefCount int `json:"-"`
|
|
Restart bool `json:"-"`
|
|
ExitChan chan bool `json:"-"`
|
|
}
|