hooks

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStages added in v0.7.0

func GetStages(disable map[string]struct{}) []rmconfig.RuntimeHookType

func RunHooks

func RunHooks(failPolicy rmconfig.FailurePolicyType, stage rmconfig.RuntimeHookType, protocol protocol.HooksProtocol) error

Types

type Hook

type Hook struct {
	// contains filtered or unexported fields
}

func Register

func Register(stage rmconfig.RuntimeHookType, name, description string, hookFn HookFn) *Hook

type HookFn

type HookFn func(protocol.HooksProtocol) error

type Options added in v1.2.0

type Options struct {
	Reader   resourceexecutor.CgroupReader
	Executor resourceexecutor.ResourceUpdateExecutor
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL