Documentation
¶
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.PodAccessor
// contains filtered or unexported fields
}
func (*CreateContainerArg) CgroupID ¶ added in v1.2.0
func (arg *CreateContainerArg) CgroupID() (uint64, error)
func (*CreateContainerArg) ContainerID ¶ added in v1.2.0
func (arg *CreateContainerArg) ContainerID() (string, error)
func (*CreateContainerArg) HostCgroupPath ¶ added in v1.3.0
func (arg *CreateContainerArg) HostCgroupPath() (string, error)
func (*CreateContainerArg) Pod ¶ added in v1.2.0
func (arg *CreateContainerArg) Pod() (*corev1.Pod, error)
func (*CreateContainerArg) PodID ¶ added in v1.2.0
func (arg *CreateContainerArg) PodID() (string, error)
type DummyHookRunner ¶
type DummyHookRunner struct{}
func (DummyHookRunner) RunHooks ¶
func (o DummyHookRunner) RunHooks(_ context.Context, _ *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.PodAccessor) *Runner
WithWatcher sets the watcher on a runner
Click to show internal directories.
Click to hide internal directories.