Documentation ¶
Overview ¶
Package rthooks contains code for managing run-time hooks Runtime hooks are hooks for (synchronously) notifying the agent for runtime events such as the creation of a container.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCallbacksAtInit ¶
func RegisterCallbacksAtInit(cbs Callbacks)
RegisterCallbacksAtInit registers callbacks (should be called at init())
Types ¶
type Callbacks ¶
type Callbacks struct {
CreateContainer func(ctx context.Context, arg *CreateContainerArg) error
}
type CreateContainerArg ¶
type CreateContainerArg struct { Req *v1.CreateContainer Watcher watcher.K8sResourceWatcher }
type DummyHookRunner ¶
type DummyHookRunner struct{}
func (DummyHookRunner) RunHooks ¶
func (o DummyHookRunner) RunHooks(ctx context.Context, req *tetragon.RuntimeHookRequest) error
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func GlobalRunner ¶
func GlobalRunner() *Runner
After RegisterCallbacksAtInit(), this function can be used to retrieve the Runner. Once this function is called, subsequent calls of RegisterCallbacksAtInit() will panic()
func (*Runner) WithWatcher ¶
func (r *Runner) WithWatcher(watcher watcher.K8sResourceWatcher) *Runner
WithWatcher sets the watcher on a runner
Click to show internal directories.
Click to hide internal directories.