Documentation ¶
Index ¶
- type JsonnetTemplateEngine
- func (engine *JsonnetTemplateEngine) GetObservableSources() ([]string, error)
- func (engine *JsonnetTemplateEngine) GetWorkflowDefinitions() ([]*workflow.Definition, error)
- func (engine *JsonnetTemplateEngine) ImportWorkflow(wf *workflow.GitHubWorkflow) (string, error)
- func (engine *JsonnetTemplateEngine) WorkflowGenerator(templateVars map[string]string) content.WorkflowGenerator
- type YttTemplateEngine
- func (engine *YttTemplateEngine) GetObservableSources() ([]string, error)
- func (engine *YttTemplateEngine) GetWorkflowDefinitions() ([]*workflow.Definition, error)
- func (engine *YttTemplateEngine) ImportWorkflow(workflow *workflow.GitHubWorkflow) (string, error)
- func (engine *YttTemplateEngine) WorkflowGenerator(templateVars map[string]string) content.WorkflowGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonnetTemplateEngine ¶
type JsonnetTemplateEngine struct {
// contains filtered or unexported fields
}
func NewJsonnetTemplateEngine ¶
func NewJsonnetTemplateEngine(fs *afero.Afero, context *config.GFlowsContext, contentWriter *content.Writer, env *env.GFlowsEnv) *JsonnetTemplateEngine
func (*JsonnetTemplateEngine) GetObservableSources ¶
func (engine *JsonnetTemplateEngine) GetObservableSources() ([]string, error)
func (*JsonnetTemplateEngine) GetWorkflowDefinitions ¶
func (engine *JsonnetTemplateEngine) GetWorkflowDefinitions() ([]*workflow.Definition, error)
GetWorkflowDefinitions - get workflow definitions for the given context
func (*JsonnetTemplateEngine) ImportWorkflow ¶
func (engine *JsonnetTemplateEngine) ImportWorkflow(wf *workflow.GitHubWorkflow) (string, error)
func (*JsonnetTemplateEngine) WorkflowGenerator ¶
func (engine *JsonnetTemplateEngine) WorkflowGenerator(templateVars map[string]string) content.WorkflowGenerator
type YttTemplateEngine ¶
type YttTemplateEngine struct {
// contains filtered or unexported fields
}
func NewYttTemplateEngine ¶
func (*YttTemplateEngine) GetObservableSources ¶
func (engine *YttTemplateEngine) GetObservableSources() ([]string, error)
func (*YttTemplateEngine) GetWorkflowDefinitions ¶
func (engine *YttTemplateEngine) GetWorkflowDefinitions() ([]*workflow.Definition, error)
GetWorkflowDefinitions - get workflow definitions for the given context
func (*YttTemplateEngine) ImportWorkflow ¶
func (engine *YttTemplateEngine) ImportWorkflow(workflow *workflow.GitHubWorkflow) (string, error)
func (*YttTemplateEngine) WorkflowGenerator ¶
func (engine *YttTemplateEngine) WorkflowGenerator(templateVars map[string]string) content.WorkflowGenerator
Click to show internal directories.
Click to hide internal directories.