Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentStatus ¶
type AgentStatus struct {
// Core identification
Name string `json:"name"`
Status string `json:"status"` // "running", "stopped", "error", "unavailable"
// Variant: "local" (container-based) or "remote" (A2A only)
Variant string `json:"variant"`
// Container fields (populated for local/container-based agents)
Image string `json:"image,omitempty"`
ContainerID string `json:"containerId,omitempty"`
Uses []config.ToolSelector `json:"uses,omitempty"`
// A2A fields (populated when agent has A2A capability)
HasA2A bool `json:"hasA2A"`
Role string `json:"role,omitempty"` // "local" or "remote"
URL string `json:"url,omitempty"` // A2A endpoint URL
Endpoint string `json:"endpoint,omitempty"` // A2A RPC endpoint
SkillCount int `json:"skillCount,omitempty"` // Number of A2A skills
Skills []string `json:"skills,omitempty"` // A2A skill names
Description string `json:"description,omitempty"` // Agent description
}
AgentStatus contains unified status for all agents (local containers and remote A2A). This merges container state with A2A protocol state into a single representation.
type MCPServerStatus ¶
type MCPServerStatus struct {
Name string `json:"name"`
Transport string `json:"transport"`
Endpoint string `json:"endpoint"`
Initialized bool `json:"initialized"`
ToolCount int `json:"toolCount"`
Tools []string `json:"tools"`
External bool `json:"external"`
LocalProcess bool `json:"localProcess"`
SSH bool `json:"ssh"`
SSHHost string `json:"sshHost,omitempty"`
}
MCPServerStatus mirrors the mcp.MCPServerStatus type for API responses.
type ResourceStatus ¶
type ResourceStatus struct {
Name string `json:"name"`
Image string `json:"image"`
Status string `json:"status"`
}
ResourceStatus contains status information for a resource container.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides the combined API server for gridctl.
func (*Server) A2AGateway ¶
A2AGateway returns the A2A gateway.
func (*Server) SetA2AGateway ¶
SetA2AGateway sets the A2A gateway for agent-to-agent communication.
func (*Server) SetDockerClient ¶
func (s *Server) SetDockerClient(cli dockerclient.DockerClient)
SetDockerClient sets the Docker client for container operations.
func (*Server) SetTopologyName ¶
SetTopologyName sets the topology name for container lookups.
type ServerInfo ¶
ServerInfo mirrors the mcp.ServerInfo type for API responses.