cue

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidationFailed = errors.New("validation failed")
)

Functions

func ValidateBytes

func ValidateBytes(b []byte) error

ValidateBytes takes a slice of bytes, and validates them against a cue definition.

func ValidateFiles

func ValidateFiles(dst io.Writer, files []string, format string) error

ValidateFiles takes a slice of strings as filenames and validates them against our cue definition of features.

Types

type Error

type Error struct {
	Message  string   `json:"message"`
	Location Location `json:"location"`
}

Error is a collection of fields that represent positions in files where the user has made some kind of error.

type Location

type Location struct {
	File   string `json:"file,omitempty"`
	Line   int    `json:"line"`
	Column int    `json:"column"`
}

Location contains information about where an error has occurred during cue validation.

Jump to

Keyboard shortcuts

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