server

package
v0.0.0-...-b6c8314 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(v *log.Logger)

Types

type GrubEncrypt

type GrubEncrypt struct {
	Status      string
	OnlineUser  []string
	OfflineUser []string
	// contains filtered or unexported fields
}

func (*GrubEncrypt) AddAccount

func (g *GrubEncrypt) AddAccount(sender dbus.Sender, usr, passwd string) *dbus.Error

创建菜单加密账户,创建

func (*GrubEncrypt) DeatectAccount

func (g *GrubEncrypt) DeatectAccount()

检测当前账户

func (*GrubEncrypt) DeleteAccount

func (g *GrubEncrypt) DeleteAccount(usr string) *dbus.Error

func (*GrubEncrypt) DisableAuthentication

func (g *GrubEncrypt) DisableAuthentication(usr string) *dbus.Error

失能所有用户

func (*GrubEncrypt) EnableAuthentication

func (g *GrubEncrypt) EnableAuthentication(sender dbus.Sender, usr string) *dbus.Error

使能所有用户

func (*GrubEncrypt) GetInterfaceName

func (g *GrubEncrypt) GetInterfaceName() string

获取 dbus对象 ifc名称

type Service

type Service struct {
	GrubEncrypt *GrubEncrypt
	// contains filtered or unexported fields
}

func GetService

func GetService() *Service

获取初始化的 dbus 对象,不存在就新建

func (*Service) Init

func (s *Service) Init() error

func (*Service) Loop

func (s *Service) Loop()

Jump to

Keyboard shortcuts

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