From 42be5161d8674b9f9315861d2131b6e6590bdabc Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 14 May 2023 21:24:01 +0000 Subject: [PATCH] feat: define container volumes as a structure --- container/container.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/container/container.go b/container/container.go index 4089799..39966ba 100644 --- a/container/container.go +++ b/container/container.go @@ -70,16 +70,18 @@ func ImagePath(sk config.KernelMask) string { return config.Dir("containers", sk.DistroType.String(), sk.DistroRelease) } +type Volumes struct { + LibModules string + UsrSrc string + Boot string +} + type Container struct { name string timeout time.Duration - Volumes struct { - LibModules string - UsrSrc string - Boot string - } + Volumes Volumes // Additional arguments Args []string