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
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec put(Agent.agent(), String.t(), Normandy.Behaviours.AgentTemplate.supplement()) :: :ok
Registers supplement under template_id and returns :ok.
It replaces a supplement already registered under that id.
@spec start_link(keyword()) :: Agent.on_start()
Starts the catalog.
Options
:name(term/0) - AGenServer.name/0for the catalog.:templates(map/0) - The initialtemplate_id => supplementmap. The default value is%{}.