validate

package
v0.3.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package validate collects errors from an evaluated Vertex.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(ctx *adt.OpContext, v *adt.Vertex, cfg *Config) *adt.Bottom

Validate checks that a value has certain properties. The value must have been evaluated.

Types

type Config

type Config struct {
	// Concrete, if true, requires that all values be concrete.
	Concrete bool

	// DisallowCycles indicates that there may not be cycles.
	DisallowCycles bool

	// AllErrors continues descending into a Vertex, even if errors are found.
	AllErrors bool
}

Jump to

Keyboard shortcuts

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