Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Differ ¶
type Differ interface {
algorithm.Algorithm
// Diff creates a patch from old to new.
Diff(oldfile io.Reader, newfile io.Reader) (io.ReadCloser, error)
}
Differ abstracts over the delta creation aspect of a diffing algorithm.
type Patcher ¶
type Patcher interface {
algorithm.Algorithm
// Patch returns a reader that applies the given patch to the input.
Patch(old io.Reader, patch io.Reader) (io.Reader, error)
PatchFilesystem(artifactPath string, patch io.Reader, expected *digest.Digest) error
}
Patcher abstracts over the delta application aspect of a diffing algorithm.
Click to show internal directories.
Click to hide internal directories.