procs

package
v0.0.0-...-454a0ba Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterfaceProcs

type MockInterfaceProcs struct {
	mock.Mock
}

func (*MockInterfaceProcs) ConnectExecProc

func (v *MockInterfaceProcs) ConnectExecProc(cb func(ExecPath string, CGroupPath string, Pid string, PPid string)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceProcs) ConnectExitProc

func (v *MockInterfaceProcs) ConnectExitProc(cb func(ExecPath string, CGroupPath string, Pid string, PPid string)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceProcs) Procs

func (v *MockInterfaceProcs) Procs() PropProcsMap

type MockProcs

type MockProcs struct {
	MockInterfaceProcs // interface com.deepin.system.Procs
	proxy.MockObject
}

type MockPropProcsMap

type MockPropProcsMap struct {
	mock.Mock
}

func (MockPropProcsMap) ConnectChanged

func (p MockPropProcsMap) ConnectChanged(cb func(hasValue bool, value map[string]ProcMessage)) error

func (MockPropProcsMap) Get

func (p MockPropProcsMap) Get(flags dbus.Flags) (value map[string]ProcMessage, err error)

func (MockPropProcsMap) Set

func (p MockPropProcsMap) Set(flags dbus.Flags, value map[string]ProcMessage) error

type ProcMessage

type ProcMessage struct {
	ExecPath   string
	CGroupPath string
	Pid        string
	PPid       string
}

type Procs

type Procs interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewProcs

func NewProcs(conn *dbus.Conn) Procs

type PropProcsMap

type PropProcsMap interface {
	Get(flags dbus.Flags) (value map[string]ProcMessage, err error)
	Set(flags dbus.Flags, value map[string]ProcMessage) error
	ConnectChanged(cb func(hasValue bool, value map[string]ProcMessage)) error
}

Jump to

Keyboard shortcuts

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