package store
import "github.com/dotcloud/docker/plugin/store"
Index ¶
- type ErrNotFound
- type Store
- func NewStore(libRoot string) *Store
- func (ps *Store) Add(p *v2.Plugin)
- func (ps *Store) CallHandler(p *v2.Plugin)
- func (ps *Store) Get(name, capability string, mode int) (plugingetter.CompatPlugin, error)
- func (ps *Store) GetAll() map[string]*v2.Plugin
- func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, error)
- func (ps *Store) GetByID(id string) (*v2.Plugin, error)
- func (ps *Store) GetByName(name string) (*v2.Plugin, error)
- func (ps *Store) Handle(capability string, callback func(string, *plugins.Client))
- func (ps *Store) Remove(p *v2.Plugin)
- func (ps *Store) SetAll(plugins map[string]*v2.Plugin)
- func (ps *Store) SetState(p *v2.Plugin, state bool)
Types ¶
type ErrNotFound ¶
type ErrNotFound string
ErrNotFound indicates that a plugin was not found locally.
func (ErrNotFound) Error ¶
func (name ErrNotFound) Error() string
type Store ¶
Store manages the plugin inventory in memory and on-disk
func NewStore ¶
NewStore creates a Store.
func (*Store) Add ¶
Add adds a plugin to memory and plugindb.
func (*Store) CallHandler ¶
CallHandler calls the registered callback. It is invoked during plugin enable.
func (*Store) Get ¶
func (ps *Store) Get(name, capability string, mode int) (plugingetter.CompatPlugin, error)
Get returns an enabled plugin matching the given name and capability.
func (*Store) GetAll ¶
GetAll retreives all plugins.
func (*Store) GetAllByCap ¶
func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, error)
GetAllByCap returns a list of enabled plugins matching the given capability.
func (*Store) GetByID ¶
GetByID retreives a plugin by ID.
func (*Store) GetByName ¶
GetByName retreives a plugin by name.
func (*Store) Handle ¶
Handle sets a callback for a given capability. It is only used by network and ipam drivers during plugin registration. The callback registers the driver with the subsystem (network, ipam).
func (*Store) Remove ¶
Remove removes a plugin from memory and plugindb.
func (*Store) SetAll ¶
SetAll initialized plugins during daemon restore.
func (*Store) SetState ¶
SetState sets the active state of the plugin and updates plugindb.
Source Files ¶
- Version
- v1.13.0-rc2
- Published
- Nov 23, 2016
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 57 seconds ago –
Tools for package owners.