Documentation
¶
Index ¶
- func Store(src []any, dest ...any) error
- type CallError
- type Conn
- type Error
- type ErrorResponse
- type Flags
- type FormatError
- type HeaderField
- type InvalidMessageError
- type InvalidTypeError
- type Message
- type Object
- type ObjectPath
- type Reply
- type Signal
- type Signature
- type SignatureError
- type Type
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallError ¶ added in v0.1.0
type Conn ¶ added in v0.1.0
type Conn struct {
// contains filtered or unexported fields
}
func SessionBus ¶ added in v0.1.0
func (*Conn) RemoveMatch ¶ added in v0.1.0
type Error ¶ added in v0.1.0
type Error string
const ( ErrNoSessionBus Error = "dbus: DBUS_SESSION_BUS_ADDRESS is not set" ErrAuthFailed Error = "dbus: EXTERNAL authentication rejected" ErrClosed Error = "dbus: connection closed" ErrCallTimeout Error = "dbus: call timed out" ErrUnsupportedType Error = "dbus: unsupported type" ErrSignatureMismatch Error = "dbus: signature mismatch" )
type ErrorResponse ¶ added in v0.1.0
func (*ErrorResponse) Error ¶ added in v0.1.0
func (e *ErrorResponse) Error() string
type FormatError ¶ added in v0.1.0
type FormatError string
func (FormatError) Error ¶ added in v0.1.0
func (e FormatError) Error() string
type HeaderField ¶ added in v0.1.0
type HeaderField byte
const ( FieldPath HeaderField = 1 + iota FieldInterface FieldMember FieldErrorName FieldReplySerial FieldDestination FieldSender FieldSignature FieldUnixFDs )
type InvalidMessageError ¶ added in v0.1.0
type InvalidMessageError string
func (InvalidMessageError) Error ¶ added in v0.1.0
func (e InvalidMessageError) Error() string
type InvalidTypeError ¶ added in v0.1.0
func (InvalidTypeError) Error ¶ added in v0.1.0
func (e InvalidTypeError) Error() string
type Message ¶ added in v0.1.0
type Message struct {
Type Type
Flags Flags
Headers map[HeaderField]Variant
Body []any
// contains filtered or unexported fields
}
type ObjectPath ¶ added in v0.1.0
type ObjectPath string
ObjectPath is a D-Bus object path, e.g. "/org/freedesktop/secrets".
func (ObjectPath) IsValid ¶ added in v0.1.0
func (p ObjectPath) IsValid() bool
IsValid returns whether the object path is valid according to the spec.
type Signal ¶ added in v0.1.0
type Signal struct {
Sender string
Path ObjectPath
Name string // "interface.Member"
Body []any
}
type Signature ¶ added in v0.1.0
type Signature struct {
// contains filtered or unexported fields
}
Signature represents a correct type signature as specified by the D-Bus specification. The zero value represents the empty signature, "".
func ParseSignature ¶ added in v0.1.0
ParseSignature returns the signature represented by this string, or a SignatureError if the string is not a valid signature.
func ParseSignatureMust ¶ added in v0.1.0
ParseSignatureMust behaves like ParseSignature, except that it panics if s is not valid.
func SignatureOf ¶ added in v0.1.0
SignatureOf returns the concatenation of all the signatures of the given values. It panics if one of them is not representable in D-Bus.
func SignatureOfType ¶ added in v0.1.0
SignatureOfType returns the signature of the given type. It panics if the type is not representable in D-Bus.
func (Signature) Empty ¶ added in v0.1.0
Empty returns whether the signature is the empty signature.
type SignatureError ¶ added in v0.1.0
A SignatureError indicates that a signature passed to a function or received on a connection is not a valid signature.
func (SignatureError) Error ¶ added in v0.1.0
func (e SignatureError) Error() string
type Variant ¶ added in v0.1.0
type Variant struct {
// contains filtered or unexported fields
}
Variant represents the D-Bus variant type.
func MakeVariant ¶ added in v0.1.0
MakeVariant converts the given value to a Variant.
func MakeVariantWithSignature ¶ added in v0.1.0
MakeVariantWithSignature converts the given value to a Variant with specified signature.