Versions in this module Expand all Collapse all v0 v0.1.0 Nov 7, 2026 Changes in this version + var BaseDir = "/opt/nomadtest" + func NewClientServerPair(bin string, serverOut, clientOut io.Writer) (server *NomadAgent, client *NomadAgent, err error) + type AgentMode int + const ModeBoth + const ModeClient + const ModeServer + type AgentTemplateVars struct + EnableClient bool + EnableServer bool + HTTP int + LogLevel string + RPC int + Serf int + type NomadAgent struct + BinPath string + Cmd *exec.Cmd + ConfFile string + DataDir string + Vars *AgentTemplateVars + func NewMixedAgent(bin string) (*NomadAgent, error) + func (n *NomadAgent) Client() (*api.Client, error) + func (n *NomadAgent) Destroy() error + func (n *NomadAgent) Start() error + func (n *NomadAgent) Stop() error v0.1.0-preview.3 Nov 7, 2026 v0.1.0-preview.2 Nov 7, 2026 v0.1.0-preview.1 Nov 7, 2026