step

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 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 Executable

type Executable struct{}

func (Executable) Execute

func (dpi Executable) Execute(_ context.Context, state *transfer.State) error

func (Executable) GetProgressParams

func (dpi Executable) GetProgressParams() (int64, decor.Decorator)

type Rename

type Rename struct {
	Target string
}

func (Rename) Execute

func (dpi Rename) Execute(_ context.Context, state *transfer.State) error

func (Rename) GetProgressParams

func (dpi Rename) GetProgressParams() (int64, decor.Decorator)

type TempFileTarget

type TempFileTarget struct {
	Tmpdir string
	// contains filtered or unexported fields
}

func (*TempFileTarget) Execute

func (dpi *TempFileTarget) Execute(_ context.Context, s *transfer.State) error

func (*TempFileTarget) GetProgressParams

func (dpi *TempFileTarget) GetProgressParams() (int64, decor.Decorator)

func (*TempFileTarget) Write

func (dpi *TempFileTarget) Write(p []byte) (int, error)

type VerifyChecksum

type VerifyChecksum struct {
	Verifier *checksum.HashVerifier
}

func (*VerifyChecksum) Execute

func (dhv *VerifyChecksum) Execute(_ context.Context, s *transfer.State) error

func (*VerifyChecksum) GetProgressParams

func (dhv *VerifyChecksum) GetProgressParams() (int64, decor.Decorator)

func (*VerifyChecksum) Write

func (dhv *VerifyChecksum) Write(in []byte) (n int, err error)

type WriterTarget

type WriterTarget struct {
	FilePath string
	Writer   io.Writer
}

func (*WriterTarget) Execute

func (dpi *WriterTarget) Execute(_ context.Context, s *transfer.State) error

func (*WriterTarget) GetProgressParams

func (dpi *WriterTarget) GetProgressParams() (int64, decor.Decorator)

func (*WriterTarget) Write

func (dpi *WriterTarget) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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