hook

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutatingfun

type Mutatingfun func(obj runtime.Object) runtime.Object

type PodHooks

type PodHooks struct {
}

func (*PodHooks) ValidateCreate

func (podhook *PodHooks) ValidateCreate(obj runtime.Object) RST

func (*PodHooks) ValidateDelete

func (podhook *PodHooks) ValidateDelete(obj runtime.Object) RST

func (*PodHooks) ValidateUpdate

func (podhook *PodHooks) ValidateUpdate(obj, old_obj runtime.Object) RST

type RST

type RST struct {
	Code    int32
	Message string
	Result  bool
}

type ResourceHook

type ResourceHook interface {
	ValidateCreate(obj runtime.Object) RST
	ValidateUpdate(obj, old_obj runtime.Object) RST
	ValidateDelete(obj runtime.Object) RST
}

type ValidatatingUpdatefun

type ValidatatingUpdatefun func(obj, old_obj runtime.Object) RST

type Validatatingfun

type Validatatingfun func(obj runtime.Object) RST

type ValidateFun

type ValidateFun struct {
	ValidateUpdate func(obj, old_obj runtime.Object) RST
	ValidateDelete func(obj runtime.Object) RST
	ValidateCreate func(obj runtime.Object) RST
}

Jump to

Keyboard shortcuts

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