Documentation
¶
Overview ¶
Package tardiff provides functionality for analyzing and creating binary differences between tar archives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(oldTarFiles []io.ReadSeeker, newTarFile io.ReadSeeker, diffFile io.Writer, options *Options) error
Diff creates a binary difference between a set of tar archives and a new tar archive oldTarFiles contains one or more old tar files, in extraction order
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options configures the behavior of the diff operation.
func NewOptions ¶
func NewOptions() *Options
NewOptions creates a new Options struct with default values.
func (*Options) SetCompressionLevel ¶
SetCompressionLevel sets the compression level for the output diff file.
func (*Options) SetMaxBsdiffFileSize ¶
SetMaxBsdiffFileSize sets the maximum file size for bsdiff operations.
func (*Options) SetSourcePrefixes ¶ added in v0.4.0
SetSourcePrefixes sets path prefixes to filter which source files can be used for delta. Only files whose primary path starts with one of these prefixes will be used as delta sources.