cueval

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultScopePath = "#Komet"

Variables

This section is empty.

Functions

func Eval

func Eval(files []string, opts ...Option) (cue.Value, error)

Types

type Evaluator

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

func NewEvaluator

func NewEvaluator(opts ...Option) *Evaluator

func (*Evaluator) Build

func (e *Evaluator) Build(inst *build.Instance) (cue.Value, error)

func (*Evaluator) Eval

func (e *Evaluator) Eval(files []string) (cue.Value, error)

func (*Evaluator) Load

func (e *Evaluator) Load(files []string) (*build.Instance, error)

type Option

type Option interface {
	Apply(i *Evaluator)
}

func WithLoadDir

func WithLoadDir(dir string) Option

func WithLoadModuleRoot

func WithLoadModuleRoot(root string) Option

func WithScopePath

func WithScopePath(path string) Option

func WithScopes

func WithScopes(scopes ...string) Option

type OptionFunc

type OptionFunc func(*Evaluator)

func (OptionFunc) Apply

func (f OptionFunc) Apply(o *Evaluator)

Jump to

Keyboard shortcuts

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