nomad

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromMap

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

ConfigFromMap takes a generic map and converts it to a Nomad API config struct.

func ConfigToMap

func ConfigToMap(cfg *config.Nomad) map[string]string

ConfigToMap takes the Autoscalers internal configuration for Nomad API connectivity and translates this to a map. This helper is needed when passing configuration to plugins via generic structures.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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