client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulClient

func NewConsulClient() (*consulAPI.Client, error)

NewConsulClient is responsible for generating a reusable Consul client using the HashiCorp Consul SDK and the default config. This default config pulls Consul client configuration from env vars which can therefore be customized by the user.

Types

type Nomad

type Nomad struct {
	Client *api.Client
	NodeID string
}

Nomad is a wrapper around the Nomad client which includes the current nodeID if found. This allows the Chemtrail server to protect the node it is running on from scale in activities which would cause undesirable situations.

func NewNomadClient

func NewNomadClient() (*Nomad, error)

NewNomadClient builds the reusable Nomad client.

Jump to

Keyboard shortcuts

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