Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPatchedProject ¶
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 ¶
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
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 )
Click to show internal directories.
Click to hide internal directories.