tardiff

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 16 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(oldTarFile io.ReadSeeker, newTarFile io.ReadSeeker, diffFile io.Writer, options *Options) error

Diff creates a binary difference between two tar archives.

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.

Jump to

Keyboard shortcuts

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