Normandy.Metadata (normandy v0.2.0)

View Source

Metadata attached to schema structs.

Tracks the state, source, and context information for schema instances. Used internally by the Schema system to manage struct lifecycle.

Summary

Types

context()

@type context() :: any()

state()

@type state() :: :built | :loaded | :deleted

t()

@type t() :: t(module())

t(schema)

@type t(schema) :: %Normandy.Metadata{
  context: context(),
  schema: schema,
  source: term(),
  state: state()
}