Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
  • Loading branch information
AustinAbro321 committed Jul 23, 2024
2 parents 8dfd12c + 05ef439 commit 7ca0dd9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/types/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,29 @@ type DifferentialData struct {
DifferentialRepos map[string]bool
DifferentialPackageVersion string
}

// PackageFinding is a struct that contains a finding about something wrong with a package
type PackageFinding struct {
// YqPath is the path to the key where the error originated from, this is sometimes empty in the case of a general error
YqPath string
Description string
// Item is the value of a key that is causing an error, for example a bad image name
Item string
// PackageNameOverride shows the name of the package that the error originated from
// If it is not set the base package will be used when displaying the error
PackageNameOverride string
// PackagePathOverride shows the path to the package that the error originated from
// If it is not set the base package will be used when displaying the error
PackagePathOverride string
Severity Severity
}

// Severity is the type of package error
// Either Err or Warning
type Severity int

// different severities of package errors
const (
SevErr Severity = iota + 1
SevWarn
)

0 comments on commit 7ca0dd9

Please sign in to comment.