handlers

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 12 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 {
	CheckInstall(ctx context.Context, name string) bool
}

func NewCheckInstall

func NewCheckInstall(execIF exec.Interface, fs afero.Fs) CheckInstallHandler

type CheckInstallHandlerFunc

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

func (CheckInstallHandlerFunc) CheckInstall

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

type InstallHandler

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

func NewInstall

func NewInstall(execIF exec.Interface, fs afero.Fs) InstallHandler

type InstallHandlerFunc

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

func (InstallHandlerFunc) Install

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

type InstallParams

type InstallParams struct {
	Name   string
	Option string
}

func (*InstallParams) String

func (p *InstallParams) String() string

type UninstallHandler

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

func NewUninstall

func NewUninstall(execIF exec.Interface, fs afero.Fs) UninstallHandler

type UninstallHandlerFunc

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

func (UninstallHandlerFunc) Uninstall

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

type UninstallParams

type UninstallParams struct {
	Name string
}

func (*UninstallParams) String

func (p *UninstallParams) String() string

Directories

Path Synopsis
Package mock_handlers is a generated GoMock package.
Package mock_handlers is a generated GoMock package.

Jump to

Keyboard shortcuts

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