Documentation ¶
Index ¶
- type Validator
- func (v *Validator) FailValidation(ctx context.Context, repository gitv1alpha1.Repository, ...) error
- func (v *Validator) IsMergedOrClosed(ctx context.Context, repository gitv1alpha1.Repository, ...) (bool, error)
- func (v *Validator) PassValidation(ctx context.Context, repository gitv1alpha1.Repository, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct { Client client.Client Next validators.Validator }
func NewValidator ¶
func NewValidator(client client.Client, next validators.Validator) *Validator
func (*Validator) FailValidation ¶
func (v *Validator) FailValidation(ctx context.Context, repository gitv1alpha1.Repository, sync deliveryv1alpha1.Sync) error
func (*Validator) IsMergedOrClosed ¶ added in v0.4.0
func (v *Validator) IsMergedOrClosed(ctx context.Context, repository gitv1alpha1.Repository, sync deliveryv1alpha1.Sync) (bool, error)
func (*Validator) PassValidation ¶
func (v *Validator) PassValidation(ctx context.Context, repository gitv1alpha1.Repository, sync deliveryv1alpha1.Sync) error
Click to show internal directories.
Click to hide internal directories.