1
0

feat: define container volumes as a structure

This commit is contained in:
dump_stack() 2023-05-14 21:24:01 +00:00
parent 1a2929a1aa
commit 42be5161d8
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -70,16 +70,18 @@ func ImagePath(sk config.KernelMask) string {
return config.Dir("containers", sk.DistroType.String(), sk.DistroRelease) return config.Dir("containers", sk.DistroType.String(), sk.DistroRelease)
} }
type Volumes struct {
LibModules string
UsrSrc string
Boot string
}
type Container struct { type Container struct {
name string name string
timeout time.Duration timeout time.Duration
Volumes struct { Volumes Volumes
LibModules string
UsrSrc string
Boot string
}
// Additional arguments // Additional arguments
Args []string Args []string