mountmanager

package
v1.0.0-beta23 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Overview

Package mountmanager ...

Package mountmanager ...

Package mountmanager ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeSafeMounter

func NewFakeSafeMounter() *mount.SafeFormatAndMount

NewFakeSafeMounter ...

Types

type FakeNodeMounter

type FakeNodeMounter struct {
	*mount.SafeFormatAndMount
}

FakeNodeMounter ...

func (*FakeNodeMounter) MakeDir

func (f *FakeNodeMounter) MakeDir(pathname string) error

MakeDir ...

func (*FakeNodeMounter) MakeFile

func (f *FakeNodeMounter) MakeFile(pathname string) error

MakeFile ...

func (*FakeNodeMounter) NewSafeFormatAndMount

func (f *FakeNodeMounter) NewSafeFormatAndMount() *mount.SafeFormatAndMount

NewSafeFormatAndMount ...

func (*FakeNodeMounter) PathExists

func (f *FakeNodeMounter) PathExists(pathname string) (bool, error)

PathExists ...

type Mounter

type Mounter interface {
	NewSafeFormatAndMount() *mount.SafeFormatAndMount
	MakeFile(path string) error
	MakeDir(path string) error
	PathExists(path string) (bool, error)
	// contains filtered or unexported methods
}

Mounter is the interface implemented by Mounter

func NewFakeNodeMounter

func NewFakeNodeMounter() Mounter

NewFakeNodeMounter ...

func NewNodeMounter

func NewNodeMounter() Mounter

NewNodeMounter ...

type NodeMounter

type NodeMounter struct {
	*mount.SafeFormatAndMount
}

NodeMounter implements Mounter. A superstruct of SafeFormatAndMount.

func (*NodeMounter) MakeDir

func (m *NodeMounter) MakeDir(path string) error

MakeDir creates a new directory.

func (*NodeMounter) MakeFile

func (m *NodeMounter) MakeFile(path string) error

MakeFile creates an empty file.

func (*NodeMounter) NewSafeFormatAndMount

func (m *NodeMounter) NewSafeFormatAndMount() *mount.SafeFormatAndMount

NewSafeFormatAndMount returns the new object of SafeFormatAndMount.

func (*NodeMounter) PathExists

func (m *NodeMounter) PathExists(path string) (bool, error)

PathExists returns true if the specified path exists.

Jump to

Keyboard shortcuts

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