action

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkflowEngine

func CreateWorkflowEngine(fs *afero.Afero, context *config.GFlowsContext, contentWriter *content.Writer, env *env.GFlowsEnv, logger *io.Logger) workflow.TemplateEngine

Types

type Container

type Container struct {
	*content.Container
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(parentContainer *content.Container, context *config.GFlowsContext) *Container

func (*Container) Context

func (container *Container) Context() *config.GFlowsContext

func (*Container) Environment

func (container *Container) Environment() *env.GFlowsEnv

func (*Container) GitAdapter

func (container *Container) GitAdapter() io.GitAdapter

func (*Container) Installer

func (container *Container) Installer() *env.GFlowsLibInstaller

func (*Container) Validator

func (container *Container) Validator() *workflow.Validator

func (*Container) Watcher

func (container *Container) Watcher() *Watcher

func (*Container) WorkflowManager

func (container *Container) WorkflowManager() *WorkflowManager

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(manager *WorkflowManager, context *config.GFlowsContext) *Watcher

func (*Watcher) WatchWorkflows

func (watcher *Watcher) WatchWorkflows(onChange func())

WatchWorkflows - watch workflow files and invoke onChange on any changes

type WorkflowManager

type WorkflowManager struct {
	workflow.TemplateEngine
	// contains filtered or unexported fields
}

func NewWorkflowManager

func NewWorkflowManager(
	fs *afero.Afero,
	logger *io.Logger,
	styles *styles.Styles,
	validator *workflow.Validator,
	context *config.GFlowsContext,
	contentWriter *content.Writer,
	templateEngine workflow.TemplateEngine,
) *WorkflowManager

func (*WorkflowManager) GetWorkflows

func (manager *WorkflowManager) GetWorkflows() []workflow.GitHubWorkflow

func (*WorkflowManager) ImportWorkflows

func (manager *WorkflowManager) ImportWorkflows() error

func (*WorkflowManager) InitWorkflows

func (manager *WorkflowManager) InitWorkflows(workflowName string, githubDir string, configPath string)

func (*WorkflowManager) UpdateWorkflows

func (manager *WorkflowManager) UpdateWorkflows() error

UpdateWorkflows - update workflow files for the given context

func (*WorkflowManager) ValidateWorkflows

func (manager *WorkflowManager) ValidateWorkflows(showDiff bool) error

ValidateWorkflows - returns an error if the workflows are out of date

Jump to

Keyboard shortcuts

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