cue

package
v0.106.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cue wraps the upstream cue package for use with holos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeMeta

func TypeMeta(root, leaf string) (holos.TypeMeta, error)

Types

type Instance

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

Instance represents a cue instance to build. Use LoadInstance to create a new Instance.

func BuildInstance

func BuildInstance(root, leaf string, tags []string) (*Instance, error)

BuildInstance builds the cue configuration instance at leaf relative to the root cue module.

func (*Instance) Decoder

func (i *Instance) Decoder() (*json.Decoder, error)

func (*Instance) Export

func (i *Instance) Export(enc holos.Encoder) error

func (*Instance) HolosValue

func (i *Instance) HolosValue() (v cue.Value, err error)

HolosValue returns the value of the holos field of the exported CUE instance.

type Value

type Value = cue.Value

Jump to

Keyboard shortcuts

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