cue

package
v1.39.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap added in v1.27.0

func Unwrap(err error) ([]error, bool)

Unwrap checks for the version of Unwrap which returns a slice see std errors package for details

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.

func (Error) Error added in v1.27.0

func (e Error) Error() string

func (Error) Format added in v1.27.0

func (e Error) Format(f fmt.State, verb rune)

type FeaturesValidator added in v1.23.2

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

func NewFeaturesValidator added in v1.23.2

func NewFeaturesValidator(opts ...FeaturesValidatorOption) (*FeaturesValidator, error)

func (FeaturesValidator) Validate added in v1.23.2

func (v FeaturesValidator) Validate(file string, reader io.Reader) error

Validate validates a YAML file against our cue definition of features.

type FeaturesValidatorOption added in v1.36.0

type FeaturesValidatorOption func(*FeaturesValidator) error

func WithSchemaExtension added in v1.36.0

func WithSchemaExtension(v []byte) FeaturesValidatorOption

type Location

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

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