detached 24d79bf

feat(domain): add ImageID to Container and GetImageID to runtime interface

commit
24d79bf594991b712b38216d6c8a238bdeeaded4
author
bnema · · 2026-02-09 20:41 UTC
parent
3038498
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +4 -0
M internal/boundaries/out/runtime.go +3 -0
@@ -61,6 +61,9 @@ type ContainerRuntime interface {
6161 // Label inspection
6262 GetImageLabels(ctx context.Context, imageRef string) (map[string]string, error)
6363
64+ // Image identity
65+ GetImageID(ctx context.Context, imageRef string) (string, error)
66+
6467 // In-container operations
6568 ExecInContainer(ctx context.Context, containerID string, cmd []string) (*ExecResult, error)
6669 CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, error)
@@ -61,6 +61,9 @@ type ContainerRuntime interface {
61 // Label inspection61 // Label inspection
62 GetImageLabels(ctx context.Context, imageRef string) (map[string]string, error)62 GetImageLabels(ctx context.Context, imageRef string) (map[string]string, error)
63 63
64+ // Image identity
65+ GetImageID(ctx context.Context, imageRef string) (string, error)
66+
64 // In-container operations67 // In-container operations
65 ExecInContainer(ctx context.Context, containerID string, cmd []string) (*ExecResult, error)68 ExecInContainer(ctx context.Context, containerID string, cmd []string) (*ExecResult, error)
66 CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, error)69 CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, error)
M internal/domain/container.go +1 -0
@@ -6,6 +6,7 @@ package domain
66 type Container struct {
77 ID string
88 Image string
9+ ImageID string // Docker image ID (sha256 digest) used to detect redundant deploys
910 Name string
1011 Status string
1112 ExitCode int
@@ -6,6 +6,7 @@ package domain
6 type Container struct {6 type Container struct {
7 ID string7 ID string
8 Image string8 Image string
9+ ImageID string // Docker image ID (sha256 digest) used to detect redundant deploys
9 Name string10 Name string
10 Status string11 Status string
11 ExitCode int12 ExitCode int

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close