importreport

package
v1.5.14 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package importreport is the one fidelity report shape shared by the compose and docker run importers: every dropped or changed field with a plain reason.

Index

Constants

View Source
const (
	KindCompose   = "compose"
	KindDockerRun = "docker-run"
)

Source kinds a finding can come from.

Variables

This section is empty.

Functions

func Blockers

func Blockers(in []Finding) int

Blockers counts blocker findings.

Types

type Finding

type Finding struct {
	Kind     string   `json:"kind"`
	Path     string   `json:"path"`
	Reason   string   `json:"reason"`
	Severity Severity `json:"severity"`
	Fix      string   `json:"fix,omitempty"`
}

Finding is one field that was dropped, changed or needs attention. It never carries a value, only names and paths.

func Normalize

func Normalize(in []Finding) []Finding

Normalize drops duplicate paths (keeping the most severe) and sorts the result by severity, then kind and path, so output is stable for goldens.

type Severity

type Severity string

Severity ranks how much a finding matters; names match the k8s import.

const (
	SeverityIgnoredSafe     Severity = "ignored-safe"
	SeverityChangesBehavior Severity = "changes-behavior"
	SeverityBlocker         Severity = "blocker"
)

Finding severities. A blocker means the import cannot deploy as written.

Jump to

Keyboard shortcuts

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