Documentation
¶
Overview ¶
Package mount provides general data structure for mount and mount namespace (multiple mounts) definition.
Index ¶
- type Builder
- func (b *Builder) Build(skipNotExists bool) ([]SyscallParams, error)
- func (b Builder) String() string
- func (b *Builder) WithBind(source, target string, readonly bool) *Builder
- func (b *Builder) WithMount(m Mount) *Builder
- func (b *Builder) WithMounts(m []Mount) *Builder
- func (b *Builder) WithProc() *Builder
- func (b *Builder) WithTmpfs(target, data string) *Builder
- type Mount
- type SyscallParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
Mounts []Mount
}
Builder builds fork_exec friendly mount syscall format
func NewDefaultBuilder ¶ added in v0.1.1
func NewDefaultBuilder() *Builder
NewDefaultBuilder creates default builder for minimal rootfs
func (*Builder) Build ¶
func (b *Builder) Build(skipNotExists bool) ([]SyscallParams, error)
Build creates sequence of syscalls for fork_exec skipNotExists skips bind mounts that source not exists
func (*Builder) WithMounts ¶
WithMounts add mounts to builder
Click to show internal directories.
Click to hide internal directories.