Documentation
¶
Index ¶
- func SetupPodWebhook(mgr ctrl.Manager) error
- func SetupReplicationWebhook(mgr ctrl.Manager) error
- func SetupTorrentWebhook(mgr ctrl.Manager) error
- type PodWebhook
- type ReplicationWebhook
- func (w *ReplicationWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ReplicationWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ReplicationWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ReplicationWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type TorrentWebhook
- func (w *TorrentWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *TorrentWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *TorrentWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *TorrentWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupPodWebhook ¶ added in v0.0.4
SetupPodWebhook will setup the manager to manage the webhooks
func SetupReplicationWebhook ¶
SetupTorrentWebhook will setup the manager to manage the webhooks
func SetupTorrentWebhook ¶
SetupTorrentWebhook will setup the manager to manage the webhooks
Types ¶
type PodWebhook ¶ added in v0.0.4
type PodWebhook struct{}
type ReplicationWebhook ¶
type ReplicationWebhook struct{}
func (*ReplicationWebhook) Default ¶
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 ¶
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