Documentation ¶
Index ¶
- func Evaluate(sonnet string, jpath []string) (string, error)
- func EvaluateFile(jsonnetFile string) (string, error)
- func TransitiveImports(filename string) ([]string, error)
- func VisitImports(sonnet string, jpath []string, v ImportVisitor) error
- func VisitImportsFile(jsonnetFile string, v ImportVisitor) error
- type File
- type ImportVisitor
- type TraceImporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateFile ¶
EvaluateFile opens the file, reads it into memory and evaluates it afterwards (`Evaluate()`)
func TransitiveImports ¶
TransitiveImports returns a slice with all files this file imports plus downstream imports
func VisitImports ¶
func VisitImports(sonnet string, jpath []string, v ImportVisitor) error
func VisitImportsFile ¶
func VisitImportsFile(jsonnetFile string, v ImportVisitor) error
Types ¶
type File ¶
type File struct { // List of files this file imports Imports []string // Full list of transitive imports Dependencies []string }
File represents a jsonnet file that may import other files
type ImportVisitor ¶
type TraceImporter ¶
type TraceImporter struct { JPaths []string Visitor ImportVisitor // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.