agent

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	NomadClient *api.Client
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(c *config.Agent, configPaths []string, logger hclog.Logger) *Agent

func (*Agent) DisplayMetrics added in v0.2.0

func (a *Agent) DisplayMetrics(resp http.ResponseWriter, req *http.Request) (interface{}, error)

func (*Agent) GenerateNomadClient added in v0.4.0

func (a *Agent) GenerateNomadClient() error

GenerateNomadClient creates a Nomad client for use within the agent.

func (*Agent) ReloadAgent added in v0.2.0

func (a *Agent) ReloadAgent(_ http.ResponseWriter, _ *http.Request) (interface{}, error)

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

type MockAgentHTTP added in v0.2.0

type MockAgentHTTP struct{}

func (*MockAgentHTTP) DisplayMetrics added in v0.2.0

func (m *MockAgentHTTP) DisplayMetrics(resp http.ResponseWriter, req *http.Request) (interface{}, error)

func (*MockAgentHTTP) ReloadAgent added in v0.2.0

func (m *MockAgentHTTP) ReloadAgent(resp http.ResponseWriter, req *http.Request) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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