hooks

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAllowedByExecutionPolicy added in v0.22.0

func IsAllowedByExecutionPolicy(executionPolicy v1beta1.HookExecutionPolicy, summary *v1beta1.Summary) bool

Types

type BackupHookExecutor

type BackupHookExecutor struct {
	Config          *rest.Config
	StashClient     cs.Interface
	BackupSession   *v1beta1.BackupSession
	Invoker         invoker.BackupInvoker
	Target          v1beta1.TargetRef
	ExecutorPod     kmapi.ObjectReference
	Hook            *prober.Handler
	HookType        string
	ExecutionPolicy v1beta1.HookExecutionPolicy
}

func (*BackupHookExecutor) Execute

func (e *BackupHookExecutor) Execute() error

type HookExecutor

type HookExecutor struct {
	Config      *rest.Config
	Hook        *prober.Handler
	ExecutorPod kmapi.ObjectReference
	Summary     *v1beta1.Summary
}

func (*HookExecutor) Execute

func (e *HookExecutor) Execute() error

type RestoreHookExecutor

type RestoreHookExecutor struct {
	Config          *rest.Config
	Invoker         invoker.RestoreInvoker
	Target          v1beta1.TargetRef
	ExecutorPod     kmapi.ObjectReference
	Hook            *prober.Handler
	HookType        string
	ExecutionPolicy v1beta1.HookExecutionPolicy
}

func (*RestoreHookExecutor) Execute

func (e *RestoreHookExecutor) Execute() error

Jump to

Keyboard shortcuts

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