Versions in this module Expand all Collapse all v0 v0.3.0 Jun 11, 2026 Changes in this version + type Container struct + ID string + Image string + Name string + Ports string + Status string + type ContainerStats struct + CPU string + Memory string + Name string + type DevOpsAgent struct + func NewDevOpsAgent(gateway agents.AIGateway, notifier Notifier, approver func(action string) bool) *DevOpsAgent + func (a *DevOpsAgent) Connect(ctx context.Context, host, user, keyPath string) error + func (a *DevOpsAgent) Handle(ctx context.Context, msg string, progressFn func(string)) (string, error) + func (a *DevOpsAgent) Servers() []string + type DockerManager struct + func NewDockerManager(server *Server) *DockerManager + func (d *DockerManager) ListContainers(ctx context.Context) ([]Container, error) + func (d *DockerManager) Logs(ctx context.Context, name string, lines int) (string, error) + func (d *DockerManager) Pull(ctx context.Context, image string) error + func (d *DockerManager) RunContainer(ctx context.Context, image, name string, ports, envVars map[string]string) error + func (d *DockerManager) StartContainer(ctx context.Context, name string) error + func (d *DockerManager) Stats(ctx context.Context) ([]ContainerStats, error) + func (d *DockerManager) StopContainer(ctx context.Context, name string) error + type NginxManager struct + func NewNginxManager(server *Server) *NginxManager + func (n *NginxManager) AddSite(ctx context.Context, domain, upstream string, sslEnabled bool) error + func (n *NginxManager) EnableSSL(ctx context.Context, domain, email string) error + func (n *NginxManager) ListSites(ctx context.Context) ([]string, error) + func (n *NginxManager) Reload(ctx context.Context) error + func (n *NginxManager) RemoveSite(ctx context.Context, domain string) error + func (n *NginxManager) Status(ctx context.Context) (string, error) + type Notifier interface + Notify func(ctx context.Context, title, body string) error + type SSHClient struct + func NewSSHClient(cfg SSHConfig) (*SSHClient, error) + func (c *SSHClient) Close() error + func (c *SSHClient) Connect(ctx context.Context) error + func (c *SSHClient) Download(ctx context.Context, remotePath, localPath string) error + func (c *SSHClient) ReadRemote(ctx context.Context, remotePath string) ([]byte, error) + func (c *SSHClient) Run(ctx context.Context, command string) (stdout, stderr string, exitCode int, err error) + func (c *SSHClient) RunStream(ctx context.Context, command string, outputFn func(line string)) error + func (c *SSHClient) SetTOFULogger(fn func(host, fingerprint string)) + func (c *SSHClient) Upload(ctx context.Context, localPath, remotePath string) error + func (c *SSHClient) WriteRemote(ctx context.Context, remotePath string, data []byte) error + type SSHConfig struct + Host string + KeyData []byte + KeyPath string + KnownHosts string + Password string + Port int + Timeout time.Duration + User string + type Server struct + Arch string + OS string + func NewServer(ssh *SSHClient) (*Server, error) + func (s *Server) InstallPackage(ctx context.Context, pkg string) error + func (s *Server) RunCommand(ctx context.Context, cmd string, stream func(string)) (string, error) + func (s *Server) ServiceRestart(ctx context.Context, service string) error + func (s *Server) ServiceStatus(ctx context.Context, service string) (string, error) + func (s *Server) SetApprover(fn func(action string) bool) + func (s *Server) SystemInfo() (*SystemInfo, error) + type SystemInfo struct + Arch string + CPUs int + DiskGB int + Hostname string + LoadAvg string + MemoryMB int + OS string + Uptime string