Documentation ¶
Index ¶
- Constants
- func UnMarshalProxy(buf []byte) (config.Proxy, error)
- type AppProxy
- func (mgr *AppProxy) AddProc(pid int32) *dbus.Error
- func (mgr *AppProxy) AddProxy(proto string, name string, jsonProxy []byte) *dbus.Error
- func (mgr *AppProxy) AddProxyApps(apps []string) *dbus.Error
- func (mgr *AppProxy) ClearProxy() *dbus.Error
- func (mgr *AppProxy) DelProxyApps(apps []string) *dbus.Error
- func (mgr *AppProxy) GetCGroups() (string, *dbus.Error)
- func (mgr *AppProxy) GetInterfaceName() string
- func (mgr *AppProxy) GetProxy() (string, *dbus.Error)
- func (mgr *AppProxy) SetProxies(proxies config.ScopeProxies) *dbus.Error
- func (mgr *AppProxy) StartProxy(sender dbus.Sender, proto string, name string, udp bool) *dbus.Error
- func (mgr *AppProxy) StopProxy() *dbus.Error
- type BaseProxy
- type DomainAddr
- type GlobalProxy
- func (mgr *GlobalProxy) AddProc(pid int32) *dbus.Error
- func (mgr *GlobalProxy) AddProxy(proto string, name string, jsonProxy []byte) *dbus.Error
- func (mgr *GlobalProxy) ClearProxy() *dbus.Error
- func (mgr *GlobalProxy) GetCGroups() (string, *dbus.Error)
- func (mgr *GlobalProxy) GetInterfaceName() string
- func (mgr *GlobalProxy) GetProxy() (string, *dbus.Error)
- func (mgr *GlobalProxy) IgnoreProxyApps(apps []string) *dbus.Error
- func (mgr *GlobalProxy) SetProxies(proxies config.ScopeProxies) *dbus.Error
- func (mgr *GlobalProxy) StartProxy(sender dbus.Sender, proto string, name string, udp bool) *dbus.Error
- func (mgr *GlobalProxy) StopProxy() *dbus.Error
- func (mgr *GlobalProxy) UnIgnoreProxyApps(apps []string) *dbus.Error
- type Manager
Constants ¶
View Source
const ( BusServiceName = "com.deepin.system.proxy" BusPath = "/com/deepin/system/proxy" BusInterface = BusServiceName )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppProxy ¶
type AppProxy struct {
// contains filtered or unexported fields
}
func (*AppProxy) AddProxyApps ¶
add proxy app
func (*AppProxy) ClearProxy ¶
func (*AppProxy) DelProxyApps ¶
delete proxy app
func (*AppProxy) SetProxies ¶
func (mgr *AppProxy) SetProxies(proxies config.ScopeProxies) *dbus.Error
set proxies
type BaseProxy ¶
type BaseProxy interface { // DBus method StartProxy(sender dbus.Sender, proto string, name string, udp bool) *dbus.Error StopProxy() *dbus.Error SetProxies(proxies config.ScopeProxies) *dbus.Error ClearProxy() *dbus.Error GetProxy() (string, *dbus.Error) AddProxy(proto string, name string, jsonProxy []byte) *dbus.Error GetCGroups() (string, *dbus.Error) // contains filtered or unexported methods }
type DomainAddr ¶
func (*DomainAddr) Network ¶
func (a *DomainAddr) Network() string
func (*DomainAddr) String ¶
func (a *DomainAddr) String() string
type GlobalProxy ¶
type GlobalProxy struct { // no proxy app IgnoreApp []string // contains filtered or unexported fields }
func NewGlobalProxy ¶
func NewGlobalProxy() *GlobalProxy
func (*GlobalProxy) ClearProxy ¶
func (*GlobalProxy) GetInterfaceName ¶
func (mgr *GlobalProxy) GetInterfaceName() string
interface path
func (*GlobalProxy) IgnoreProxyApps ¶
func (mgr *GlobalProxy) IgnoreProxyApps(apps []string) *dbus.Error
add proxy app
func (*GlobalProxy) SetProxies ¶
func (mgr *GlobalProxy) SetProxies(proxies config.ScopeProxies) *dbus.Error
set proxies
func (*GlobalProxy) StartProxy ¶
func (mgr *GlobalProxy) StartProxy(sender dbus.Sender, proto string, name string, udp bool) *dbus.Error
start proxy
func (*GlobalProxy) UnIgnoreProxyApps ¶
func (mgr *GlobalProxy) UnIgnoreProxyApps(apps []string) *dbus.Error
delete proxy app
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
manage all proxy handler
func (*Manager) GetAllProcs ¶
func (m *Manager) GetAllProcs() (map[string]newCGroups.ControlProcSl, error)
format current procs
Click to show internal directories.
Click to hide internal directories.