nomadclient

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package nomadclient contains a flower to install a Nomad client.

Index

Constants

View Source
const (
	Name = "nomadclient"

	ConfigFile       = "embedded/nomad.client.hcl"
	UnitFile         = "embedded/nomad-client.service"
	CaKeyPubFile     = "embedded/CaKeyPub"
	ClientKeyFile    = "embedded/ClientKey"
	ClientKeyPubFile = "embedded/ClientKeyPub"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Environment string

	// Apply to client and servers.
	NomadCaPub string
	// Apply only to clients.
	NomadClientKey    string
	NomadClientKeyPub string
}

type Flower

type Flower struct {
	Inst
	Conf
}

WARNING: Do NOT install alongside a Nomad server.

func (*Flower) Configure

func (fl *Flower) Configure() error

func (*Flower) Description

func (fl *Flower) Description() string

func (*Flower) Embedded

func (fl *Flower) Embedded() []string

func (*Flower) Init

func (fl *Flower) Init() error

func (*Flower) Install

func (fl *Flower) Install() error

func (*Flower) String

func (fl *Flower) String() string

type Inst

type Inst struct {
	Version string
	Hash    string
	Fsys    fs.FS
}

Jump to

Keyboard shortcuts

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