nomad

package
v0.0.0-...-858ae3d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocTasks

func AllocTasks(Alloc *api.Allocation) ([]*api.Task, error)

Types

type Nomad

type Nomad struct {
	Address    string
	AllocsDir  string
	NodeID     string
	MetaPrefix string
}

func (*Nomad) Allocs

func (n *Nomad) Allocs() []*api.Allocation

func (*Nomad) Client

func (n *Nomad) Client() *api.Client

func (*Nomad) SetNodeIDFromEnvs

func (n *Nomad) SetNodeIDFromEnvs()

func (*Nomad) TaskMeta

func (n *Nomad) TaskMeta(Task api.Task) map[string]string

func (*Nomad) TaskMetaGet

func (n *Nomad) TaskMetaGet(Task api.Task, Key string, Default string) string

Jump to

Keyboard shortcuts

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