Documentation
¶
Overview ¶
Package agent provides agent-related API handlers.
Index ¶
- func Handler(logger *slog.Logger, jobClient client.JobClient, signingKey string, ...) []func(e *echo.Echo)
- type Agent
- func (a *Agent) DrainAgent(ctx context.Context, request gen.DrainAgentRequestObject) (gen.DrainAgentResponseObject, error)
- func (a *Agent) GetAgentDetails(ctx context.Context, request gen.GetAgentDetailsRequestObject) (gen.GetAgentDetailsResponseObject, error)
- func (a *Agent) GetAgents(ctx context.Context, _ gen.GetAgentsRequestObject) (gen.GetAgentsResponseObject, error)
- func (a *Agent) UndrainAgent(ctx context.Context, request gen.UndrainAgentRequestObject) (gen.UndrainAgentResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// JobClient provides job-based operations for agent queries.
JobClient client.JobClient
// contains filtered or unexported fields
}
Agent implementation of the Agent APIs operations.
func (*Agent) DrainAgent ¶
func (a *Agent) DrainAgent( ctx context.Context, request gen.DrainAgentRequestObject, ) (gen.DrainAgentResponseObject, error)
DrainAgent handles POST /agent/{hostname}/drain.
func (*Agent) GetAgentDetails ¶
func (a *Agent) GetAgentDetails( ctx context.Context, request gen.GetAgentDetailsRequestObject, ) (gen.GetAgentDetailsResponseObject, error)
GetAgentDetails retrieves detailed information about a specific agent.
func (*Agent) GetAgents ¶
func (a *Agent) GetAgents( ctx context.Context, _ gen.GetAgentsRequestObject, ) (gen.GetAgentsResponseObject, error)
GetAgents discovers all active agents in the fleet.
func (*Agent) UndrainAgent ¶
func (a *Agent) UndrainAgent( ctx context.Context, request gen.UndrainAgentRequestObject, ) (gen.UndrainAgentResponseObject, error)
UndrainAgent handles POST /agent/{hostname}/undrain.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.