handlers

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler interface {
	Run(ctx context.Context, dryrun bool, p *CommandParams) (err error)
}

func NewCommand added in v0.0.17

func NewCommand(exc exec.Interface) CommandHandler

type CommandHandlerFunc

type CommandHandlerFunc func(ctx context.Context, dryrun bool, p *CommandParams) error

func (CommandHandlerFunc) Run added in v0.0.20

func (f CommandHandlerFunc) Run(ctx context.Context, dryrun bool, p *CommandParams) error

type CommandParams

type CommandParams struct {
	CmdName string
	CmdArgs []string
	Cwd     string
	User    string
}

type ExecutableHandler added in v0.0.17

type ExecutableHandler interface {
	Run(ctx context.Context, name string) (ok bool)
}

func NewExecutable added in v0.0.17

func NewExecutable(fs afero.Fs) ExecutableHandler

type ExecutableHandlerFunc added in v0.0.17

type ExecutableHandlerFunc func(ctx context.Context, name string) bool

func (ExecutableHandlerFunc) Run added in v0.0.20

func (f ExecutableHandlerFunc) Run(ctx context.Context, name string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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