logforwarderpolicy

package
v1.0.0-beta.162 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package logforwarderpolicy owns the repository-internal semantics of the log-forwarder service's inner configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFields

func ValidateFields(minLevel string, _ []string) error

ValidateFields validates the public service type's field semantics without applying decode-time defaults or normalization.

Types

type Policy

type Policy struct {
	MinLevel       slog.Level
	ExcludeSources []string
}

Policy is the normalized log-forwarder policy consumed by boot composition.

func Resolve

func Resolve(raw json.RawMessage) (Policy, error)

Resolve decodes, defaults, normalizes, and validates enabled log-forwarder inner configuration. Callers must check outer activation before invoking it.

Jump to

Keyboard shortcuts

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