validator

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSinkValidationFailed = pkgerrors.New("Sink validation failed")
View Source
var ErrSubscriptionValidationFailed = pkgerrors.New("Subscription validation failed")

Functions

This section is empty.

Types

type SubscriptionValidator

type SubscriptionValidator interface {
	Validate(ctx context.Context, subscription eventingv1alpha2.Subscription) error
}

func NewSubscriptionValidator

func NewSubscriptionValidator(client client.Client) SubscriptionValidator

type SubscriptionValidatorFunc

type SubscriptionValidatorFunc func(ctx context.Context, subscription eventingv1alpha2.Subscription) error

SubscriptionValidatorFunc implements the SinkValidator interface.

func (SubscriptionValidatorFunc) Validate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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