handlers

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 10 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 {
	Copy(ctx context.Context, dryrun bool, p *CopyParams) error
}

func NewCopy

func NewCopy(fs afero.Fs) CopyHandler

type CopyHandlerFunc

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

func (CopyHandlerFunc) Copy

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

type CopyParams

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

func (*CopyParams) String

func (p *CopyParams) String() string

type MoveHandler

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

func NewMove

func NewMove(fs afero.Fs) MoveHandler

type MoveHandlerFunc

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

func (MoveHandlerFunc) Move

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

type MoveParams

type MoveParams struct {
	Src  string
	Dest string
	Cwd  string
}

func (*MoveParams) String

func (p *MoveParams) String() string

type SymlinkHandler

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

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
}

func (*SymlinkParams) String

func (p *SymlinkParams) 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