Versions in this module Expand all Collapse all v0 v0.11.2 May 28, 2020 v0.10.4 Apr 1, 2020 v0.9.3 Jun 12, 2019 v0.9.2 Jun 5, 2019 v0.9.2-rc1 May 23, 2019 v0.9.1 Apr 29, 2019 v0.9.1-rc1 Apr 23, 2019 v0.9.0 Apr 9, 2019 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.9.0-rc2 Apr 3, 2019 v0.9.0-rc1 Mar 22, 2019