Documentation ¶
Index ¶
- type AesContext
- type CryptoContext
- func (ctx *CryptoContext) Available() bool
- func (ctx *CryptoContext) CreateKey() bool
- func (ctx *CryptoContext) Decrypt(data []byte) []byte
- func (ctx *CryptoContext) DeleteKey()
- func (ctx *CryptoContext) Encrypt(data []byte) []byte
- func (ctx *CryptoContext) Free()
- func (ctx *CryptoContext) Load(file string) bool
- func (ctx *CryptoContext) Save(file string) bool
- type Daemon
- type Data
- type DataManager
- func (dm *DataManager) DeleteData(process string, name string)
- func (dm *DataManager) DeleteProcess(process string)
- func (dm *DataManager) GetData(process string, name string) ([]byte, []byte, error)
- func (dm *DataManager) ListName(process string) []string
- func (dm *DataManager) Load(file string) bool
- func (dm *DataManager) Save(file string) error
- func (dm *DataManager) SetData(dir string, process string, name string, aesKey []byte, data []byte) error
- type Manager
- func (m *Manager) Available() (bool, *dbus.Error)
- func (m *Manager) Delete(sender dbus.Sender, name string) *dbus.Error
- func (m *Manager) Get(sender dbus.Sender, name string) ([]byte, *dbus.Error)
- func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
- func (*Manager) GetInterfaceName() string
- func (m *Manager) ListName(sender dbus.Sender) ([]string, *dbus.Error)
- func (m *Manager) Release(sender dbus.Sender) *dbus.Error
- func (m *Manager) Set(sender dbus.Sender, name string, data []byte) *dbus.Error
- type ProcessData
- type ProcessMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AesContext ¶
type AesContext struct { }
func NewAesContext ¶
func NewAesContext() *AesContext
func (*AesContext) GenKey ¶
func (ctx *AesContext) GenKey() []byte
func (*AesContext) Unpadding ¶
func (ctx *AesContext) Unpadding(src []byte) []byte
type CryptoContext ¶
type Daemon ¶
type Daemon struct { *loader.ModuleBase // contains filtered or unexported fields }
func (*Daemon) GetDependencies ¶
type DataManager ¶
type DataManager struct {
Data ProcessMap
}
func NewDataManager ¶
func NewDataManager(dir string) *DataManager
func (*DataManager) DeleteData ¶
func (dm *DataManager) DeleteData(process string, name string)
func (*DataManager) DeleteProcess ¶
func (dm *DataManager) DeleteProcess(process string)
func (*DataManager) ListName ¶
func (dm *DataManager) ListName(process string) []string
func (*DataManager) Load ¶
func (dm *DataManager) Load(file string) bool
func (*DataManager) Save ¶
func (dm *DataManager) Save(file string) error
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) GetExportedMethods ¶
func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
func (*Manager) GetInterfaceName ¶
Click to show internal directories.
Click to hide internal directories.