cue

package
v1.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	Tags              []string // cue build tags
	IgnoreNonCueFiles bool
	// contains filtered or unexported fields
}

Source parses a directory as a cue module that only processes the cue module once

func NewSource

func NewSource(dir, packageName, fieldPath string) (*Source, error)

NewSource returns a new Source. the directory is required, but if fieldPath is empty, the entire cue module will be returned as the value. packageName is required when using a named queue package. Usually this will be of the form ".:<package_name>" ... where the leading "." indicates the subdirectory (relative to dir) to read that package's contents from, and <package_name> indicates which package to read.

func (*Source) Value

func (s *Source) Value(ctx context.Context, typ *dials.Type) (reflect.Value, error)

Value provides the current value for the Cue configuration; implementing the dials.Source interface.

Jump to

Keyboard shortcuts

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