ids

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ids derives event identifiers. Both functions are pure and stable across processes and releases: the same inputs always produce the same id, so re-delivering a notification or re-running a sync is a no-op at ingestion rather than a duplicate.

The normative specification is roadmap/00-conventions.md section 4.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeterministicEventID

func DeterministicEventID(platform, cloud, resourceID, eventType string, ts time.Time) string

DeterministicEventID derives an event id for a provider that exposes no native event or action id of its own. The timestamp is normalized to UTC first, so the same instant expressed in different zones yields one id.

func SyntheticEventID

func SyntheticEventID(syncRunID, cloud, resourceType, resourceID, kind string) string

SyntheticEventID derives the event id of a correction emitted by a sync run. It is deterministic per run, which makes re-applying that run a no-op.

Types

This section is empty.

Jump to

Keyboard shortcuts

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