Documentation
¶
Index ¶
- func GeneratePreview(title string, outputFolder string, baseBranch *gitt.Branch, ...) (time.Duration, error)
- func WriteNoAppsFoundMessage(title string, outputFolder string, selectors []app_selector.Selector, ...) error
- type AppSelectionInfo
- type HTMLOutput
- type HTMLSection
- type MarkdownOutput
- type MarkdownSection
- type ResourceSection
- type SelectionInfo
- type StatsInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePreview ¶ added in v0.2.0
func GeneratePreview( title string, outputFolder string, baseBranch *gitt.Branch, targetBranch *gitt.Branch, baseManifests []extract.ExtractedApp, targetManifests []extract.ExtractedApp, diffIgnoreRegex *string, lineCount uint, maxCharCount uint, hideDeletedAppDiff bool, statsInfo StatsInfo, selectionInfo SelectionInfo, argocdUIURL string, ignoreResourceRules []resource_filter.IgnoreResourceRule, ) (time.Duration, error)
GeneratePreview generates a diff using similarity-based matching instead of ID-based matching. This correctly handles cases where apps or resources are renamed.
func WriteNoAppsFoundMessage ¶
func WriteNoAppsFoundMessage( title string, outputFolder string, selectors []app_selector.Selector, changedFiles []string, watchIfNoWatchPatternFound bool, ) error
WriteNoAppsFoundMessage writes a message to the output folder when no applications are found
Types ¶
type AppSelectionInfo ¶ added in v0.1.20
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
}
type ResourceSection ¶ added in v0.2.0
type ResourceSection struct {
Header string // e.g. "Kind: Name (namespace)"
Content string // diff text with +/-/space prefixes
IsSkipped bool // true if resource matched an ignore rule
}
ResourceSection represents a single resource's diff within an app section. This is the pkg/diff view of matching.ResourceDiff, avoiding import cycles.
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
Click to show internal directories.
Click to hide internal directories.