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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyHandler

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

func NewCopy

func NewCopy(fs afero.Fs) CopyHandler

type CopyHandlerFunc

type CopyHandlerFunc func(ctx context.Context, dryrun bool, p *CopyParams) error

func (CopyHandlerFunc) Run added in v0.0.20

func (f CopyHandlerFunc) Run(ctx context.Context, dryrun bool, p *CopyParams) error

type CopyParams

type CopyParams struct {
	Src        string
	Dest       string
	Permission os.FileMode
	Cwd        string
}

type MoveHandler

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

func NewMove

func NewMove(fs afero.Fs) MoveHandler

type MoveHandlerFunc

type MoveHandlerFunc func(ctx context.Context, dryrun bool, p *MoveParams) error

func (MoveHandlerFunc) Run added in v0.0.20

func (f MoveHandlerFunc) Run(ctx context.Context, dryrun bool, p *MoveParams) error

type MoveParams

type MoveParams struct {
	Src  string
	Dest string
	Cwd  string
}

type SymlinkHandler

type SymlinkHandler interface {
	Run(ctx context.Context, dryrun bool, p *SymlinkParams) (err error)
}
func NewSymlink(fs afero.Fs) SymlinkHandler

type SymlinkHandlerFunc

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

func (SymlinkHandlerFunc) Run added in v0.0.20

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

type SymlinkParams

type SymlinkParams struct {
	Src  string
	Dest string
	User string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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