webhooks

package
v0.0.0-...-7064f84 Latest Latest
Warning

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

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

Documentation

Overview

Package webhooks implements inmemory infrastructure webhooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryCluster

type InMemoryCluster struct{}

InMemoryCluster implements a validating and defaulting webhook for InMemoryCluster.

func (*InMemoryCluster) Default

func (webhook *InMemoryCluster) Default(_ context.Context, _ runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryCluster) SetupWebhookWithManager

func (webhook *InMemoryCluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryCluster) ValidateCreate

func (webhook *InMemoryCluster) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryCluster) ValidateDelete

func (webhook *InMemoryCluster) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryCluster) ValidateUpdate

func (webhook *InMemoryCluster) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryClusterTemplate

type InMemoryClusterTemplate struct{}

InMemoryClusterTemplate implements a validating and defaulting webhook for InMemoryClusterTemplate.

func (*InMemoryClusterTemplate) Default

func (webhook *InMemoryClusterTemplate) Default(_ context.Context, _ runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryClusterTemplate) SetupWebhookWithManager

func (webhook *InMemoryClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryClusterTemplate) ValidateCreate

func (webhook *InMemoryClusterTemplate) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryClusterTemplate) ValidateDelete

func (webhook *InMemoryClusterTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryClusterTemplate) ValidateUpdate

func (webhook *InMemoryClusterTemplate) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryMachine

type InMemoryMachine struct{}

InMemoryMachine implements a validating and defaulting webhook for InMemoryMachine.

func (*InMemoryMachine) Default

func (webhook *InMemoryMachine) Default(_ context.Context, _ runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryMachine) SetupWebhookWithManager

func (webhook *InMemoryMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryMachine) ValidateCreate

func (webhook *InMemoryMachine) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachine) ValidateDelete

func (webhook *InMemoryMachine) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachine) ValidateUpdate

func (webhook *InMemoryMachine) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryMachineTemplate

type InMemoryMachineTemplate struct{}

InMemoryMachineTemplate implements a validating and defaulting webhook for InMemoryMachineTemplate.

func (*InMemoryMachineTemplate) Default

func (webhook *InMemoryMachineTemplate) Default(_ context.Context, _ runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryMachineTemplate) SetupWebhookWithManager

func (webhook *InMemoryMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryMachineTemplate) ValidateCreate

func (webhook *InMemoryMachineTemplate) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachineTemplate) ValidateDelete

func (webhook *InMemoryMachineTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachineTemplate) ValidateUpdate

func (webhook *InMemoryMachineTemplate) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

Jump to

Keyboard shortcuts

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