verdict

package
v1.120.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BlockedExitCode = 3

BlockedExitCode is the process exit code a Dependency Firewall command returns when the outcome is a block. It is distinct from the generic-error 1 and cobra's misuse 2, so callers and scripts can tell "blocked by policy" apart from "the command failed". Defined here, the one package every df command already imports, so the package and ci-summary commands share a single definition and cannot drift.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Package   string  `json:"package"`
	Version   string  `json:"version,omitempty"`
	Verdict   Verdict `json:"verdict"`
	Reason    string  `json:"reason,omitempty"`
	Status    int     `json:"status,omitempty"`
	Timestamp string  `json:"timestamp,omitempty"`
}

func (Entry) Key

func (e Entry) Key() string

type Verdict

type Verdict string
const (
	// Allowed is the zero-value verdict: the coordinate is permitted. It is
	// the empty string so an unset Verdict reads as "allowed".
	Allowed Verdict = ""
	Blocked Verdict = "blocked"
	Warning Verdict = "warning"
)

Jump to

Keyboard shortcuts

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