Documentation ¶
Index ¶
- func FindSeqs(n ast.Node) *ast.ListLit
- func FmtNode(n ast.Node) ([]byte, error)
- func FmtNodeP(n ast.Node) []byte
- func Format(v cue.Value) ast.Node
- func GetFieldByLabel(n ast.Node, label string) (*ast.Field, error)
- func LatestSchemaList(n ast.Node) (*ast.ListLit, error)
- func SchemaListFor(n ast.Node, majv uint) (*ast.ListLit, error)
- func ToExpr(n ast.Node) ast.Expr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSeqs ¶
FindSeqs finds the seqs field within what is expected to be a valid lineage ast.Node
func FmtNode ¶
FmtNode exports a node to CUE standard-fmt'd bytes using standard Thema configuration.
func Format ¶
Format formats a cue.Value using a Thema-standard set of options.
It also sanitizes out weird insertions the CUE compiler makes, as necessary.
func GetFieldByLabel ¶
GetFieldByLabel returns the ast.Field with a given label from a struct-ish input.
func LatestSchemaList ¶
LatestSchemaList finds the ListLit for the latest sequence in what is expected to be a valid lineage ast.Node
func SchemaListFor ¶
SchemaListFor finds the ListLit for a particular major version number in what is expected to be a valid lineage ast.Node
Types ¶
This section is empty.