aggregator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateOutput

type AggregateOutput struct {
	Metadata           interface{}             `json:"metadata,omitempty"`            // Scan metadata (from root payload)
	Git                []*git.GitInfo          `json:"git,omitempty"`                 // Git repositories (deduplicated)
	Tech               []string                `json:"tech,omitempty"`                // Primary/main technologies
	Techs              []string                `json:"techs,omitempty"`               // All detected technologies
	Reason             map[string][]string     `json:"reason,omitempty"`              // Technology to detection reasons mapping, "_" for non-tech reasons
	Languages          map[string]int          `json:"languages,omitempty"`           // Language file counts
	PrimaryLanguages   []types.PrimaryLanguage `json:"primary_languages,omitempty"`   // Top programming languages (from code_stats)
	LicensesAggregated []string                `json:"licenses_aggregated,omitempty"` // Detected licenses (unique names only)
	Dependencies       [][]string              `json:"dependencies,omitempty"`        // All dependencies [type, name, version]
	CodeStats          interface{}             `json:"code_stats,omitempty"`          // Code statistics (if enabled)
}

AggregateOutput represents aggregated/rolled-up data from the scan

type Aggregator

type Aggregator struct {
	// contains filtered or unexported fields
}

Aggregator handles aggregation of scan results

func NewAggregator

func NewAggregator(fields []string) *Aggregator

NewAggregator creates a new aggregator with specified fields

func (*Aggregator) Aggregate

func (a *Aggregator) Aggregate(payload *types.Payload) *AggregateOutput

Aggregate processes a payload and returns aggregated data

Jump to

Keyboard shortcuts

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