Documentation ¶
Overview ¶
Package plugins implements plugin management for the policy engine.
Index ¶
- type Manager
- func (m *Manager) Client(name string) rest.Client
- func (m *Manager) GetCompiler() *ast.Compiler
- func (m *Manager) Register(plugin Plugin)
- func (m *Manager) RegisterCompilerTrigger(f func(txn storage.Transaction))
- func (m *Manager) Services() []string
- func (m *Manager) Start(ctx context.Context) error
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { Labels map[string]string Store storage.Store // contains filtered or unexported fields }
Manager implements lifecycle management of plugins and gives plugins access to engine-wide components like storage.
func (*Manager) GetCompiler ¶ added in v0.8.1
GetCompiler returns the manager's compiler.
func (*Manager) Register ¶
Register adds a plugin to the manager. When the manager is started, all of the plugins will be started.
func (*Manager) RegisterCompilerTrigger ¶ added in v0.8.1
func (m *Manager) RegisterCompilerTrigger(f func(txn storage.Transaction))
RegisterCompilerTrigger registers for change notifications when the compiler is changed.
Directories ¶
Path | Synopsis |
---|---|
Package bundle implements bundle downloading.
|
Package bundle implements bundle downloading. |
Package logs implements decision log buffering and uploading.
|
Package logs implements decision log buffering and uploading. |
Package rest implements a REST client for communicating with remote services.
|
Package rest implements a REST client for communicating with remote services. |
Package status implements status reporting.
|
Package status implements status reporting. |
Click to show internal directories.
Click to hide internal directories.