Documentation
¶
Index ¶
- Variables
- func LoadMacros(fs afero.Fs, macrosPath string) (string, error)
- func PythonEnvVariables(startDate, endDate *time.Time, pipelineName, runID string, fullRefresh bool) map[string]string
- type Context
- type FileSystemLoader
- type Renderer
- func NewRenderer(context Context) *Renderer
- func NewRendererWithMacros(context Context, macroContent string) *Renderer
- func NewRendererWithStartEndDates(startDate, endDate *time.Time, pipelineName, runID string, vars Context) *Renderer
- func NewRendererWithStartEndDatesAndMacros(startDate, endDate *time.Time, pipelineName, runID string, vars Context, ...) *Renderer
- func NewRendererWithYesterday(pipelineName, runID string) *Renderer
- type RendererInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var Filters *exec.FilterSet
Functions ¶
func LoadMacros ¶ added in v0.11.320
LoadMacros loads all macro files from the given directory and returns them as a single string.
Types ¶
type FileSystemLoader ¶ added in v0.11.320
type FileSystemLoader struct {
// contains filtered or unexported fields
}
FileSystemLoader loads templates from a file system directory.
func NewFileSystemLoader ¶ added in v0.11.320
func NewFileSystemLoader(fs afero.Fs, baseDir string) *FileSystemLoader
NewFileSystemLoader creates a new FileSystemLoader for the given base directory.
func (*FileSystemLoader) Inherit ¶ added in v0.11.320
func (l *FileSystemLoader) Inherit(from string) (interface{}, error)
Inherit creates a new loader relative to the given path.
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRendererWithMacros ¶ added in v0.11.320
NewRendererWithMacros creates a new Renderer with the given context and macro content.
func NewRendererWithStartEndDatesAndMacros ¶ added in v0.11.320
func NewRendererWithStartEndDatesAndMacros(startDate, endDate *time.Time, pipelineName, runID string, vars Context, macroContent string) *Renderer
NewRendererWithStartEndDatesAndMacros creates a new Renderer with the given dates, context, and macro content.
func NewRendererWithYesterday ¶ added in v0.5.3
func (*Renderer) CloneForAsset ¶ added in v0.11.209
type RendererInterface ¶ added in v0.11.209
type RendererInterface interface {
Render(query string) (string, error)
CloneForAsset(ctx context.Context, pipeline *pipeline.Pipeline, asset *pipeline.Asset) (RendererInterface, error)
}
this ugly interface is needed to avoid circular dependencies and the ability to create different renderer instances per asset.
Click to show internal directories.
Click to hide internal directories.