lastore

package
v0.0.0-...-520a03a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DownloadJobType           = "download"
	InstallJobType            = "install"
	RemoveJobType             = "remove"
	UpdateJobType             = "update"
	DistUpgradeJobType        = "dist_upgrade"
	PrepareDistUpgradeJobType = "prepare_dist_upgrade"
	UpdateSourceJobType       = "update_source"
	CustomUpdateJobType       = "custom_update"
	CleanJobType              = "clean"
)

Variables

View Source
var MinBatteryPercent = 30.0

Functions

func PackageName

func PackageName(pkg string, lang string) string

func QueryLang

func QueryLang() string

QueryLang return user lang. the rule is document at man gettext(3)

func QueryLangs

func QueryLangs() []string

QueryLangs return array of user lang, split by ":". the rule is document at man gettext(3)

Types

type CacheJobInfo

type CacheJobInfo struct {
	Id       string
	Status   Status
	Name     string
	Progress float64
	Type     string
}

type Daemon

type Daemon struct {
	*loader.ModuleBase
	// contains filtered or unexported fields
}

func (*Daemon) GetDependencies

func (*Daemon) GetDependencies() []string

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (d *Daemon) Stop() error

func (*Daemon) WaitEnable

func (d *Daemon) WaitEnable()

type Lastore

type Lastore struct {

	// prop:
	PropsMu            sync.RWMutex
	SourceCheckEnabled bool
	// contains filtered or unexported fields
}

func (*Lastore) GetExportedMethods

func (v *Lastore) GetExportedMethods() dbusutil.ExportedMethods

func (*Lastore) GetInterfaceName

func (l *Lastore) GetInterfaceName() string

func (*Lastore) IsDiskSpaceSufficient

func (*Lastore) IsDiskSpaceSufficient() (result bool, busErr *dbus.Error)

type NotifyAction

type NotifyAction struct {
	Id       string
	Name     string
	Callback func()
}

type Status

type Status string
const (
	ReadyStatus   Status = "ready"
	RunningStatus Status = "running"
	FailedStatus  Status = "failed"
	SucceedStatus Status = "succeed"
	PausedStatus  Status = "paused"

	EndStatus = "end"
)

Jump to

Keyboard shortcuts

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