patching

package
v0.0.12-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExistedBefore   = "EXISTED_BEFORE"
	NewlyIntroduced = "NEWLY_INTRODUCED"
	Mixed           = "MIXED"
)

Variables

This section is empty.

Functions

func ConvertOutputToMap

func ConvertOutputToMap(output Output) map[string]interface{}

Types

type AnalysisInfo

type AnalysisInfo struct {
	Status                   codeclarity.AnalysisStatus `json:"status"`
	PrivateErrors            []exceptions.PrivateError  `json:"private_errors"`
	PublicErrors             []exceptions.PublicError   `json:"public_errors"`
	AnalysisStartTime        string                     `json:"analysis_start_time"`
	AnalysisEndTime          string                     `json:"analysis_end_time"`
	AnalysisDeltaTime        float64                    `json:"analysis_delta_time"`
	VersionSeperator         string                     `json:"version_seperator"`
	ImportPathSeperator      string                     `json:"import_path_seperator"`
	DefaultWorkspaceName     string                     `json:"default_workspace_name"`
	SelfManagedWorkspaceName string                     `json:"self_managed_workspace_name"`
}

type IntroductionType

type IntroductionType string

type Output

type Output struct {
	WorkSpaces   map[string]Workspace `json:"workspaces"`
	AnalysisInfo AnalysisInfo         `json:"analysis_info"`
}

type PatchInfo

type PatchInfo struct {
	TopLevelVulnerable bool
	IsPatchable        string
	Unpatchable        []ToPatch
	Patchable          []ToPatch
	Introduced         []ToPatch
	Patches            map[string]versions.Semver
	Update             versions.Semver
}

type PatchType

type PatchType string
const (
	FULL    PatchType = "FULL"
	PARTIAL PatchType = "PARTIAL"
	NONE    PatchType = "NONE"
)

type SeverityDist

type SeverityDist struct {
	Critical int `json:"critical"`
	High     int `json:"high"`
	Medium   int `json:"medium"`
	Low      int `json:"low"`
	None     int `json:"none"`
}

type ToPatch

type ToPatch struct {
	DependencyName    string
	DependencyVersion string
	Path              []string
	Vulnerability     vulnerabilityFinder.Vulnerability
}

type Upgrades

type Upgrades struct {
	Name          string `json:"name,omitempty"`
	OldConstraint string `json:"old_constraint,omitempty"`
	NewConstraint string `json:"new_constraint,omitempty"`
	Reapply       bool   `json:"reapply,omitempty"`
}

type Workspace

type Workspace struct {
	Patches    map[string]PatchInfo `json:"patches"`
	DevPatches map[string]PatchInfo `json:"dev_patches"`
}

Jump to

Keyboard shortcuts

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