state

package
v0.87.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 []any `json:"search" yaml:"search"`
	Server []any `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