Normandy.Behaviours.AgentTemplate.Catalog (normandy v2.2.0)

View Source

Default node-local AgentTemplate: an Agent mapping template_id → supplement.

Summary

Functions

Returns a specification to start this module under a supervisor.

Registers supplement under template_id and returns :ok.

Starts the catalog.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

put(cat, template_id, supplement)

Registers supplement under template_id and returns :ok.

It replaces a supplement already registered under that id.

start_link(opts)

@spec start_link(keyword()) :: Agent.on_start()

Starts the catalog.

Options

  • :name (term/0) - A GenServer.name/0 for the catalog.

  • :templates (map/0) - The initial template_id => supplement map. The default value is %{}.