validate

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidationMode

func GetValidationMode(validationFlag string) (bool, bool, error)

GetValidationMode converts validation mode flags to validation process flags.

func MtaYaml

func MtaYaml(projectPath, mtaFilename string,
	validateSchema, validateSemantic, strict bool, exclude string) (warning string, err error)

MtaYaml validates an MTA.yaml file.

Types

type YamlCheck

type YamlCheck func(yNode, yParentNode *yaml.Node, path []string) YamlValidationIssues

YamlCheck - validation check function type

type YamlValidationIssue

type YamlValidationIssue struct {
	// Msg - message content
	Msg string
	// Line - line number indicating issue
	Line int
}

YamlValidationIssue - specific issue

type YamlValidationIssues

type YamlValidationIssues []YamlValidationIssue

YamlValidationIssues - list of issue's

func (YamlValidationIssues) String

func (issues YamlValidationIssues) String() string

Jump to

Keyboard shortcuts

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