Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeValidator ¶
type FakeValidator struct { ValidatedClusterSets []map[string]kubeclient.Interface ValidationError error // contains filtered or unexported fields }
FakeValidator is a fake implementation of ValidatorInterface, for tests.
func (*FakeValidator) Validate ¶
func (v *FakeValidator) Validate(clients map[string]kubeclient.Interface, ing *v1beta1.Ingress) error
Validate records the clusters that were validated, so tests can use that information.
type ValidatorInterface ¶
type ValidatorInterface interface {
Validate(clients map[string]kubeclient.Interface, ing *v1beta1.Ingress) error
}
ValidatorInterface is an interface to validate cluster setup.
func NewFakeValidator ¶
func NewFakeValidator(validationShouldPass bool) ValidatorInterface
NewFakeValidator returns a new intance of the fake Validator.
Click to show internal directories.
Click to hide internal directories.