annotated_validator

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotatedValidator

type AnnotatedValidator struct {
	// contains filtered or unexported fields
}

func NewAnnotatedValidator

func NewAnnotatedValidator(
	innerValidator Validator,
	annotatedWarningParser AnnotatedWarningParser,
	sourceCode []byte,
	useColors bool,
) *AnnotatedValidator

func (*AnnotatedValidator) Validate

func (av *AnnotatedValidator) Validate() ([]YamlAnnotatedWarning, error)

type AnnotatedWarningParser

type AnnotatedWarningParser interface {
	Parse(sourceText string) (line, pos int, err error)
}

type Validator

type Validator interface {
	Validate() []models.ArchFileSyntaxWarning
}

type YamlAnnotatedWarning

type YamlAnnotatedWarning struct {
	Text       string
	Path       string
	Line       int
	Offset     int
	SourceCode []byte `json:"-"`
}

Jump to

Keyboard shortcuts

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