class

Mangrullo::ContainerState

Inherits Reference < Object

Thread-safe container for all Docker container state

Constructors

instance

Get the singleton instance

Source

Class methods

reset

Reset the singleton (mainly for testing)

Source

Instance methods

clear

Clear all data (for testing or reset)

Source
container(container_id : String) : ContainerData | Nil

Get a specific container by ID

Source
container_count

Get container count

Source
containers

Get all containers thread-safely, sorted with those needing updates first

Source
containers_needing_update

Get containers needing updates

Source
last_error

Get last error

Source
last_error=(error : String)

Set last error

Source
last_update

Get last full update time

Source
mark_update_attempt(container_id : String)

Mark update attempt for a container

Source
remove_container(container_id : String)

Remove a specific container (e.g., when it's recreated with a new ID)

Source
update_container_update_info(container_id : String, update_info)

Update container update info

Source
update_containers(containers : Array(ContainerInfo))

Update containers atomically

Source
update_in_progress=(in_progress : Bool)

Set update in progress status

Source
update_in_progress?

Check if update is in progress

Source

Nested types