inventory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyForFinding

func KeyForFinding(finding model.Finding) string

Types

type BuildInput

type BuildInput struct {
	Manifest              source.Manifest
	Findings              []model.Finding
	Contexts              map[string]ToolContext
	RepoExposureSummaries []exposure.RepoExposureSummary
	GeneratedAt           time.Time
}

type Inventory

type Inventory struct {
	InventoryVersion      string                         `json:"inventory_version" yaml:"inventory_version"`
	GeneratedAt           string                         `json:"generated_at" yaml:"generated_at"`
	Org                   string                         `json:"org" yaml:"org"`
	Tools                 []Tool                         `json:"tools" yaml:"tools"`
	RepoExposureSummaries []exposure.RepoExposureSummary `json:"repo_exposure_summaries" yaml:"repo_exposure_summaries"`
	Summary               Summary                        `json:"summary" yaml:"summary"`
}

func Build

func Build(input BuildInput) Inventory

type Summary

type Summary struct {
	TotalTools int `json:"total_tools" yaml:"total_tools"`
	HighRisk   int `json:"high_risk" yaml:"high_risk"`
	MediumRisk int `json:"medium_risk" yaml:"medium_risk"`
	LowRisk    int `json:"low_risk" yaml:"low_risk"`
}

type Tool

type Tool struct {
	ToolID          string         `json:"tool_id" yaml:"tool_id"`
	AgentID         string         `json:"agent_id" yaml:"agent_id"`
	DiscoveryMethod string         `json:"discovery_method" yaml:"discovery_method"`
	ToolType        string         `json:"tool_type" yaml:"tool_type"`
	Org             string         `json:"org" yaml:"org"`
	Repos           []string       `json:"repos" yaml:"repos"`
	Locations       []ToolLocation `json:"locations" yaml:"locations"`
	Permissions     []string       `json:"permissions,omitempty" yaml:"permissions,omitempty"`
	EndpointClass   string         `json:"endpoint_class" yaml:"endpoint_class"`
	DataClass       string         `json:"data_class" yaml:"data_class"`
	AutonomyLevel   string         `json:"autonomy_level" yaml:"autonomy_level"`
	RiskScore       float64        `json:"risk_score" yaml:"risk_score"`
	ApprovalStatus  string         `json:"approval_status" yaml:"approval_status"`
	LifecycleState  string         `json:"lifecycle_state" yaml:"lifecycle_state"`
}

type ToolContext

type ToolContext struct {
	EndpointClass  string
	DataClass      string
	AutonomyLevel  string
	RiskScore      float64
	ApprovalStatus string
	LifecycleState string
}

type ToolLocation

type ToolLocation struct {
	Repo     string `json:"repo" yaml:"repo"`
	Location string `json:"location" yaml:"location"`
	Owner    string `json:"owner" yaml:"owner"`
}

Jump to

Keyboard shortcuts

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