utils

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldTagNames

func FieldTagNames(fields []*structs.Field, tag string) (names []string)

FieldTagNames returns a slice of the tag names for a []*structs.Field and the given tag

func MergeMaps

func MergeMaps(overwrite bool, mm ...map[string]any) map[string]any

MergeMaps merges two or more maps into on; overwrite determines if values are overwritten if already set or not

func NormalizeTrustAnchors added in v0.22.3

func NormalizeTrustAnchors(v any) any

NormalizeTrustAnchors recursively walks a checker config value and transforms any trust_anchors field from inline TrustAnchor objects ({"entity_id": ...}) into plain entity-id string references. Bare strings are left untouched.

This lets DB-backed checker configs accept both the legacy YAML object form and the entity-id string form used by the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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