Documentation
¶
Index ¶
- func EnsureMountPoint(ctx context.Context, mountPoint string) error
- func IsMounted(ctx context.Context, mountPoint string) (bool, error)
- func Mount(ctx context.Context, builder Builder) error
- func UMount(ctx context.Context, mountPoint string, lazy bool) error
- type BindFrom
- type Builder
- type MountBuilder
- func (b *MountBuilder) Bind() BindFrom
- func (b *MountBuilder) Build() (MountCmd, error)
- func (b *MountBuilder) From(path string) MountPointer
- func (b *MountBuilder) MountPoint(path string) Builder
- func (b *MountBuilder) RBind() BindFrom
- func (b *MountBuilder) Size(sizeInBytes string) MountPointer
- func (b *MountBuilder) Tmpfs() SizeLimiter
- type MountCmd
- type MountPointer
- type SizeLimiter
- type TmpfsBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BindFrom ¶
type BindFrom interface {
From(path string) MountPointer
}
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 MountPointer ¶
type SizeLimiter ¶
type SizeLimiter interface {
Size(sizeInBytes string) MountPointer
}
type TmpfsBuilder ¶
type TmpfsBuilder interface {
Tmpfs() SizeLimiter
}
Click to show internal directories.
Click to hide internal directories.