module

Krikri::PluginHelpers::PodmanImage

PodmanImage - pure logic for the podman_image plugin: image reference construction (the real module's name/tag combination) and creds argument building. Split out so this logic is unit-spec-able (execution needs a real podman host).

Class methods

build_reference(name : String, tag : String | Nil) : String

name may carry its own tag/digest; the separate tag param only applies when the name has none of its own (the real module's image-name split).

Source
creds_argument(username : String | Nil, password : String | Nil) : String

--creds argument for pull: "user" alone or "user:password".

Source