nomad

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromNamespacedMap

func ConfigFromNamespacedMap(cfg map[string]string) *api.Config

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

func MergeDefaultWithAgentConfig(agentCfg *config.Nomad) *api.Config

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

func MergeMapWithAgentConfig(m map[string]string, cfg *api.Config)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL