tardiff

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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

func (o *Options) SetCompressionLevel(compressionLevel int)

SetCompressionLevel sets the compression level for the output diff file.

func (*Options) SetMaxBsdiffFileSize

func (o *Options) SetMaxBsdiffFileSize(maxBsdiffSize int64)

SetMaxBsdiffFileSize sets the maximum file size for bsdiff operations.

func (*Options) SetSourcePrefixes added in v0.4.0

func (o *Options) SetSourcePrefixes(prefixes []string)

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.

Jump to

Keyboard shortcuts

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