nomad

package
v0.2.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MPL-2.0 Imports: 4 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 MergeMapWithAgentConfig

func MergeMapWithAgentConfig(m map[string]string, agentCfg *config.Nomad)

MergeMapWithAgentConfig merges a Nomad map config with an agent config. The config parameters within the map take preference.

Types

This section is empty.

Jump to

Keyboard shortcuts

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