Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOverlayMount ¶
func CreateOverlayMount(ctx context.Context, opts OverlayMountOptions) error
CreateOverlayMount 创建一个 Overlay 挂载
Types ¶
type Mount ¶
type Mount interface { // ID 返回挂载 ID ID() uid.UID // MountPath 返回挂载点绝对路径 MountPath() string // Mount 挂载 Mount(ctx context.Context) error // Umount 卸载 Umount(ctx context.Context) error // CreateSymlink 在指定路径创建访问挂载点的软链 CreateSymlink(ctx context.Context, path string) error }
Mount 挂载
func NewMountedMount ¶
func NewMountedMount(id uid.UID, opts MountOptions) Mount
NewMountedMount 创建一个已经挂载的挂载
type MountOptions ¶
MountOptions 挂载选项
type OverlayMountOptions ¶
type OverlayMountOptions struct { // 挂载来源(挂载点名) // 默认为 overlay Source string // 挂载点路径 MountPath string // OverlayFS lowerdir LowerDir []string // OverlayFS upperdir UpperDir string // OverlayFS workdir WorkDir string // 是否只读挂载 ReadOnly bool }
OverlayMountOptions OverlayFS 挂载选项
Click to show internal directories.
Click to hide internal directories.