This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #375 from crosbymichael/move-system-mounts
Refactor system mounts to be placed on the config
- Loading branch information
Showing
9 changed files
with
173 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
package configs | ||
|
||
type Mount struct { | ||
Type string `json:"type"` | ||
Source string `json:"source"` // Source path, in the host namespace | ||
Destination string `json:"destination"` // Destination path, in the container | ||
Writable bool `json:"writable"` | ||
Relabel string `json:"relabel"` // Relabel source if set, "z" indicates shared, "Z" indicates unshared | ||
Private bool `json:"private"` | ||
Slave bool `json:"slave"` | ||
// Source path for the mount. | ||
Source string `json:"source"` | ||
|
||
// Destination path for the mount inside the container. | ||
Destination string `json:"destination"` | ||
|
||
// Device the mount is for. | ||
Device string `json:"device"` | ||
|
||
// Mount flags. | ||
Flags int `json:"flags"` | ||
|
||
// Mount data applied to the mount. | ||
Data string `json:"data"` | ||
|
||
// Relabel source if set, "z" indicates shared, "Z" indicates unshared. | ||
Relabel string `json:"relabel"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.