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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckInstallHandler

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

func NewCheckInstall

func NewCheckInstall(exc exec.Interface) CheckInstallHandler

type CheckInstallHandlerFunc

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

func (CheckInstallHandlerFunc) Run

type InstallHandler

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

func NewInstall

func NewInstall(checkInstall CheckInstallHandler, executable command.ExecutableHandler, exc exec.Interface) InstallHandler

type InstallHandlerFunc

type InstallHandlerFunc func(ctx context.Context, dryrun bool, p *InstallParams) error

func (InstallHandlerFunc) Run

func (f InstallHandlerFunc) Run(ctx context.Context, dryrun bool, p *InstallParams) error

type InstallParams

type InstallParams struct {
	Name   string
	Option string
}

type MultipleInstallHandler

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

func NewMultipleInstall

func NewMultipleInstall(executable command.ExecutableHandler, exc exec.Interface) MultipleInstallHandler

type MultipleInstallHandlerFunc

type MultipleInstallHandlerFunc func(ctx context.Context, dryrun bool, p *MultipleInstallParams) error

func (MultipleInstallHandlerFunc) Run

type MultipleInstallParams

type MultipleInstallParams struct {
	Names []string
}

type UninstallHandler

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

func NewUninstall

func NewUninstall(checkInstall CheckInstallHandler, exc exec.Interface) UninstallHandler

type UninstallHandlerFunc

type UninstallHandlerFunc func(ctx context.Context, dryrun bool, p *UninstallParams) error

func (UninstallHandlerFunc) Run

type UninstallParams

type UninstallParams struct {
	Name string
	Cmd  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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