class

Mangrullo::ImageChecker

Inherits Reference < Object

Constructors

new(docker_client : DockerClient)
Source

Instance methods

create_registry_client(registry_host : String) : HTTP::Client
Source
extract_version_from_image(image_name : String) : Version | Nil
Source
find_target_update_tag(image_name : String, current_version : Version, allow_major_upgrade : Bool) : String | Nil

Like find_target_update_version, but returns the actual registry tag string for the target — the tag must exist upstream to be pullable.

Source
find_target_update_version(image_name : String, current_version : Version, allow_major_upgrade : Bool) : Version | Nil
Source
get_all_versions(image_name : String) : Array(Version)
Source
get_container_image_digest(container_image_id : String) : String | Nil
Source
get_image_update_info(image_name : String) : NamedTuple(has_update: Bool, local_version: Version | Nil, remote_version: Version | Nil)
Source
get_latest_version(image_name : String) : Version | Nil
Source
get_local_image_digest(image_name : String) : String | Nil
Source
get_local_image_info(image_name : String) : NamedTuple(id: String | Nil, digest: String | Nil)
Source
get_remote_image_digest(image_name : String) : String | Nil
Source
get_remote_image_digest_for_registry(image_name : String, registry_host : String) : String | Nil
Source
get_remote_image_info(image_name : String) : NamedTuple(id: String | Nil, digest: String | Nil)
Source
get_update_status(container : ContainerInfo) : NamedTuple(needs_pull: Bool, needs_restart: Bool, local_digest: String | Nil, remote_digest: String | Nil)
Source
image_has_update?(image_name : String) : Bool
Source
needs_update?(container : ContainerInfo, allow_major_upgrade : Bool = false) : Bool
Source
target_image_for_update(container : ContainerInfo, allow_major_upgrade : Bool = false) : String | Nil

The image reference an update should pull and recreate the container with. Versioned images get the newer tag; moving tags (latest, postgres:16, digest pins) stay on the same reference and pick up the newly pushed digest instead.

Source