drive

package
v0.0.0-...-a3b91c8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusReady   DriveStatus = "Ready"
	StatusReading             = "Reading"
	StatusMkv                 = "Mkv"
	StatusEmpty               = "Empty"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Disc

type Disc struct {
	Label     string
	Uuid      string
	MkvStatus *makemkv.Status
}

type DiscDatabase

type DiscDatabase interface {
	GetDiscInfo(string) (info *makemkv.DiscInfo, ok bool)
	SaveDiscInfo(string, *makemkv.DiscInfo) error
}

func NewJsonDiscDatabase

func NewJsonDiscDatabase(file string) DiscDatabase

type DriveManager

type DriveManager interface {
	Eject() error
	GetDiscInfo() (*makemkv.DiscInfo, error)
	GetDisc() *Disc
	HasDisc() bool
	Start() error
	Stop() error
	Status() DriveStatus
	RipFile(title *makemkv.TitleInfo, outdir string, outchan chan makemkv.Status) (*model.MkvFile, error)
}

func NewUdevDriveManager

func NewUdevDriveManager(onDisc func(DriveManager)) DriveManager

type DriveStatus

type DriveStatus string

Jump to

Keyboard shortcuts

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