Documentation ¶
Index ¶
- type ErrNotFound
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 (*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) GetAllByCap ¶
func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, error)
GetAllByCap returns a list of enabled plugins matching the given capability.
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).
Click to show internal directories.
Click to hide internal directories.