Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPatchedProject ¶
func GetPatchedProject(ctx context.Context, p *patch.Patch, githubOauthToken string) (*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.
func ValidationErrorsToString ¶
func ValidationErrorsToString(ves []ValidationError) string
Types ¶
type ValidationError ¶
type ValidationError struct { Level ValidationErrorLevel `json:"level"` Message string `json:"message"` }
func CheckDistro ¶
func CheckDistro(ctx context.Context, 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
Click to show internal directories.
Click to hide internal directories.