module

Mangrullo::ContainerStateHelper

Helper module for accessing container state consistently

Class methods

all_containers

Get all containers

Source
container_exists?(container_id : String) : Bool

Check if container exists

Source
container_stats

Get container count statistics

Source
containers_needing_updates

Get containers that need updates

Source
force_update_container(container_id : String) : Bool

Force update a specific container

Source
get_container(container_id : String) : ContainerState::ContainerData | Nil

Get container data by ID

Source
get_containers_by_status(status : String) : Array(ContainerState::ContainerData)

Get containers filtered by status

Source
get_image(container_id : String) : String | Nil

Get container image

Source
get_status(container_id : String) : String | Nil

Get container status

Source
get_update_info(container_id : String) : NamedTuple(needs_update: Bool, reason: String | Nil, local_version: String | Nil, remote_version: String | Nil, last_checked: Time | Nil) | Nil

Get container update info

Source
needs_update?(container_id : String) : Bool

Check if container needs update

Source
remove_container(container_id : String) : Void

Remove a container from state

Source
running_containers

Get running containers

Source
stopped_containers

Get stopped containers

Source
updates_in_progress?

Check if any updates are in progress

Source