mounter

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureMountPoint

func EnsureMountPoint(ctx context.Context, mountPoint string) error

func IsMounted

func IsMounted(ctx context.Context, mountPoint string) (bool, error)

func Mount

func Mount(ctx context.Context, builder Builder) error

func UMount

func UMount(ctx context.Context, mountPoint string, lazy bool) error

Types

type BindFrom

type BindFrom interface {
	From(path string) MountPointer
}

type Builder

type Builder interface {
	Build() (MountCmd, error)
}

type MountBuilder

type MountBuilder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *MountBuilder

func (*MountBuilder) Bind

func (b *MountBuilder) Bind() BindFrom

func (*MountBuilder) Build

func (b *MountBuilder) Build() (MountCmd, error)

func (*MountBuilder) From

func (b *MountBuilder) From(path string) MountPointer

func (*MountBuilder) MountPoint

func (b *MountBuilder) MountPoint(path string) Builder

func (*MountBuilder) RBind

func (b *MountBuilder) RBind() BindFrom

func (*MountBuilder) Size

func (b *MountBuilder) Size(sizeInBytes string) MountPointer

func (*MountBuilder) Tmpfs

func (b *MountBuilder) Tmpfs() SizeLimiter

type MountCmd

type MountCmd struct {
	// contains filtered or unexported fields
}

func (MountCmd) String

func (cmd MountCmd) String() string

type MountPointer

type MountPointer interface {
	MountPoint(path string) Builder
}

type SizeLimiter

type SizeLimiter interface {
	Size(sizeInBytes string) MountPointer
}

type TmpfsBuilder

type TmpfsBuilder interface {
	Tmpfs() SizeLimiter
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL