engine

package
v0.0.0-...-552dcf1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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 NewYttTemplateEngine(fs *afero.Afero, context *config.GFlowsContext, contentWriter *content.Writer, env *env.GFlowsEnv, logger *io.Logger) *YttTemplateEngine

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL