factory

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutorChain added in v0.0.11

func NewExecutorChain(
	conf config.Config,
	actionFilter actionFilter,
	templateData map[string]any,
	templateOptions []string,
	logger entity.Logger,
	preprocess,
	dryRun bool,
) (entity.Executor, error)

func NewFSExecutor added in v0.0.13

func NewFSExecutor(
	dirs []string,
	templateData map[string]any,
	templateOptions []string,
	logger entity.Logger,
	dryRun bool) (entity.Executor, error)

func NewFileExecutor added in v0.0.11

func NewFileExecutor(
	files []config.File,
	http *config.HTTPClient,
	templateData map[string]any,
	templateOptions []string,
	logger entity.Logger,
	preprocess,
	dryRun bool,
) (entity.Executor, []entity.Preprocessor, error)

func NewHTTPClient added in v0.0.2

func NewHTTPClient(conf *config.HTTPClient, logger entity.Logger) *resty.Client

func NewLogger

func NewLogger(verbose bool) (entity.LoggerWrapper, error)

func NewMkdirExecutor added in v0.0.11

func NewMkdirExecutor(dirs []string, logger entity.Logger, dryRun bool) (entity.Executor, error)

func NewRmExecutor added in v0.1.7

func NewRmExecutor(paths []string, logger entity.Logger, dryRun bool) (entity.Executor, error)

func NewRunCommandExecutor added in v0.0.11

func NewRunCommandExecutor(cmds []config.Command, logger entity.Logger, dryRun bool) (entity.Executor, error)

Types

type ActionFilter added in v0.1.6

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

func NewActionFilter added in v0.1.6

func NewActionFilter(
	skipActions []string,
	selectedGroups []string,
	groupsByAction map[string]map[string]struct{},
	manualActionsSet map[string]struct{},
	logger entity.Logger,

) *ActionFilter

func (*ActionFilter) MatchString added in v0.1.6

func (f *ActionFilter) MatchString(action string) bool

Jump to

Keyboard shortcuts

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