copy

package
v0.0.0-...-e08062c Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: GPL-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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