validator

package
v0.6.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultValidator

type DefaultValidator struct {
	manifest.Generator
	managerclient.ManagerClient
}

func (*DefaultValidator) InjectClient

func (g *DefaultValidator) InjectClient(c client.Client)

func (*DefaultValidator) ValidateExperiment

func (g *DefaultValidator) ValidateExperiment(instance *experimentsv1alpha2.Experiment) error

type Validator

type Validator interface {
	ValidateExperiment(instance *experimentsv1alpha2.Experiment) error
	InjectClient(c client.Client)
}

func New

func New(generator manifest.Generator, managerClient managerclient.ManagerClient) Validator

Jump to

Keyboard shortcuts

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