bring back database check

This commit is contained in:
yusing
2025-02-24 08:46:59 +08:00
parent 1d16d514c7
commit 9925b042d8
2 changed files with 39 additions and 1 deletions

View File

@@ -32,6 +32,14 @@ func (c containerHelper) getName() string {
return strings.TrimPrefix(c.Names[0], "/")
}
func (c containerHelper) getMounts() []string {
m := make([]string, len(c.Mounts))
for i, v := range c.Mounts {
m[i] = v.Destination
}
return m
}
func (c containerHelper) parseImage() *ContainerImage {
colonSep := strutils.SplitRune(c.Image, ':')
slashSep := strutils.SplitRune(colonSep[0], '/')