Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/godbus/dbus
/ functions
Functions
642 in github.com/godbus/dbus
⨍
Functions
642
◇
Types & classes
132
↓ 98 callers
Function
MakeVariant
MakeVariant converts the given value to a Variant. It panics if v cannot be represented as a D-Bus type.
variant.go:19
↓ 67 callers
Method
Call
(method string, flags Flags, args ...any)
object.go:12
↓ 66 callers
Method
Close
Close closes the connection. Any blocked operations will return with errors and the channels passed to Eavesdrop and Signal are closed. This method mu
conn.go:318
↓ 65 callers
Method
Store
Store stores the body of the reply into the provided pointers. It returns an error if the signatures of the body and retvalues don't match, or if the
call.go:55
↓ 57 callers
Function
ConnectSessionBus
ConnectSessionBus connects to the session bus.
conn.go:137
↓ 56 callers
Method
Error
()
conn.go:725
↓ 47 callers
Method
Object
Object returns the object identified by the given destination name and path.
conn.go:485
↓ 36 callers
Function
Store
Store copies the values contained in src to dest, which must be a slice of pointers. It converts slices of interfaces from src to corresponding struct
dbus.go:45
↓ 34 callers
Method
Names
Names returns the list of all names that are currently owned by this connection. The slice is always at least one element long, the first element bein
conn.go:480
↓ 31 callers
Method
Export
Export registers the given value to be exported as an object on the message bus. If a method call on the given path and interface is received, an exp
export.go:277
↓ 31 callers
Function
SignatureOf
SignatureOf returns the concatenation of all the signatures of the given values. It panics if one of them is not representable in D-Bus.
sig.go:34
↓ 30 callers
Method
Decode
(sig Signature)
decoder.go:62
↓ 29 callers
Method
Encode
Encode encodes the given values to the underlying reader. All written values are aligned properly as required by the D-Bus spec.
encoder.go:70
↓ 28 callers
Method
Close
()
conn_test.go:156
↓ 27 callers
Method
String
()
variant_parser.go:34
↓ 26 callers
Function
newDecoder
newDecoder returns a new decoder that reads values from in. The input is expected to be in the given byte order.
decoder.go:25
↓ 24 callers
Method
Write
(p []byte)
message.go:218
↓ 24 callers
Function
newEncoder
NewEncoder returns a new encoder that writes to out in the given byte order.
encoder.go:21
↓ 19 callers
Method
Close
()
server_interfaces_test.go:180
↓ 17 callers
Method
next
()
variant_lexer.go:82
↓ 16 callers
Method
emit
(t varTokenType)
variant_lexer.go:65
↓ 15 callers
Method
AddSignal
(ch chan<- *Signal)
server_interfaces.go:84
↓ 15 callers
Method
Value
(Signature)
variant_parser.go:36
↓ 14 callers
Function
authWriteLine
authWriteLine writes the given line in the authentication protocol format (elements of data separated by a " " and terminated by "\r\n").
auth.go:239
↓ 12 callers
Method
BusObject
BusObject returns the object owned by the bus daemon which handles administrative requests.
conn.go:311
↓ 12 callers
Method
Name
()
server_interfaces_test.go:185
↓ 12 callers
Method
Read
(b []byte)
transport_unix.go:39
↓ 12 callers
Function
WithMatchInterface
WithMatchSender sets interface match option.
match.go:41
↓ 12 callers
Function
WithMatchMember
WithMatchMember sets member match option.
match.go:46
↓ 12 callers
Function
comparePropValue
(obj dbus.BusObject, name string, want any, t *testing.T)
prop/prop_test.go:15
↓ 12 callers
Function
isVariant
(t reflect.Type)
dbus.go:296
↓ 11 callers
Method
Emit
Emit emits the given signal on the message bus. The name parameter must be formatted as "interface.member", e.g., "org.freedesktop.DBus.NameLost".
export.go:221
↓ 11 callers
Method
Empty
()
variant_parser.go:103
↓ 11 callers
Method
EncodeTo
EncodeTo encodes and sends a message to the given writer. The byte order must be either binary.LittleEndian or binary.BigEndian. If the message is not
message.go:285
↓ 11 callers
Function
WithMatchOption
WithMatchOption creates match option with given key and value
match.go:25
↓ 11 callers
Function
getKey
getKey gets a key from a the list of keys. Returns "" on error / not found...
conn.go:791
↓ 10 callers
Function
NewSequentialSignalHandler
NewSequentialSignalHandler returns an instance of a new signal handler that guarantees sequential processing of signals. It is a guarantee of this sig
sequential_handler.go:11
↓ 10 callers
Method
Reset
Reset resets the decoder to be reading from in.
decoder.go:35
↓ 10 callers
Method
Set
Set implements org.freedesktop.Properties.Set.
prop/prop.go:310
↓ 10 callers
Method
Signal
Signal registers the given channel to be passed all received signal messages. Multiple of these channels can be registered at the same time. The chan
conn.go:688
↓ 10 callers
Method
backup
()
variant_lexer.go:61
↓ 10 callers
Method
next
()
variant_parser.go:23
↓ 9 callers
Function
NewConn
NewConn creates a new private *Conn from an already established connection.
conn.go:263
↓ 9 callers
Method
align
align aligns the input to the given boundary and panics on error.
decoder.go:47
↓ 9 callers
Function
newTester
()
server_interfaces_test.go:217
↓ 9 callers
Method
read2buf
read2buf reads exactly n bytes from the reader dec.in into the buffer dec.buf to reduce memory allocs. The buffer grows automatically.
decoder.go:89
↓ 9 callers
Function
typeFor
typeFor returns the type of the given signature. It ignores any left over characters and panics if s doesn't start with a valid type signature.
sig.go:277
↓ 9 callers
Function
writeSignals
(handler SignalHandler, count int)
sequential_handler_test.go:205
↓ 8 callers
Method
Terminate
()
server_interfaces.go:6
↓ 8 callers
Method
binwrite
Calls binary.Write(enc.out, enc.order, v) and panics on write errors.
encoder.go:62
↓ 8 callers
Method
sendError
sendError creates an error message corresponding to the parameters and sends it to conn.out.
conn.go:599
↓ 8 callers
Function
store
(dest, src reflect.Value)
dbus.go:62
↓ 7 callers
Method
Connected
Connected returns whether conn is connected
conn.go:349
↓ 7 callers
Method
accept
(valid string)
variant_lexer.go:53
↓ 7 callers
Function
countSignals
(channel <-chan *Signal)
sequential_handler_test.go:230
↓ 7 callers
Method
sendMessageAndIfClosed
(msg *Message, ifClosed func())
conn.go:489
↓ 6 callers
Method
AddMatchSignal
(iface, member string, options ...MatchOption)
object.go:16
↓ 6 callers
Function
DecodeMessage
DecodeMessage tries to decode a single message in the D-Bus wire format from the given reader. The byte order is figured out from the first byte. The
message.go:212
↓ 6 callers
Function
Dial
Dial establishes a new private connection to the message bus specified by address.
conn.go:185
↓ 6 callers
Method
EnterArray
()
sig.go:187
↓ 6 callers
Method
SetProperty
(p string, v any)
object.go:20
↓ 6 callers
Function
WithSignalHandler
WithSignalHandler overrides the default signal handler.
conn.go:212
↓ 6 callers
Method
decodeU
decodeU decodes uint32 obtained from the reader dec.in. The goal is to reduce memory allocs.
decoder.go:102
↓ 6 callers
Function
storeBase
(dest, src reflect.Value)
dbus.go:79
↓ 6 callers
Function
validSingle
Try to read a single type from this string. If it was successful, err is nil and rem is the remaining unparsed part. Otherwise, err is a non-nil Signa
sig.go:206
↓ 5 callers
Method
Auth
Auth authenticates the connection, trying the given list of authentication mechanisms (in that order). If nil is passed, the EXTERNAL and DBUS_COOKIE_
auth.go:54
↓ 5 callers
Method
IsValid
IsValid checks whether msg is a valid message and returns an InvalidMessageError or FormatError if it is not.
message.go:292
↓ 5 callers
Function
WithHandler
WithHandler overrides the default handler.
conn.go:204
↓ 5 callers
Function
alignment
alignment returns the alignment of values of type t.
dbus.go:341
↓ 5 callers
Method
backup
()
variant_parser.go:19
↓ 5 callers
Method
errorf
(format string, v ...any)
variant_lexer.go:70
↓ 5 callers
Function
formatMatchOptions
(options []MatchOption)
match.go:16
↓ 5 callers
Method
padding
pad returns the number of bytes of padding, based on current position and additional offset. and alignment.
encoder.go:52
↓ 5 callers
Function
readSignals
(t *testing.T, channel <-chan *Signal)
sequential_handler_test.go:212
↓ 5 callers
Function
varInfer
(n varNode)
variant_parser.go:810
↓ 5 callers
Function
varMakeNode
(p *varParser)
variant_parser.go:39
↓ 5 callers
Function
withMatchTypeSignal
It does not make sense to have a public WithMatchType function because clients can only subscribe to messages with signal type.
match.go:31
↓ 4 callers
Function
Connect
Connect connects to the given address. Returned connection is ready to use and doesn't require calling Auth and Hello methods to make it usable.
conn.go:154
↓ 4 callers
Method
EnterDictEntry
()
sig.go:197
↓ 4 callers
Method
Foo
(message Message, param string)
export_test.go:16
↓ 4 callers
Method
Go
(method string, flags Flags, ch chan *Call, args ...any)
object.go:14
↓ 4 callers
Function
ParseSignature
ParseSignature returns the signature represented by this string, or a SignatureError if the string is not a valid signature.
sig.go:124
↓ 4 callers
Method
RemoveSignal
(ch chan<- *Signal)
server_interfaces.go:85
↓ 4 callers
Method
RetireSerial
(serial uint32)
server_interfaces.go:106
↓ 4 callers
Method
Sigs
()
variant_parser.go:35
↓ 4 callers
Method
align
Aligns the next output to be on a multiple of n. Panics on write errors.
encoder.go:39
↓ 4 callers
Method
createCall
(ctx context.Context, method string, flags Flags, ch chan *Call, args ...any)
object.go:101
↓ 4 callers
Method
export
export is the worker function for all exports/registrations.
export.go:377
↓ 4 callers
Method
handleSendError
(msg *Message, err error)
conn.go:515
↓ 4 callers
Method
validateHeader
()
message.go:296
↓ 4 callers
Function
waitSignal
(sigc <-chan *Signal, name string)
conn_test.go:340
↓ 3 callers
Method
AddMatchSignalContext
AddMatchSignalContext acts like AddMatchSignal but takes a context.
conn.go:653
↓ 3 callers
Method
CallWithContext
(ctx context.Context, method string, flags Flags, args ...any)
object.go:13
↓ 3 callers
Function
ConnectSystemBus
ConnectSystemBus connects to the system bus.
conn.go:146
↓ 3 callers
Method
Eavesdrop
Eavesdrop causes conn to send all incoming messages to the given channel without further processing. Method replies, errors and signals will not be se
conn.go:361
↓ 3 callers
Function
EscapeBusAddressValue
EscapeBusAddressValue implements a requirement to escape the values in D-Bus server addresses, as defined by the D-Bus specification at https://dbus.f
escape.go:8
↓ 3 callers
Method
ExportMethodTable
ExportMethodTable like Export registers the given methods as an object on the message bus. Unlike Export the it uses a method table to define the obje
export.go:335
↓ 3 callers
Method
ExportSubtree
ExportSubtree works exactly like Export but registers the given value for an entire subtree rather under the root path provided. In order to make thi
export.go:312
↓ 3 callers
Method
ExportSubtreeWithMap
ExportSubtreeWithMap works exactly like ExportSubtree but provides the ability to remap method names (e.g. export a lower-case method). The keys in t
export.go:321
↓ 3 callers
Method
ExportWithMap
ExportWithMap works exactly like Export but provides the ability to remap method names (e.g. export a lower-case method). The keys in the map are the
export.go:298
next →
1–100 of 642, ranked by callers