Documentation
¶
Index ¶
- func DiscoverHooks(ctx context.Context, plg loader.LoadedPlugin, reg *Registry, ...) error
- func DiscoverHooksWith(ctx context.Context, plg loader.LoadedPlugin, reg *Registry, ...) error
- type HookOptions
- 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 ¶
func DiscoverHooks ¶
func DiscoverHooksWith ¶ added in v1.8.4
func DiscoverHooksWith( ctx context.Context, plg loader.LoadedPlugin, reg *Registry, rt runtime.Runtime, opts HookOptions, logger func(string), ) error
Types ¶
type HookOptions ¶ added in v1.8.4
type HookOptions struct {
FailureMode plugin.FailureMode
Priority int
}
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.