validation

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAssignments

func CheckAssignments(t *redskyv1alpha1.Trial, exp *redskyv1alpha1.Experiment) error

CheckAssignments ensures the trial assignments match the definitions on the experiment

func CheckDefinition

func CheckDefinition(exp *redskyv1alpha1.Experiment, ee *redskyapi.Experiment) error

CheckDefinition will make sure the cluster and API experiment definitions are compatible

Types

type AssignmentError

type AssignmentError struct {
	// Parameter names for which the assignment is missing
	Unassigned []string
	// Parameter names for which there is no definition
	Undefined []string
	// Parameter names for which the assignment is out of bounds
	OutOfBounds []string
	// Parameter names for which multiple assignments exist
	Duplicated []string
}

AssignmentError is raised when trial assignments do not match the experiment parameter definitions

func (*AssignmentError) Error

func (e *AssignmentError) Error() string

Error returns a message describing the nature of the problems with the assignments

Jump to

Keyboard shortcuts

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