validator

package
v0.0.0-...-1d50e38 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPatchedProject

func GetPatchedProject(p *patch.Patch, settings *evergreen.Settings) (*model.Project, error)

GetPatchedProject creates and validates a project created by fetching latest commit information from GitHub and applying the patch to the latest remote configuration. The error returned can be a validation error.

Types

type ValidationError

type ValidationError struct {
	Level   ValidationErrorLevel `json:"level"`
	Message string               `json:"message"`
}

func CheckDistro

func CheckDistro(d *distro.Distro, s *evergreen.Settings, newDistro bool) ([]ValidationError, error)

CheckDistro checks if the distro configuration syntax is valid. Returns a slice of any validation errors found.

func CheckProjectSemantics

func CheckProjectSemantics(project *model.Project) []ValidationError

verify that the project configuration semantics is valid

func CheckProjectSyntax

func CheckProjectSyntax(project *model.Project) ([]ValidationError, error)

verify that the project configuration syntax is valid

func (ValidationError) Error

func (vr ValidationError) Error() string

type ValidationErrorLevel

type ValidationErrorLevel int64
const (
	Error ValidationErrorLevel = iota
	Warning
)

func (ValidationErrorLevel) String

func (vel ValidationErrorLevel) String() string

Jump to

Keyboard shortcuts

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