tar_patch

package
Version: v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(delta io.Reader, dataSource DataSource, dst io.Writer) error

Types

type DataSource

type DataSource interface {
	io.ReadSeeker
	io.Closer
	SetCurrentFile(file string) error
}

type FilesystemDataSource

type FilesystemDataSource struct {
	// contains filtered or unexported fields
}

func NewFilesystemDataSource

func NewFilesystemDataSource(basePath string) *FilesystemDataSource

func (*FilesystemDataSource) Close

func (f *FilesystemDataSource) Close() error

func (*FilesystemDataSource) Read

func (f *FilesystemDataSource) Read(data []byte) (n int, err error)

func (*FilesystemDataSource) Seek

func (f *FilesystemDataSource) Seek(offset int64, whence int) (int64, error)

func (*FilesystemDataSource) SetCurrentFile

func (f *FilesystemDataSource) SetCurrentFile(file string) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL