mount.go 762 B

12345678910111213141516171819202122232425262728293031
  1. package configs
  2. type Mount struct {
  3. // Source path for the mount.
  4. Source string `json:"source"`
  5. // Destination path for the mount inside the container.
  6. Destination string `json:"destination"`
  7. // Device the mount is for.
  8. Device string `json:"device"`
  9. // Mount flags.
  10. Flags int `json:"flags"`
  11. // Propagation Flags
  12. PropagationFlags []int `json:"propagation_flags"`
  13. // Mount data applied to the mount.
  14. Data string `json:"data"`
  15. // Relabel source if set, "z" indicates shared, "Z" indicates unshared.
  16. Relabel string `json:"relabel"`
  17. // Optional Command to be run before Source is mounted.
  18. PremountCmds []Command `json:"premount_cmds"`
  19. // Optional Command to be run after Source is mounted.
  20. PostmountCmds []Command `json:"postmount_cmds"`
  21. }