hook

package
v0.0.0-...-42b859f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNClaimHook

type CNClaimHook struct {
	Client client.Client
	Logger logr.Logger
}

func NewCNClaimHook

func NewCNClaimHook(cli client.Client, logger logr.Logger) *CNClaimHook

func (*CNClaimHook) Setup

func (h *CNClaimHook) Setup(mgr manager.Manager) error

func (*CNClaimHook) ValidateCreate

func (h *CNClaimHook) ValidateCreate(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)

func (*CNClaimHook) ValidateDelete

func (h *CNClaimHook) ValidateDelete(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)

func (*CNClaimHook) ValidateUpdate

func (h *CNClaimHook) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)

type CNClaimSetHook

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

func NewCNClaimSetHook

func NewCNClaimSetHook(cli client.Client, logger logr.Logger) *CNClaimSetHook

func (*CNClaimSetHook) Default

func (h *CNClaimSetHook) Default(_ context.Context, _ runtime.Object) error

func (*CNClaimSetHook) Setup

func (h *CNClaimSetHook) Setup(mgr manager.Manager) error

func (*CNClaimSetHook) ValidateCreate

func (h *CNClaimSetHook) ValidateCreate(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)

func (*CNClaimSetHook) ValidateDelete

func (h *CNClaimSetHook) ValidateDelete(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)

func (*CNClaimSetHook) ValidateUpdate

func (h *CNClaimSetHook) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)

Jump to

Keyboard shortcuts

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