Documentation
¶
Index ¶
- Variables
- func ListActiveAgentsHandler(s *Supervisor) http.HandlerFunc
- func ListAgentsHandler(s *Supervisor) http.HandlerFunc
- func PullDockerHubAgentHandler(s *Supervisor) http.HandlerFunc
- func ShowAgentInfoHandler(s *Supervisor) http.HandlerFunc
- func UploadImageHandler(s *Supervisor) http.HandlerFunc
- func ValidateAgentHandler(s *Supervisor) http.HandlerFunc
- type AgentInfo
- type Config
- type Supervisor
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
DockerHost: "tcp://127.0.0.1:2376",
}
Functions ¶
func ListActiveAgentsHandler ¶
func ListActiveAgentsHandler(s *Supervisor) http.HandlerFunc
ListActiveAgentsHandler lists agents that are currently running.
func ListAgentsHandler ¶
func ListAgentsHandler(s *Supervisor) http.HandlerFunc
ListAgentsHandler lists AI agents.
func PullDockerHubAgentHandler ¶
func PullDockerHubAgentHandler(s *Supervisor) http.HandlerFunc
PullDockerHubAgentHandler pulls the Docker image named |image| from DockerHub.
func ShowAgentInfoHandler ¶
func ShowAgentInfoHandler(s *Supervisor) http.HandlerFunc
ShowImageHandler shows information about an AI Agent
func UploadImageHandler ¶
func UploadImageHandler(s *Supervisor) http.HandlerFunc
UploadImageHandler ensures that the Agent image responds to the PING command.
func ValidateAgentHandler ¶
func ValidateAgentHandler(s *Supervisor) http.HandlerFunc
ValidateAgentHandler ensures that the Agent image responds to the PING command.
Types ¶
type Supervisor ¶
Supervisor manages AI agents running in Docker containers
func NewSupervisor ¶
func NewSupervisor(config Config) (*Supervisor, error)
func (*Supervisor) ValidateImage ¶
func (s *Supervisor) ValidateImage(image string) error
Click to show internal directories.
Click to hide internal directories.