Documentation
¶
Index ¶
- func ConvertClientObjectToMap(obj client.Object) (map[string]interface{}, error)
- func EvaluateCheckHook(k8sClient client.Reader, hook *kubeobjects.HookSpec, log logr.Logger) (bool, error)
- func EvaluateCheckHookExp(booleanExpression string, jsonData interface{}) (bool, error)
- func EvaluateCheckHookForObjects(objs []client.Object, hook *kubeobjects.HookSpec, log logr.Logger) (bool, error)
- func IsValidJSONPathExpression(expr string) bool
- func QueryJSONPath(data interface{}, jsonPath string) (reflect.Value, error)
- type CheckHook
- type ExecHook
- type HookExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateCheckHook ¶
func EvaluateCheckHookExp ¶
Types ¶
type CheckHook ¶
type CheckHook struct {
Hook *kubeobjects.HookSpec
}
type ExecHook ¶
type ExecHook struct {
Hook *kubeobjects.HookSpec
}
type HookExecutor ¶
Hook interface will help in executing the hooks based on the types. Supported types are "check", "scale" and "exec". The implementor needs return the result which would be boolean and error if any.
func GetHookExecutor ¶
func GetHookExecutor(hook kubeobjects.HookSpec) (HookExecutor, error)
Based on the hook type, return the appropriate implementation of the hook.
Click to show internal directories.
Click to hide internal directories.