Documentation
¶
Index ¶
- func DiscoverHooks(ctx context.Context, plg plugin.Plugin, reg *Registry, rt runtime.Runtime, ...) error
- type Registry
- func (r *Registry) Execute(ctx context.Context, hookName plugin.HookName, data []byte) ([]byte, error)
- func (r *Registry) HasHook(hookName plugin.HookName) bool
- func (r *Registry) Hooks() map[plugin.HookName][]plugin.HookRegistration
- func (r *Registry) Register(reg plugin.HookRegistration) error
- func (r *Registry) Unregister(pluginName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) Unregister ¶
Click to show internal directories.
Click to hide internal directories.