Versions in this module Expand all Collapse all v0 v0.4.0 Sep 9, 2026 Changes in this version + func FormatJsonnet() jsonnet.NativeFunction + func Manifest(elem any) (string, error) + func ManifestJsonnet() jsonnet.NativeFunction + func MarshalNode(node ast.Node) ([]byte, error) + func Parse(val string) (any, error) + func ParseJsonnet() jsonnet.NativeFunction + func Plugin(opts ...jpoet.PluginOption) *jpoet.Plugin + func UnmarshalNode(data []byte) (ast.Node, error) + type Apply ast.Apply + func (a *Apply) UnmarshalJSON(data []byte) error + func (a Apply) MarshalJSON() ([]byte, error) + type ApplyBrace ast.ApplyBrace + func (a *ApplyBrace) UnmarshalJSON(data []byte) error + func (a ApplyBrace) MarshalJSON() ([]byte, error) + type Arguments ast.Arguments + func (a *Arguments) UnmarshalJSON(data []byte) error + func (a Arguments) MarshalJSON() ([]byte, error) + type Array ast.Array + func (a *Array) UnmarshalJSON(data []byte) error + func (a Array) MarshalJSON() ([]byte, error) + type ArrayComp ast.ArrayComp + func (a *ArrayComp) UnmarshalJSON(data []byte) error + func (a ArrayComp) MarshalJSON() ([]byte, error) + type Assert ast.Assert + func (a *Assert) UnmarshalJSON(data []byte) error + func (a Assert) MarshalJSON() ([]byte, error) + type Binary ast.Binary + func (b *Binary) UnmarshalJSON(data []byte) error + func (b Binary) MarshalJSON() ([]byte, error) + type CommaSeparatedExpr ast.CommaSeparatedExpr + func (c *CommaSeparatedExpr) UnmarshalJSON(data []byte) error + func (c CommaSeparatedExpr) MarshalJSON() ([]byte, error) + type Conditional ast.Conditional + func (c *Conditional) UnmarshalJSON(data []byte) error + func (c Conditional) MarshalJSON() ([]byte, error) + type Dollar ast.Dollar + func (d *Dollar) UnmarshalJSON(data []byte) error + func (d Dollar) MarshalJSON() ([]byte, error) + type Error ast.Error + func (e *Error) UnmarshalJSON(data []byte) error + func (e Error) MarshalJSON() ([]byte, error) + type Fodder []FodderElement + func NewFodder(fodder ast.Fodder) Fodder + func (f Fodder) Fodder() ast.Fodder + type FodderElement ast.FodderElement + func (f *FodderElement) UnmarshalJSON(data []byte) error + func (f FodderElement) MarshalJSON() ([]byte, error) + type ForSpec ast.ForSpec + func (f *ForSpec) UnmarshalJSON(data []byte) error + func (f ForSpec) MarshalJSON() ([]byte, error) + type Function ast.Function + func (f *Function) UnmarshalJSON(data []byte) error + func (f Function) MarshalJSON() ([]byte, error) + type IfSpec ast.IfSpec + func (i *IfSpec) UnmarshalJSON(data []byte) error + func (i IfSpec) MarshalJSON() ([]byte, error) + type Import ast.Import + func (i *Import) UnmarshalJSON(data []byte) error + func (i Import) MarshalJSON() ([]byte, error) + type ImportBin ast.ImportBin + func (i *ImportBin) UnmarshalJSON(data []byte) error + func (i ImportBin) MarshalJSON() ([]byte, error) + type ImportStr ast.ImportStr + func (i *ImportStr) UnmarshalJSON(data []byte) error + func (i ImportStr) MarshalJSON() ([]byte, error) + type InSuper ast.InSuper + func (i *InSuper) UnmarshalJSON(data []byte) error + func (i InSuper) MarshalJSON() ([]byte, error) + type Index ast.Index + func (i *Index) UnmarshalJSON(data []byte) error + func (i Index) MarshalJSON() ([]byte, error) + type LiteralBoolean ast.LiteralBoolean + func (l *LiteralBoolean) UnmarshalJSON(data []byte) error + func (l LiteralBoolean) MarshalJSON() ([]byte, error) + type LiteralNull ast.LiteralNull + func (l *LiteralNull) UnmarshalJSON(data []byte) error + func (l LiteralNull) MarshalJSON() ([]byte, error) + type LiteralNumber ast.LiteralNumber + func (l *LiteralNumber) UnmarshalJSON(data []byte) error + func (l LiteralNumber) MarshalJSON() ([]byte, error) + type LiteralString ast.LiteralString + func (l *LiteralString) UnmarshalJSON(data []byte) error + func (l LiteralString) MarshalJSON() ([]byte, error) + type Local ast.Local + func (l *Local) UnmarshalJSON(data []byte) error + func (l Local) MarshalJSON() ([]byte, error) + type LocalBind ast.LocalBind + func (l *LocalBind) UnmarshalJSON(data []byte) error + func (l LocalBind) MarshalJSON() ([]byte, error) + type Location ast.Location + func NewLocation(location ast.Location) Location + func (s *Location) UnmarshalJSON(data []byte) error + func (s Location) Location() ast.Location + func (s Location) MarshalJSON() ([]byte, error) + type LocationRange ast.LocationRange + func NewLocationRange(locationRange ast.LocationRange) LocationRange + func (l *LocationRange) UnmarshalJSON(data []byte) error + func (l LocationRange) LocationRange() ast.LocationRange + func (l LocationRange) MarshalJSON() ([]byte, error) + type NamedArgument ast.NamedArgument + func (n *NamedArgument) UnmarshalJSON(data []byte) error + func (n NamedArgument) MarshalJSON() ([]byte, error) + type Node struct + Node ast.Node + func NewNode(node ast.Node) Node + func (n *Node) UnmarshalJSON(data []byte) error + func (n Node) MarshalJSON() ([]byte, error) + type Object ast.Object + func (o *Object) UnmarshalJSON(data []byte) error + func (o Object) MarshalJSON() ([]byte, error) + type ObjectComp ast.ObjectComp + func (o *ObjectComp) UnmarshalJSON(data []byte) error + func (o ObjectComp) MarshalJSON() ([]byte, error) + type ObjectField ast.ObjectField + func (o *ObjectField) UnmarshalJSON(data []byte) error + func (o ObjectField) MarshalJSON() ([]byte, error) + type Parameter ast.Parameter + func (p *Parameter) UnmarshalJSON(data []byte) error + func (p Parameter) MarshalJSON() ([]byte, error) + type Parens ast.Parens + func (p *Parens) UnmarshalJSON(data []byte) error + func (p Parens) MarshalJSON() ([]byte, error) + type ProxyApply struct + Arguments Arguments + FodderLeft Fodder + FodderRight Fodder + Kind string + TailStrict bool + TailStrictFodder Fodder + Target Node + TrailingComma bool + type ProxyApplyBrace struct + Kind string + Left Node + Right Node + type ProxyArguments struct + Named []NamedArgument + Positional []CommaSeparatedExpr + type ProxyArray struct + CloseFodder Fodder + Elements []CommaSeparatedExpr + Kind string + TrailingComma bool + type ProxyArrayComp struct + Body Node + CloseFodder Fodder + Kind string + Spec ForSpec + TrailingComma bool + TrailingCommaFodder Fodder + type ProxyAssert struct + ColonFodder Fodder + Cond Node + Kind string + Message Node + Rest Node + SemicolonFodder Fodder + type ProxyBinary struct + Kind string + Left Node + Op ast.BinaryOp + OpFodder Fodder + Right Node + type ProxyCommaSeparatedExpr struct + CommaFodder Fodder + Expr Node + Kind string + type ProxyConditional struct + BranchFalse Node + BranchTrue Node + Cond Node + ElseFodder Fodder + Kind string + ThenFodder Fodder + type ProxyDollar struct + Kind string + type ProxyError struct + Expr Node + Kind string + type ProxyFodderElement struct + Blanks int + Comment []string + Indent int + Kind ast.FodderKind + type ProxyForSpec struct + Conditions []IfSpec + Expr Node + ForFodder Fodder + InFodder Fodder + Kind string + Outer *ForSpec + VarFodder Fodder + VarName ast.Identifier + type ProxyFunction struct + Body Node + Kind string + Parameters []Parameter + ParenLeftFodder Fodder + ParenRightFodder Fodder + TrailingComma bool + type ProxyIfSpec struct + Expr Node + IfFodder Fodder + Kind string + type ProxyImport struct + File *ast.LiteralString + Kind string + type ProxyImportBin struct + File *ast.LiteralString + Kind string + type ProxyImportStr struct + File *ast.LiteralString + Kind string + type ProxyInSuper struct + InFodder Fodder + Index Node + Kind string + SuperFodder Fodder + type ProxyIndex struct + Id *ast.Identifier + Index Node + Kind string + LeftBracketFodder Fodder + RightBracketFodder Fodder + Target Node + type ProxyLiteralBoolean struct + Kind string + Value bool + type ProxyLiteralNull struct + Kind string + type ProxyLiteralNumber struct + Kind string + OriginalString string + type ProxyLiteralString struct + BlockIndent string + BlockTermIndent string + Kind ast.LiteralStringKind + NodeKind string + Value string + type ProxyLocal struct + Binds []LocalBind + Body Node + Kind string + type ProxyLocalBind struct + Body Node + CloseFodder Fodder + EqFodder Fodder + Fun *Function + Kind string + VarFodder Fodder + Variable ast.Identifier + type ProxyLocation struct + Column int + Line int + type ProxyLocationRange struct + Begin Location + End Location + File *Source + FileName string + type ProxyNamedArgument struct + Arg Node + CommaFodder Fodder + EqFodder Fodder + Kind string + Name ast.Identifier + NameFodder Fodder + type ProxyNodeBase struct + Ctx ast.Context + Fodder Fodder + FreeVars ast.Identifiers + LocRange LocationRange + func NewProxyNodeBase(n ast.NodeBase) ProxyNodeBase + func (p ProxyNodeBase) NodeBase() ast.NodeBase + type ProxyObject struct + CloseFodder Fodder + Fields []ObjectField + Kind string + TrailingComma bool + type ProxyObjectComp struct + CloseFodder Fodder + Fields []ObjectField + Kind string + Spec ForSpec + TrailingComma bool + TrailingCommaFodder Fodder + type ProxyObjectField struct + CommaFodder Fodder + Expr1 Node + Expr2 Node + Expr3 Node + Fodder1 Fodder + Fodder2 Fodder + Hide ast.ObjectFieldHide + Id *ast.Identifier + Kind ast.ObjectFieldKind + LocRange ast.LocationRange + Method *Function + NodeKind string + OpFodder Fodder + SuperSugar bool + type ProxyParameter struct + CommaFodder Fodder + DefaultArg Node + EqFodder Fodder + Kind string + LocRange ast.LocationRange + Name ast.Identifier + NameFodder Fodder + type ProxyParens struct + CloseFodder Fodder + Inner Node + Kind string + type ProxySelf struct + Kind string + type ProxySlice struct + BeginIndex Node + EndColonFodder Fodder + EndIndex Node + Kind string + LeftBracketFodder Fodder + RightBracketFodder Fodder + Step Node + StepColonFodder Fodder + Target Node + type ProxySource struct + DiagnosticFileName ast.DiagnosticFileName + Lines []string + type ProxySuperIndex struct + DotFodder Fodder + IDFodder Fodder + Id *ast.Identifier + Index Node + Kind string + type ProxyUnary struct + Expr Node + Kind string + Op ast.UnaryOp + type ProxyVar struct + Id ast.Identifier + Kind string + type Self ast.Self + func (s *Self) UnmarshalJSON(data []byte) error + func (s Self) MarshalJSON() ([]byte, error) + type Slice ast.Slice + func (s *Slice) UnmarshalJSON(data []byte) error + func (s Slice) MarshalJSON() ([]byte, error) + type Source ast.Source + func NewSource(source ast.Source) Source + func (s *Source) UnmarshalJSON(data []byte) error + func (s Source) MarshalJSON() ([]byte, error) + func (s Source) Source() ast.Source + type SuperIndex ast.SuperIndex + func (s *SuperIndex) UnmarshalJSON(data []byte) error + func (s SuperIndex) MarshalJSON() ([]byte, error) + type Unary ast.Unary + func (u *Unary) UnmarshalJSON(data []byte) error + func (u Unary) MarshalJSON() ([]byte, error) + type Var ast.Var + func (v *Var) UnmarshalJSON(data []byte) error + func (v Var) MarshalJSON() ([]byte, error) v0.3.0 Mar 27, 2026 v0.2.1 Aug 4, 2025 v0.2.0 Aug 3, 2025