 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ErrInadequateCapability
- type Plugin
- func (p *Plugin) Client() *plugins.Client
- func (p *Plugin) ComputePrivileges() types.PluginPrivileges
- func (p *Plugin) FilterByCap(capability string) (*Plugin, error)
- func (p *Plugin) GetID() string
- func (p *Plugin) GetSocket() string
- func (p *Plugin) GetTypes() []types.PluginInterfaceType
- func (p *Plugin) InitPlugin() error
- func (p *Plugin) InitSpec(s specs.Spec, libRoot string) (*specs.Spec, error)
- func (p *Plugin) IsEnabled() bool
- func (p *Plugin) IsV1() bool
- func (p *Plugin) Name() string
- func (p *Plugin) RemoveFromDisk() error
- func (p *Plugin) Set(args []string) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInadequateCapability ¶
type ErrInadequateCapability struct {
	// contains filtered or unexported fields
}
    ErrInadequateCapability indicates that the plugin did not have the requested capability.
func (ErrInadequateCapability) Error ¶
func (e ErrInadequateCapability) Error() string
type 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:"-"`
	LibRoot           string          `json:"-"`
}
    Plugin represents an individual plugin.
func (*Plugin) ComputePrivileges ¶
func (p *Plugin) ComputePrivileges() types.PluginPrivileges
ComputePrivileges takes the config file and computes the list of access necessary for the plugin on the host.
func (*Plugin) FilterByCap ¶
FilterByCap query the plugin for a given capability.
func (*Plugin) GetTypes ¶
func (p *Plugin) GetTypes() []types.PluginInterfaceType
GetTypes returns the interface types of a plugin.
func (*Plugin) InitPlugin ¶
InitPlugin populates the plugin object from the plugin config file.
func (*Plugin) RemoveFromDisk ¶
RemoveFromDisk deletes the plugin's runtime files from disk.
 Click to show internal directories. 
   Click to hide internal directories.