state

package
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InterfaceFilter = "interface_filter"
)

Variables

This section is empty.

Functions

func CountInterfacesByType added in v0.86.0

func CountInterfacesByType(currentState shared.State) (map[string]int, error)

CountInterfacesByType parses the state and returns a map of interface type to count.

func CountRoutes added in v0.86.0

func CountRoutes(currentState shared.State) (map[RouteKey]int, error)

CountRoutes parses the state and returns a map of RouteKey to count. Routes are categorized by: - IP stack: determined by presence of ":" in destination (ipv6) or not (ipv4) - Type: "static" if route exists in routes.config, "dynamic" if only in routes.running

func FilterOut added in v0.37.3

func FilterOut(currentState shared.State) (shared.State, error)

Types

type DNSResolverData added in v0.62.0

type DNSResolverData struct {
	Search []interface{} `json:"search" yaml:"search"`
	Server []interface{} `json:"server" yaml:"server"`
}

type PhysicalNetworks added in v0.83.0

type PhysicalNetworks struct {
	Name   string `json:"localnet" yaml:"localnet"`
	Bridge string `json:"bridge" yaml:"bridge"`
	State  string `json:"state,omitempty" yaml:"state,omitempty"`
}

type RouteKey added in v0.86.0

type RouteKey struct {
	IPStack string // "ipv4" or "ipv6"
	Type    string // "static" or "dynamic"
}

RouteKey represents the grouping key for route metrics.

Jump to

Keyboard shortcuts

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