0b8cd401c2
- Add missing repository action constants to pkg/websocket/actions.go - Update repository_handlers.go to use action constants instead of string literals - Refactor orchestrator module: create dto/, controller/, handlers/ packages - Refactor agent module: create dto/, controller/, handlers/ packages - Update main.go and integration tests to use new Pattern A wiring - Remove old wshandlers/ directories from both modules All modules now follow the same architecture: handlers/ → Parse WS messages, validate, call controller controller/ → Business logic coordination, convert to/from DTOs dto/ → Centralized request/response Data Transfer Objects service/ → Core business logic (unchanged)
16 lines
451 B
Go
16 lines
451 B
Go
package controller
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrLifecycleManagerNotAvailable is returned when lifecycle manager is nil
|
|
ErrLifecycleManagerNotAvailable = errors.New("agent lifecycle manager not available")
|
|
|
|
// ErrRegistryNotAvailable is returned when registry is nil
|
|
ErrRegistryNotAvailable = errors.New("agent registry not available")
|
|
|
|
// ErrAgentNotFound is returned when agent is not found
|
|
ErrAgentNotFound = errors.New("agent not found")
|
|
)
|
|
|