handlers

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 2 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
}

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 CommandHandler

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

type CommandHandlerFunc

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

func (CommandHandlerFunc) Command

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

type CommandParams

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

type CreateDirectoryHandler added in v0.0.10

type CreateDirectoryHandler interface {
	CreateDirectory(ctx context.Context, dryrun bool, p *CreateDirectoryParams) error
}

type CreateDirectoryHandlerFunc added in v0.0.10

type CreateDirectoryHandlerFunc func(ctx context.Context, dryrun bool, p *CreateDirectoryParams) error

func (CreateDirectoryHandlerFunc) FileExists added in v0.0.10

type CreateDirectoryParams added in v0.0.10

type CreateDirectoryParams struct {
	Path       string
	Permission os.FileMode
}

type FileCopyHandler

type FileCopyHandler interface {
	FileCopy(ctx context.Context, dryrun bool, p *FileCopyParams) error
}

type FileCopyHandlerFunc

type FileCopyHandlerFunc func(ctx context.Context, dryrun bool, p *FileCopyParams) error

func (FileCopyHandlerFunc) FileCopy

func (f FileCopyHandlerFunc) FileCopy(ctx context.Context, dryrun bool, p *FileCopyParams) error

type FileCopyParams

type FileCopyParams struct {
	Src        string
	Dest       string
	Permission os.FileMode
}

type FileMoveHandler

type FileMoveHandler interface {
	FileMove(ctx context.Context, dryrun bool, p *FileMoveParams) error
}

type FileMoveHandlerFunc

type FileMoveHandlerFunc func(ctx context.Context, dryrun bool, p *FileMoveParams) error

func (FileMoveHandlerFunc) FileMove

func (f FileMoveHandlerFunc) FileMove(ctx context.Context, dryrun bool, p *FileMoveParams) error

type FileMoveParams

type FileMoveParams struct {
	Src  string
	Dest string
}

type FishSetPathHandler

type FishSetPathHandler interface {
	FishSetPath(ctx context.Context, dryrun bool, p *FishSetPathParams) error
}

type FishSetPathHandlerFunc

type FishSetPathHandlerFunc func(ctx context.Context, dryrun bool, p *FishSetPathParams) error

func (FishSetPathHandlerFunc) FishSetPath

func (f FishSetPathHandlerFunc) FishSetPath(ctx context.Context, dryrun bool, p *FishSetPathParams) error

type FishSetPathParams

type FishSetPathParams struct {
	Values []string
}

type FishSetVariableHandler

type FishSetVariableHandler interface {
	FishSetVariable(ctx context.Context, dryrun bool, p *FishSetVariableParams) error
}

type FishSetVariableHandlerFunc

type FishSetVariableHandlerFunc func(ctx context.Context, dryrun bool, p *FishSetVariableParams) error

func (FishSetVariableHandlerFunc) FishSetVariable

func (f FishSetVariableHandlerFunc) FishSetVariable(ctx context.Context, dryrun bool, p *FishSetVariableParams) error

type FishSetVariableParams

type FishSetVariableParams struct {
	Name   string
	Value  string
	Scope  FishVariableScope
	Export bool
}

type FishVariableScope

type FishVariableScope int
const (
	FishVariableUniversalScope FishVariableScope = iota + 1
	FishVariableGlobalScope
	FishVariableLocalScope
)

type HTTPRequestHandler

type HTTPRequestHandler interface {
	HTTPRequest(ctx context.Context, dryrun bool, p *HTTPRequestParams) error
}

type HTTPRequestHandlerFunc

type HTTPRequestHandlerFunc func(ctx context.Context, dryrun bool, p *HTTPRequestParams) error

func (HTTPRequestHandlerFunc) HTTPRequest

func (f HTTPRequestHandlerFunc) HTTPRequest(ctx context.Context, dryrun bool, p *HTTPRequestParams) error

type HTTPRequestParams

type HTTPRequestParams struct {
	URL  string
	Path string
}

type InstallHandler

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

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
}

type SymlinkHandler

type SymlinkHandler interface {
	Symlink(ctx context.Context, dryrun bool, p *SymlinkParams) error
}

type SymlinkHandlerFunc

type SymlinkHandlerFunc func(ctx context.Context, dryrun bool, p *SymlinkParams) error
func (f SymlinkHandlerFunc) Symlink(ctx context.Context, dryrun bool, p *SymlinkParams) error

type SymlinkParams

type SymlinkParams struct {
	Src  string
	Dest string
	User string
}

type UninstallHandler

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

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
}

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