webhook

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPodWebhook added in v0.0.4

func SetupPodWebhook(mgr ctrl.Manager) error

SetupPodWebhook will setup the manager to manage the webhooks

func SetupReplicationWebhook

func SetupReplicationWebhook(mgr ctrl.Manager) error

SetupTorrentWebhook will setup the manager to manage the webhooks

func SetupTorrentWebhook

func SetupTorrentWebhook(mgr ctrl.Manager) error

SetupTorrentWebhook will setup the manager to manage the webhooks

Types

type PodWebhook added in v0.0.4

type PodWebhook struct{}

func (*PodWebhook) Default added in v0.0.4

func (w *PodWebhook) Default(ctx context.Context, obj runtime.Object) error

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

type ReplicationWebhook

type ReplicationWebhook struct{}

func (*ReplicationWebhook) Default

func (w *ReplicationWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (*ReplicationWebhook) ValidateCreate

func (w *ReplicationWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*ReplicationWebhook) ValidateDelete

func (w *ReplicationWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*ReplicationWebhook) ValidateUpdate

func (w *ReplicationWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

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

type TorrentWebhook

type TorrentWebhook struct{}

func (*TorrentWebhook) Default

func (w *TorrentWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (*TorrentWebhook) ValidateCreate

func (w *TorrentWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*TorrentWebhook) ValidateDelete

func (w *TorrentWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*TorrentWebhook) ValidateUpdate

func (w *TorrentWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj 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