github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/plugin/v2/plugin.go (about)

     1  package v2
     2  
     3  import (
     4  	"sync"
     5  
     6  	"github.com/docker/docker/api/types"
     7  	"github.com/docker/docker/pkg/plugins"
     8  	"github.com/docker/docker/restartmanager"
     9  )
    10  
    11  // Plugin represents an individual plugin.
    12  type Plugin struct {
    13  	sync.RWMutex
    14  	PluginObj         types.Plugin                  `json:"plugin"`
    15  	PClient           *plugins.Client               `json:"-"`
    16  	RestartManager    restartmanager.RestartManager `json:"-"`
    17  	RuntimeSourcePath string                        `json:"-"`
    18  	ExitChan          chan bool                     `json:"-"`
    19  	RefCount          int                           `json:"-"`
    20  }