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

linux

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "linux"

Variables

View Source
var (
	ErrUnknownOS             = errors.New("Encountered an unknown OS")
	ErrUnknownFilesystemType = errors.New("Unknown filesystem type")
)

Functions

func Init

func Init(conf *config.Config) (osm.Driver, error)

Types

type Driver

type Driver struct {
	Config *config.Config
}

func (*Driver) Format

func (driver *Driver) Format(deviceName, newFsType string, overwriteFs bool) error

Format will look for ext4/xfs and overwrite it is it doesn't exist

func (*Driver) GetMounts

func (driver *Driver) GetMounts(deviceName, mountPoint string) ([]*mount.Info, error)

func (*Driver) Mount

func (driver *Driver) Mount(device, target, mountOptions, mountLabel string) error

func (*Driver) Mounted

func (driver *Driver) Mounted(mountPoint string) (bool, error)

func (*Driver) Name

func (driver *Driver) Name() string

func (*Driver) Unmount

func (driver *Driver) Unmount(mountPoint string) error

Jump to

Keyboard shortcuts

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