Help us shape the future of Go! Take the 2026 Go Developer Survey

levant

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MPL-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TriggerDeployment

func TriggerDeployment(config *DeployConfig, nomadClient *nomad.Client) bool

TriggerDeployment provides the main entry point into a Levant deployment and is used to setup the clients before triggering the deployment process.

func TriggerDispatch

func TriggerDispatch(job string, metaMap map[string]string, payload []byte, address string) bool

TriggerDispatch provides the main entry point into a Levant dispatch and is used to setup the clients before triggering the dispatch process.

func TriggerPlan

func TriggerPlan(config *PlanConfig) (bool, bool)

TriggerPlan initiates a Levant plan run.

Types

type DeployConfig

type DeployConfig struct {
	Deploy   *structs.DeployConfig
	Client   *structs.ClientConfig
	Plan     *structs.PlanConfig
	Template *structs.TemplateConfig
}

DeployConfig is the set of config structs required to run a Levant deploy.

type PlanConfig

type PlanConfig struct {
	Client   *structs.ClientConfig
	Plan     *structs.PlanConfig
	Template *structs.TemplateConfig
}

PlanConfig is the set of config structs required to run a Levant plan.

type TaskCoordinate

type TaskCoordinate struct {
	Alloc    string
	TaskName string
}

TaskCoordinate is a coordinate for an allocation/task combination

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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