mount.go 1003 B

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