output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFilename

func ExtractFilename(path string) string

ExtractFilename extracts the filename (with extension) from a full file path

func OutputJSON

func OutputJSON(w io.Writer, data interface{}) error

OutputJSON writes data as formatted JSON to the given writer

func OutputYAML

func OutputYAML(w io.Writer, data interface{}) error

OutputYAML writes data as formatted YAML to the given writer

Types

type CheckResponse

type CheckResponse struct {
	Results map[string]*updater.UpdateResult `json:"results" yaml:"results"`
	Summary CheckSummary                     `json:"summary" yaml:"summary"`
}

CheckResponse wraps check command results with summary metadata

type CheckSummary

type CheckSummary struct {
	TotalPackages    int `json:"total_packages" yaml:"total_packages"`
	UpdatesAvailable int `json:"updates_available" yaml:"updates_available"`
	Errors           int `json:"errors" yaml:"errors"`
	Manual           int `json:"manual" yaml:"manual"`
}

CheckSummary provides aggregate statistics for check command

type GoBumpResponse

type GoBumpResponse struct {
	Results map[string]*gobump.GoBumpResult `json:"results" yaml:"results"`
	Summary GoBumpSummary                   `json:"summary" yaml:"summary"`
}

GoBumpResponse wraps gobump command results with summary metadata

type GoBumpSummary

type GoBumpSummary struct {
	TotalPackages     int `json:"total_packages" yaml:"total_packages"`
	PackagesWithVulns int `json:"packages_with_vulns" yaml:"packages_with_vulns"`
	PackagesFixed     int `json:"packages_fixed" yaml:"packages_fixed"`
	TotalVulnsFound   int `json:"total_vulns_found" yaml:"total_vulns_found"`
	TotalVulnsFixed   int `json:"total_vulns_fixed" yaml:"total_vulns_fixed"`
	Errors            int `json:"errors" yaml:"errors"`
}

GoBumpSummary provides aggregate statistics for gobump command

type UpdateResponse

type UpdateResponse struct {
	Results map[string]*updater.ApplyResult `json:"results" yaml:"results"`
	Summary UpdateSummary                   `json:"summary" yaml:"summary"`
}

UpdateResponse wraps update command results with summary metadata

type UpdateSummary

type UpdateSummary struct {
	TotalPackages     int `json:"total_packages" yaml:"total_packages"`
	SuccessfulUpdates int `json:"successful_updates" yaml:"successful_updates"`
	Errors            int `json:"errors" yaml:"errors"`
	Manual            int `json:"manual" yaml:"manual"`
}

UpdateSummary provides aggregate statistics for update command

Jump to

Keyboard shortcuts

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