types

package
v0.0.16-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

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"`
	Errors                   []exceptions.Error         `json:"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"`
	AnalysisStats            AnalysisStats              `json:"stats"`
}

type AnalysisStatLicenseSeverityDist

type AnalysisStatLicenseSeverityDist map[string]int

type AnalysisStats

type AnalysisStats struct {
	NumberOfSpdxLicenses       int                             `json:"number_of_spdx_licenses"`
	NumberOfNonSpdxLicenses    int                             `json:"number_of_non_spdx_licenses"`
	NumberOfCopyLeftLicenses   int                             `json:"number_of_copy_left_licenses"`
	NumberOfPermissiveLicenses int                             `json:"number_of_permissive_licenses"`
	LicenseDist                AnalysisStatLicenseSeverityDist `json:"license_dist"`
}

type AnalysisStatus

type AnalysisStatus string
const (
	SUCCESS AnalysisStatus = "success"
	FAILURE AnalysisStatus = "failure"
)

type DependencyInfo

type DependencyInfo struct {
	Licenses        []string
	NonSpdxLicenses []string
}

type Output

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

type WorkSpaceLicenseInfo

type WorkSpaceLicenseInfo struct {
	LicensesDepMap              map[string][]string
	NonSpdxLicensesDepMap       map[string][]string
	LicenseComplianceViolations []string
	DependencyInfo              map[string]DependencyInfo
}

type WorkSpaceLicenseInfoInternal

type WorkSpaceLicenseInfoInternal struct {
	LicensesDepMap              map[string][]string
	NonSpdxLicensesDepMap       map[string][]string
	LicenseComplianceViolations map[string][]string
	DependencyInfo              map[string]DependencyInfo
}

Jump to

Keyboard shortcuts

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