File tree Expand file tree Collapse file tree 3 files changed +46
-28
lines changed Expand file tree Collapse file tree 3 files changed +46
-28
lines changed Original file line number Diff line number Diff line change 5
5
// a tmpfs is mounted over it.
6
6
EXT_COPYUP = 1 << iota //nolint:golint // ignore "don't use ALL_CAPS" warning
7
7
)
8
-
9
- type mountBase 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
- }
Original file line number Diff line number Diff line change @@ -3,10 +3,32 @@ package configs
3
3
import "golang.org/x/sys/unix"
4
4
5
5
type Mount struct {
6
- mountBase
6
+ // Source path for the mount.
7
+ Source string `json:"source"`
8
+
9
+ // Destination path for the mount inside the container.
10
+ Destination string `json:"destination"`
11
+
12
+ // Device the mount is for.
13
+ Device string `json:"device"`
14
+
15
+ // Mount flags.
16
+ Flags int `json:"flags"`
17
+
18
+ // Propagation Flags
19
+ PropagationFlags []int `json:"propagation_flags"`
20
+
21
+ // Mount data applied to the mount.
22
+ Data string `json:"data"`
23
+
24
+ // Relabel source if set, "z" indicates shared, "Z" indicates unshared.
25
+ Relabel string `json:"relabel"`
7
26
8
27
// RecAttr represents mount properties to be applied recursively (AT_RECURSIVE), see mount_setattr(2).
9
28
RecAttr * unix.MountAttr `json:"rec_attr"`
29
+
30
+ // Extensions are additional flags that are specific to runc.
31
+ Extensions int `json:"extensions"`
10
32
}
11
33
12
34
func (m * Mount ) IsBind () bool {
Original file line number Diff line number Diff line change 4
4
package configs
5
5
6
6
type Mount struct {
7
- mountBase
7
+ // Source path for the mount.
8
+ Source string `json:"source"`
9
+
10
+ // Destination path for the mount inside the container.
11
+ Destination string `json:"destination"`
12
+
13
+ // Device the mount is for.
14
+ Device string `json:"device"`
15
+
16
+ // Mount flags.
17
+ Flags int `json:"flags"`
18
+
19
+ // Propagation Flags
20
+ PropagationFlags []int `json:"propagation_flags"`
21
+
22
+ // Mount data applied to the mount.
23
+ Data string `json:"data"`
24
+
25
+ // Relabel source if set, "z" indicates shared, "Z" indicates unshared.
26
+ Relabel string `json:"relabel"`
27
+
28
+ // Extensions are additional flags that are specific to runc.
29
+ Extensions int `json:"extensions"`
8
30
}
9
31
10
32
func (m * Mount ) IsBind () bool {
You can’t perform that action at this time.
0 commit comments