copy

package
v0.0.0-...-746469e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedIO

type ExtendedIO struct {
}

func (ExtendedIO) Copy

func (eio ExtendedIO) Copy(wr io.Writer, rd io.Reader, timeout time.Duration, cancel <-chan bool, chunkSize int, skip int, count int, compressed bool) (bool, error)

Copy copies from rd to wr until EOF or timeout is reached on rd or it was cancelled

func (ExtendedIO) CopyFile

func (eio ExtendedIO) CopyFile(
	fsBackend afero.Fs,
	libarchiveBackend libarchive.API,
	sourcePath string,
	targetPath string,
	chunkSize int,
	skip int,
	seek int,
	count int,
	truncate bool,
	compressed bool) error

func (ExtendedIO) CopyToProcessStdin

func (eio ExtendedIO) CopyToProcessStdin(
	fsBackend afero.Fs,
	libarchiveBackend libarchive.API,
	sourcePath string,
	processCmdline string,
	compressed bool) error

type Interface

type Interface interface {
	Copy(wr io.Writer, rd io.Reader, timeout time.Duration, cancel <-chan bool, chunkSize int, skip int, count int, compressed bool) (bool, error)
	CopyFile(
		fsBackend afero.Fs,
		libarchiveBackend libarchive.API,
		sourcePath string,
		targetPath string,
		chunkSize int,
		skip int,
		seek int,
		count int,
		truncate bool,
		compressed bool) error
	CopyToProcessStdin(
		fsBackend afero.Fs,
		libarchiveBackend libarchive.API,
		sourcePath string,
		processCmdline string,
		compressed bool) error
}

Jump to

Keyboard shortcuts

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