validations

package
v0.0.0-...-97cf01e Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 3

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.

func NewValidator

func NewValidator() ValidatorInterface

NewValidator returns a new Validator.

Jump to

Keyboard shortcuts

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