diff

package
v0.0.0-...-e14225d Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(out io.Writer, diff Diff)

Types

type Comparator

type Comparator func(digest.Digest, digest.Digest) Diff

type Diff

type Diff struct {
	LocationA common.Location
	LocationB common.Location
	Entries   map[string]DiffEntry
}

func Compare

func Compare(old, new digest.Digest) Diff

type DiffEntry

type DiffEntry struct {
	File   string
	Status DiffStatus
}

type DiffPrinter

type DiffPrinter func(io.Writer, Diff)

type DiffStatus

type DiffStatus int32
const (
	Identical DiffStatus = iota
	Modified
	Added
	Removed
)

Jump to

Keyboard shortcuts

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