Help us shape the future of Go! Take the 2026 Go Developer Survey

diff

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDiff

func GenerateDiff(
	title string,
	outputFolder string,
	baseBranch *gitt.Branch,
	targetBranch *gitt.Branch,
	baseApps []AppInfo,
	targetApps []AppInfo,
	diffIgnoreRegex *string,
	lineCount uint,
	maxCharCount uint,
	hideDeletedAppDiff bool,
	statsInfo StatsInfo,
	selectionInfo SelectionInfo,
) error

GenerateDiff generates a diff between base and target branches

func WriteNoAppsFoundMessage

func WriteNoAppsFoundMessage(
	title string,
	outputFolder string,
	selectors []app_selector.Selector,
	changedFiles []string,
) error

WriteNoAppsFoundMessage writes a message to the output folder when no applications are found

Types

type AppInfo added in v0.1.9

type AppInfo struct {
	Id          string
	Name        string
	SourcePath  string
	FileContent string
}

type AppSelectionInfo added in v0.1.20

type AppSelectionInfo struct {
	SkippedApplications    int
	SkippedApplicationSets int
}

type Diff added in v0.1.4

type Diff struct {
	// contains filtered or unexported fields
}

type HTMLOutput added in v0.1.17

type HTMLOutput struct {
	// contains filtered or unexported fields
}

type HTMLSection added in v0.1.17

type HTMLSection struct {
	// contains filtered or unexported fields
}

type MarkdownOutput added in v0.1.17

type MarkdownOutput struct {
	// contains filtered or unexported fields
}

type MarkdownSection added in v0.1.17

type MarkdownSection struct {
	// contains filtered or unexported fields
}

func (*MarkdownSection) Size added in v0.1.17

func (m *MarkdownSection) Size() int

type SelectionInfo added in v0.1.20

type SelectionInfo struct {
	Base   AppSelectionInfo
	Target AppSelectionInfo
}

func ConvertArgoSelectionToSelectionInfo added in v0.1.20

func ConvertArgoSelectionToSelectionInfo(baseApps *argoapplication.ArgoSelection, targetApps *argoapplication.ArgoSelection) SelectionInfo

func (SelectionInfo) String added in v0.1.20

func (t SelectionInfo) String() string

type StatsInfo added in v0.1.20

type StatsInfo struct {
	FullDuration               time.Duration
	ExtractDuration            time.Duration
	ArgoCDInstallationDuration time.Duration
	ClusterCreationDuration    time.Duration
	ApplicationCount           int
}

func (StatsInfo) Stats added in v0.1.20

func (t StatsInfo) Stats() string

func (StatsInfo) String added in v0.1.20

func (t StatsInfo) String() string

Jump to

Keyboard shortcuts

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