workstation

package
v0.4.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MountInfo

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

MountInfo contains mounted disks information

func (*MountInfo) String

func (m *MountInfo) String() string

Stringer method

type WorkStation

type WorkStation interface {
	ListRemovableDisk() ([]*MountInfo, error)
	Unmount() error
	WriteToDisk(img string) (job *help.BackgroundJob, err error)
	CopyToDisk(img string) (job *help.BackgroundJob, err error)
	Eject() error
	CleanDisk(disk string) error
	PrintDisks()
}

WorkStation is your computer's Operating System, which should perform specific actions

func NewWorkStation

func NewWorkStation(disk string) WorkStation

NewWorkStation returns workstation depending on the OS

Jump to

Keyboard shortcuts

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