mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-19 07:43:54 +01:00
- Introduced ContainerRuntime field in AgentConfig and AgentEnvConfig. - Added IterAgents and NumAgents functions for agent pool management. - Updated agent creation and verification endpoints to handle container runtime. - Enhanced Docker Compose template to support different container runtimes. - Added runtime endpoint to retrieve agent runtime information.
26 lines
508 B
Go
26 lines
508 B
Go
package agent
|
|
|
|
type (
|
|
ContainerRuntime string
|
|
AgentEnvConfig struct {
|
|
Name string
|
|
Port int
|
|
CACert string
|
|
SSLCert string
|
|
ContainerRuntime ContainerRuntime
|
|
}
|
|
AgentComposeConfig struct {
|
|
Image string
|
|
*AgentEnvConfig
|
|
}
|
|
Generator interface {
|
|
Generate() (string, error)
|
|
}
|
|
)
|
|
|
|
const (
|
|
ContainerRuntimeDocker ContainerRuntime = "docker"
|
|
ContainerRuntimePodman ContainerRuntime = "podman"
|
|
// ContainerRuntimeNerdctl ContainerRuntime = "nerdctl"
|
|
)
|