taskid

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 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

Overview

Package taskid derives Task names from idempotency keys (§1, §4): the first 8 characters of the lowercase, unpadded RFC 4648 base32 of sha256(key), so [a-z2-7]{8} as C2 requires. The names are the dedup, so a key's format never changes between releases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueKey

func IssueKey(repo string, number, gen int) string

IssueKey is an issue task's key; gen counts maintainers' factory/ready labels on the issue (R4).

func Name

func Name(key string) string

Name is the Task name for an idempotency key.

func Random

func Random() string

Random is a fresh C2 id for a run or a brief's nonce: 5 random bytes are exactly 8 base32 characters.

func Run

func Run(task string, n int) string

Run is the deterministic id of task's nth run (R48). The reconciler names its claims and reservations with it; the meter recognises a Queued task's next run by it (#55).

func RunloreKey

func RunloreKey(alert, resourceRef string) string

RunloreKey dedups "while a task for it is open" (§1): the caller checks openness.

func ScheduleKey

func ScheduleKey(name string, at time.Time) string

ScheduleKey is a scheduled task's key: one per schedule and firing time, in UTC.

func SplitKey

func SplitKey(parent string, k int) string

SplitKey keys a split's part k (splitter design SL7): one Task per part of a parent, whatever replays.

Types

This section is empty.

Jump to

Keyboard shortcuts

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