cuex

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON = build.JSON
	YAML = build.YAML
	CUE  = build.CUE
)

Variables

This section is empty.

Functions

func BundleToRaw

func BundleToRaw(inst *build.Instance) ([]byte, error)

BundleToRaw bundle instance to single cue file

func Eval

func Eval(instance *build.Instance, options ...EvalOptionFunc) ([]byte, error)

func InstanceFromRaw

func InstanceFromRaw(src []byte) (*build.Instance, error)

func InstanceFromTemplateAndOverwrites

func InstanceFromTemplateAndOverwrites(template []byte, overwrites []byte) (*build.Instance, error)

Types

type Encoding

type Encoding = build.Encoding

type EvalOption added in v0.2.2

type EvalOption struct {
	Encoding Encoding
}

func (*EvalOption) SetDefaults added in v0.2.2

func (o *EvalOption) SetDefaults()

type EvalOptionFunc added in v0.2.2

type EvalOptionFunc = func(o *EvalOption)

func WithEncoding added in v0.2.2

func WithEncoding(e build.Encoding) EvalOptionFunc

func WithEncodingFromFileExt added in v0.2.2

func WithEncodingFromFileExt(ext string) EvalOptionFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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