output

package
v0.0.0-...-4aaa17f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDiff

type ImageDiff struct {
	BinaryDiff  *binary.Differences
	PackageDiff *packagediff.Differences
}

ImageDiff stores all of the differences between the two images

func (*ImageDiff) Formater

func (imageDiff *ImageDiff) Formater(image1, image2 string, flagInfo *input.FlagInfo) (string, error)

Formater is a ImageDiff function that outputs the image differences based on the "-output" flag. Either to the terminal (default) or to a stored json object Input:

(string) image1 - Temp directory name of image1
(string) image2 - Temp directory name of image2
(*FlagInfo) flagInfo - A struct that holds input preference from the user

Output:

([]string) diffstrings/jsonObjectStr - Based on "-output" flag, either formated string
for the terminal or a string json object

func (*ImageDiff) Print

func (imageDiff *ImageDiff) Print(differences string)

Print is a ImageDiff method that prints out all image differences

Jump to

Keyboard shortcuts

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