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 ¶
func (svf SubscriptionValidatorFunc) Validate(ctx context.Context, subscription eventingv1alpha2.Subscription) error
Click to show internal directories.
Click to hide internal directories.