Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFromNamespacedMap ¶
ConfigFromNamespacedMap converts the map representation of a Nomad config to the proper object that can be used to setup a client.
func HTTPAuthFromString ¶
func HTTPAuthFromString(auth string) *api.HttpBasicAuth
HTTPAuthFromString take an input string, and converts this to a Nomad API representation of basic HTTP auth.
func MergeDefaultWithAgentConfig ¶ added in v0.3.0
MergeDefaultWithAgentConfig merges the agent Nomad configuration with the default Nomad API configuration. The Nomad Autoscaler agent config takes precedence over the default config as any user supplied variables should override those configured by default or discovered via env vars within the Nomad API config.
func MergeMapWithAgentConfig ¶
MergeMapWithAgentConfig merges a Nomad map config with an API config object with the map config taking precedence. This allows users to override only a subset of params, while inheriting the agent configured items which are also derived from Nomad API default and env vars.
Types ¶
This section is empty.