normalize

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package normalize converts collected resources into OpenMeshGuard inventory models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	Counts        map[string]int
	DataPlaneMode resolver.DataPlaneMode
	Ztunnel       ZtunnelInventory
	Waypoints     *int
	MultiCluster  MultiCluster
}

Inventory is the normalized inventory summary needed for canonical output.

type MultiCluster

type MultiCluster struct {
	ParticipationDetected bool
	Signals               []string
	MeshNetworks          []string
}

MultiCluster captures non-secret signals that a cluster participates in a multi-network mesh. OSS v1 detects but does not evaluate cross-cluster posture.

type Result

type Result struct {
	Inventory Inventory
	Workloads []resolver.WorkloadInput
}

Result is the normalized M1 model passed to the resolver and output writer.

func Build

func Build(snapshot collect.Snapshot) Result

Build converts collected typed resources into normalized inventory and pure resolver inputs.

type ZtunnelInventory

type ZtunnelInventory struct {
	Present      *bool
	NodesCovered *int
	NodesTotal   *int
}

ZtunnelInventory preserves independently observable ambient coverage facts. NodesTotal is nil when the optional nodes permission is unavailable.

Jump to

Keyboard shortcuts

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