posture

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonTelemetryUnavailable = "AF-TELEMETRY-UNAVAILABLE"
	ReasonTelemetryStale       = "AF-TELEMETRY-STALE"
	ReasonMeshDisconnected     = "AF-MESH-DISCONNECTED"
	ReasonExitUnverified       = "AF-EGRESS-EXIT-UNVERIFIED"
	ReasonDNSUnprotected       = "AF-DNS-UNPROTECTED"
	ReasonRouteUnprotected     = "AF-ROUTE-UNPROTECTED"
	ReasonNetworkTrustUnknown  = "AF-NETWORK-TRUST-UNKNOWN"
	ReasonProtected            = "AF-PROTECTION-VERIFIED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New(staleAfter time.Duration) (*Engine, error)

func (*Engine) Evaluate

func (engine *Engine) Evaluate(input Input) (*antiflockv1.ProtectionSnapshot, error)

type Fact

type Fact struct {
	Known          bool
	Value          bool
	Classification antiflockv1.EvidenceClass
	Confidence     float32
	ObservedAt     time.Time
	Explanation    string
}

type Input

type Input struct {
	DeploymentID           string
	NodeID                 string
	PolicyID               string
	PolicyRevision         uint64
	EvaluatedAt            time.Time
	TelemetryAt            time.Time
	NetworkTrust           string
	RequireMeshOnUntrusted bool
	MeshConnected          Fact
	ApprovedExitActive     Fact
	DNSProtected           Fact
	RouteProtected         Fact
}

Jump to

Keyboard shortcuts

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