Rulestead.Store.Command (rulestead v0.1.1)

Copy Markdown View Source

Shared key-first command structs for Rulestead.Store adapters.

Public selectors stay on flag_key and environment_key; internal UUIDs remain adapter-private.

Summary

Functions

lifecycle_update(attrs)

@spec lifecycle_update(nil | map() | keyword()) :: nil | map()

normalize_lifecycle(attrs)

@spec normalize_lifecycle(map() | keyword()) :: map()

normalize_ownership(attrs)

@spec normalize_ownership(map() | keyword()) :: nil | map()

ownership_label(ownership, owner)

@spec ownership_label(nil | map(), term()) :: nil | String.t()