Documentation ¶
Index ¶
- type ExtendedIO
- func (eio ExtendedIO) Copy(wr io.Writer, rd io.Reader, timeout time.Duration, cancel <-chan bool, ...) (bool, error)
- func (eio ExtendedIO) CopyFile(fsBackend afero.Fs, libarchiveBackend libarchive.API, sourcePath string, ...) error
- func (eio ExtendedIO) CopyToProcessStdin(fsBackend afero.Fs, libarchiveBackend libarchive.API, sourcePath string, ...) error
- type Interface
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) 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 }
Click to show internal directories.
Click to hide internal directories.