All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 2m11s
Test / Hakurei (push) Successful in 3m12s
Test / Hpkg (push) Successful in 4m0s
Test / Hakurei (race detector) (push) Successful in 5m20s
Test / Sandbox (race detector) (push) Successful in 2m11s
Test / Flake checks (push) Successful in 1m31s
This allows holding a xdg-dbus-proxy configuration without importing system/dbus. It also makes more sense in the project structure since the config struct is part of the hst API however the rest of the implementation is not. Signed-off-by: Ophestra <cat@gensokyo.uk>
20 lines
598 B
Go
20 lines
598 B
Go
package hst
|
|
|
|
// BusConfig configures the xdg-dbus-proxy process.
|
|
type BusConfig struct {
|
|
// See set 'see' policy for NAME (--see=NAME)
|
|
See []string `json:"see"`
|
|
// Talk set 'talk' policy for NAME (--talk=NAME)
|
|
Talk []string `json:"talk"`
|
|
// Own set 'own' policy for NAME (--own=NAME)
|
|
Own []string `json:"own"`
|
|
|
|
// Call set RULE for calls on NAME (--call=NAME=RULE)
|
|
Call map[string]string `json:"call"`
|
|
// Broadcast set RULE for broadcasts from NAME (--broadcast=NAME=RULE)
|
|
Broadcast map[string]string `json:"broadcast"`
|
|
|
|
Log bool `json:"log,omitempty"`
|
|
Filter bool `json:"filter"`
|
|
}
|