Documentation ¶
Index ¶
Constants ¶
View Source
const ArgsFileName string = "render"
ArgsFileName is the name of the arguments file the jsonnet renderer looks for to pass to the pipeline as TLA veriables.
View Source
const JsonnetFileName string = "jsonnetfile.json"
ShareLibsPath - the path that jsonnet should look into when looking for shared libraries.
Designed to work with - https://github.com/jsonnet-bundler/jsonnet-bundler/
Variables ¶
View Source
var RenderFiles = map[renderer.RenderType]string{ renderer.MainFileName: "main.pipeline.jsonnet", renderer.CleanUpFileName: "cleanup/cleanup.pipeline.jsonnet", }
Functions ¶
This section is empty.
Types ¶
type FileImporter ¶
type FileImporter struct { JPaths []string // contains filtered or unexported fields }
func NewImporter ¶
func NewImporter(fs afero.Fs, projectPath string, jbFile jbV1.JsonnetFile) *FileImporter
NewImporter - Get the Jsonnet File Import customized to the Jsonnet Bundler type.
type Jsonnet ¶
Jsonnet - A Jsonnet renderer instance. The struct holds the required parameters to render a standard shore pipeline.
func NewRenderer ¶
func NewRenderer(fs afero.Fs, logger logrus.FieldLogger) *Jsonnet
NewRenderer - Create new instance of the JSONNET renderer.
type SharedLibErr ¶
type SharedLibErr struct {}
SharedLibErr - Custom error for the custom implementation of JSONNET shared libraries.
func (SharedLibErr) Error ¶
func (s SharedLibErr) Error() string
Click to show internal directories.
Click to hide internal directories.