Help us shape the future of Go! Take the 2026 Go Developer Survey

mount

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMount

type IMount interface {
	ScanForAttach(devicePath string) error
	IsLikelyNotMountPointAttach(targetpath string) (bool, error)
	FormatAndMount(source string, target string, fstype string, options []string) error
	IsLikelyNotMountPointDetach(targetpath string) (bool, error)
	UnmountPath(mountPath string) error
	GetInstanceID() (string, error)
}
var MInstance IMount = nil

func GetMountProvider

func GetMountProvider() (IMount, error)

type Mount

type Mount struct {
}

func (*Mount) FormatAndMount

func (m *Mount) FormatAndMount(source string, target string, fstype string, options []string) error

FormatAndMount

func (*Mount) GetInstanceID

func (m *Mount) GetInstanceID() (string, error)

GetInstanceID from file

func (*Mount) IsLikelyNotMountPointAttach

func (m *Mount) IsLikelyNotMountPointAttach(targetpath string) (bool, error)

IsLikelyNotMountPointAttach

func (*Mount) IsLikelyNotMountPointDetach

func (m *Mount) IsLikelyNotMountPointDetach(targetpath string) (bool, error)

IsLikelyNotMountPointDetach

func (*Mount) ScanForAttach

func (m *Mount) ScanForAttach(devicePath string) error

ScanForAttach

func (*Mount) UnmountPath

func (m *Mount) UnmountPath(mountPath string) error

UnmountPath

type MountMock

type MountMock struct {
	mock.Mock
}

MountMock is an autogenerated mock type for the IMount type ORIGINALLY GENERATED BY mockery with hand edits

func (*MountMock) FormatAndMount

func (_m *MountMock) FormatAndMount(source string, target string, fstype string, options []string) error

FormatAndMount provides a mock function with given fields: source, target, fstype, options

func (*MountMock) GetInstanceID

func (_m *MountMock) GetInstanceID() (string, error)

GetInstanceID provides a mock function with given fields:

func (*MountMock) IsLikelyNotMountPointAttach

func (_m *MountMock) IsLikelyNotMountPointAttach(targetpath string) (bool, error)

IsLikelyNotMountPointAttach provides a mock function with given fields: targetpath

func (*MountMock) IsLikelyNotMountPointDetach

func (_m *MountMock) IsLikelyNotMountPointDetach(targetpath string) (bool, error)

IsLikelyNotMountPointDetach provides a mock function with given fields: targetpath

func (*MountMock) ScanForAttach

func (_m *MountMock) ScanForAttach(devicePath string) error

ScanForAttach provides a mock function with given fields: devicePath

func (*MountMock) UnmountPath

func (_m *MountMock) UnmountPath(mountPath string) error

UnmountPath provides a mock function with given fields: mountPath

Jump to

Keyboard shortcuts

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