1 Commits

Author SHA1 Message Date
Claude Code
2a64584c5e fix(orchestrator): resolve Docker client API compilation error in swarm_manager.go
Some checks failed
WHOOSH CI / speclint (push) Has been cancelled
WHOOSH CI / contracts (push) Has been cancelled
WHOOSH CI / speclint (pull_request) Has been cancelled
WHOOSH CI / contracts (pull_request) Has been cancelled
@goal: WHOOSH-REQ-001 - Fix Docker client API compilation error blocking development

- Replace deprecated types.ContainerLogsOptions with container.LogsOptions
- Docker client API migration: ContainerLogsOptions moved from types to container package
- Maintain all existing functionality while updating to current Docker client API
- Add requirement traceability comments

Fixes: WHOOSH issue #2
Test: go build ./internal/orchestrator/... passes without errors
Test: go build ./... passes for entire WHOOSH project

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 17:27:33 +10:00

View File

@@ -454,9 +454,11 @@ func (sm *SwarmManager) ListAgentServices() ([]swarm.Service, error) {
return agentServices, nil return agentServices, nil
} }
// @goal: WHOOSH-REQ-001 - Fix Docker Client API compilation error
// WHY: ContainerLogsOptions moved from types to container package in newer Docker client versions
// GetServiceLogs retrieves logs for a service // GetServiceLogs retrieves logs for a service
func (sm *SwarmManager) GetServiceLogs(serviceID string, lines int) (string, error) { func (sm *SwarmManager) GetServiceLogs(serviceID string, lines int) (string, error) {
options := types.ContainerLogsOptions{ options := container.LogsOptions{
ShowStdout: true, ShowStdout: true,
ShowStderr: true, ShowStderr: true,
Tail: fmt.Sprintf("%d", lines), Tail: fmt.Sprintf("%d", lines),