daemon

package
v0.0.0-...-3382da6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package daemon is WORK IN PROGRESS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartUDiskListener

func StartUDiskListener()

Types

type UDiskBlock

type UDiskBlock struct {
	IdUuid string
	Drive  string
}

func (*UDiskBlock) String

func (block *UDiskBlock) String() string

type UDiskDrive

type UDiskDrive struct {
	Id        string
	Ejectable bool
}

func (*UDiskDrive) String

func (drive *UDiskDrive) String() string

type UDiskFilesystem

type UDiskFilesystem struct {
	MountPoint []string
}

func (*UDiskFilesystem) String

func (fs *UDiskFilesystem) String() string

type UDiskSignal

type UDiskSignal struct {
	DrivePath  string
	BlockPath  string
	Drive      *UDiskDrive
	Block      *UDiskBlock
	FileSystem *UDiskFilesystem
	// contains filtered or unexported fields
}

func HandleDBusSignal

func HandleDBusSignal(v *dbus.Signal, removableDrives []*UDiskSignal) []*UDiskSignal

func ParseDbusObject

func ParseDbusObject(signal *dbus.Signal) (*UDiskSignal, bool)

func (*UDiskSignal) String

func (sig *UDiskSignal) String() string

type VolumeManagerPort

type VolumeManagerPort interface {
	OnMountedVolume(volume backupmodel.VolumeToBackup)
	OnUnMountedVolume(uuid string)
}
var (
	VolumeManager VolumeManagerPort
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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