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: 8 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, fs afero.Fs) 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, 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
	Cask   bool
	Cmd    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
	Cask bool
	Cmd  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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