fakes

package
v2.48.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCdrom

type FakeCdrom struct {
	WaitForMediaError error
	MountError        error
	UnmountError      error
	EjectError        error

	MediaAvailable    bool
	Fs                *fakesys.FakeFileSystem
	MediaFilePath     string
	MediaFileContents string

	MountMountPath string
	Mounted        bool
}

func NewFakeCdrom

func NewFakeCdrom(fs *fakesys.FakeFileSystem, filepath, contents string) *FakeCdrom

func (*FakeCdrom) Eject

func (cdrom *FakeCdrom) Eject() (err error)

func (*FakeCdrom) Mount

func (cdrom *FakeCdrom) Mount(mountPath string) error

func (*FakeCdrom) Unmount

func (cdrom *FakeCdrom) Unmount() error

func (*FakeCdrom) WaitForMedia

func (cdrom *FakeCdrom) WaitForMedia() error

Jump to

Keyboard shortcuts

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