Thread-safe container for all Docker container state
Constructors
instance
Get the singleton instance
SourceClass methods
reset
Reset the singleton (mainly for testing)
SourceInstance methods
clear
Clear all data (for testing or reset)
Sourcecontainer(container_id :
String) :
ContainerData |
Nil Get a specific container by ID
Sourcecontainers
Get all containers thread-safely, sorted with those needing updates first
Sourcecontainers_needing_update
Get containers needing updates
Sourcelast_update
Get last full update time
Sourcemark_update_attempt(container_id :
String)
Mark update attempt for a container
Sourceremove_container(container_id :
String)
Remove a specific container (e.g., when it's recreated with a new ID)
Sourceupdate_container_update_info(container_id :
String, update_info)
Update container update info
Sourceupdate_containers(containers :
Array(
ContainerInfo))
Update containers atomically
Sourceupdate_in_progress=(in_progress :
Bool)
Set update in progress status
Sourceupdate_in_progress?
Check if update is in progress
Source