Documentation ¶
Index ¶
- func GetOSNum() (uint32, error)
- func PrepareGfxmodeDetect() error
- func RunAsDaemon()
- func SetLogger(v *log.Logger)
- type EditAuth
- type Entry
- type EntryType
- type Fstart
- type Grub2
- func (g *Grub2) GetAvailableGfxmodes(sender dbus.Sender) (gfxModes []string, busErr *dbus.Error)
- func (v *Grub2) GetExportedMethods() dbusutil.ExportedMethods
- func (*Grub2) GetInterfaceName() string
- func (grub *Grub2) GetSimpleEntryTitles(sender dbus.Sender) (titles []string, busErr *dbus.Error)
- func (g *Grub2) PrepareGfxmodeDetect(sender dbus.Sender) *dbus.Error
- func (g *Grub2) Reset(sender dbus.Sender) *dbus.Error
- func (g *Grub2) SetDefaultEntry(sender dbus.Sender, entry string) *dbus.Error
- func (g *Grub2) SetEnableTheme(sender dbus.Sender, enabled bool) *dbus.Error
- func (g *Grub2) SetGfxmode(sender dbus.Sender, gfxmode string) *dbus.Error
- func (g *Grub2) SetTimeout(sender dbus.Sender, timeout uint32) *dbus.Error
- type Log
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareGfxmodeDetect ¶
func PrepareGfxmodeDetect() error
func RunAsDaemon ¶
func RunAsDaemon()
Types ¶
type EditAuth ¶
type EditAuth struct { // dbusutil-gen: equal=nil EnabledUsers []string // contains filtered or unexported fields }
EditAuth is a dbus object which provide properties and methods to setup deepin grub2 edit shell authorization.
func (*EditAuth) GetExportedMethods ¶
func (v *EditAuth) GetExportedMethods() dbusutil.ExportedMethods
func (*EditAuth) GetInterfaceName ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is a struct to store each entry's data/
type EntryType ¶
type EntryType int
EntryType is used to define entry's type in '/boot/grub/grub.cfg'.
type Fstart ¶
type Fstart struct { PropsMu sync.RWMutex // props: IsSkipGrub bool // contains filtered or unexported fields }
Theme is a dbus object which provide properties and methods to setup deepin grub2 theme.
func (*Fstart) GetExportedMethods ¶
func (v *Fstart) GetExportedMethods() dbusutil.ExportedMethods
func (*Fstart) GetInterfaceName ¶
type Grub2 ¶
type Grub2 struct { PropsMu sync.RWMutex // props: ThemeFile string DefaultEntry string EnableTheme bool Gfxmode string Timeout uint32 Updating bool // contains filtered or unexported fields }
func (*Grub2) GetAvailableGfxmodes ¶
func (*Grub2) GetExportedMethods ¶
func (v *Grub2) GetExportedMethods() dbusutil.ExportedMethods
func (*Grub2) GetInterfaceName ¶
func (*Grub2) GetSimpleEntryTitles ¶
GetSimpleEntryTitles return entry titles only in level one and will filter out some useless entries such as sub-menus and "memtest86+".
func (*Grub2) PrepareGfxmodeDetect ¶
func (*Grub2) SetDefaultEntry ¶
func (*Grub2) SetEnableTheme ¶
func (*Grub2) SetGfxmode ¶
type Theme ¶
Theme is a dbus object which provide properties and methods to setup deepin grub2 theme.
func (*Theme) GetBackground ¶
func (*Theme) GetExportedMethods ¶
func (v *Theme) GetExportedMethods() dbusutil.ExportedMethods
func (*Theme) GetInterfaceName ¶
func (*Theme) SetBackgroundSourceFile ¶
Click to show internal directories.
Click to hide internal directories.