package overlay
import "github.com/Microsoft/hcsshim/internal/guest/storage/overlay"
Index ¶
- func Mount(ctx context.Context, basePaths []string, upperdirPath, workdirPath, target string, readonly bool) (err error)
- func MountLayer(ctx context.Context, layerPaths []string, upperdirPath, workdirPath, rootfsPath string, readonly bool, containerId string, securityPolicy securitypolicy.SecurityPolicyEnforcer) (err error)
Functions ¶
func Mount ¶
func Mount(ctx context.Context, basePaths []string, upperdirPath, workdirPath, target string, readonly bool) (err error)
Mount creates an overlay mount with `basePaths` at `target`.
If `upperdirPath != ""` the path will be created. On mount failure the created `upperdirPath` will be automatically cleaned up.
If `workdirPath != ""` the path will be created. On mount failure the created `workdirPath` will be automatically cleaned up.
Always creates `target`. On mount failure the created `target` will be automatically cleaned up.
func MountLayer ¶
func MountLayer(ctx context.Context, layerPaths []string, upperdirPath, workdirPath, rootfsPath string, readonly bool, containerId string, securityPolicy securitypolicy.SecurityPolicyEnforcer) (err error)
MountLayer first enforces the security policy for the container's layer paths and then calls Mount to mount the layer paths as an overlayfs
Source Files ¶
- Version
- v0.10.0-rc.0
- Published
- Jul 18, 2022
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 2 hours ago –
Tools for package owners.