github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/libcontainer/configs/mount.go (about) 1 package configs 2 3 const ( 4 // EXT_COPYUP is a directive to copy up the contents of a directory when 5 // a tmpfs is mounted over it. 6 EXT_COPYUP = 1 << iota 7 ) 8 9 type Mount struct { 10 // Source path for the mount. 11 Source string `json:"source"` 12 13 // Destination path for the mount inside the container. 14 Destination string `json:"destination"` 15 16 // Device the mount is for. 17 Device string `json:"device"` 18 19 // Mount flags. 20 Flags int `json:"flags"` 21 22 // Propagation Flags 23 PropagationFlags []int `json:"propagation_flags"` 24 25 // Mount data applied to the mount. 26 Data string `json:"data"` 27 28 // Relabel source if set, "z" indicates shared, "Z" indicates unshared. 29 Relabel string `json:"relabel"` 30 31 // Extensions are additional flags that are specific to runc. 32 Extensions int `json:"extensions"` 33 34 // Optional Command to be run before Source is mounted. 35 PremountCmds []Command `json:"premount_cmds"` 36 37 // Optional Command to be run after Source is mounted. 38 PostmountCmds []Command `json:"postmount_cmds"` 39 }