feat: define container volumes as a structure
This commit is contained in:
parent
1a2929a1aa
commit
42be5161d8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user