Skip to content

Add dbd daemon#14

Open
dpsmith wants to merge 9 commits intoOpenXT:masterfrom
apertussolutions:dbd
Open

Add dbd daemon#14
dpsmith wants to merge 9 commits intoOpenXT:masterfrom
apertussolutions:dbd

Conversation

@dpsmith
Copy link
Copy Markdown
Member

@dpsmith dpsmith commented Apr 6, 2026

No description provided.

dpsmith added 9 commits April 7, 2026 16:00
A simple commit that uprevs godbus to latest version compatible with the go
version openxt-go is pinned to in go.mod.  It also adds db.go that provides a
location to hold the top level package documentation. Place the package global
variable PathDelimiter in db.go and document it.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This replaces the existing db client code with the generated dbus bindings. In
the process rename the file to client.go to reflect this is the client code.
Update dbdcmd to work with the new db client code.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This aligns the the existing Ocaml db-cmd. While renaming, expand the command
to be subcommand compatible with Ocaml db-cmd.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This adds a convenience logging library for logging to syslog.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Introduce a new utils library with the initial utility for json logging. This
utility provides allows the generation of a contextual error from the error
returned json.Unmarshal.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This introduces the core of the dbd library, the Node object. A Node object can
hold the parsed results of an arbitrary JSON object. It is then able to present
the results as a tree structure that can be descended into to manipulate
arbitrary leaves in the tree.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This introduces the JsonStore type that provides a locking wrapper around
the Node type. In addition, it provides the abstraction of moving
between one or more json blobs and a single node tree.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This adds the Server type to expose a JsonStore as an OpenXT dbd
dbus server instance in compliance with the OpenXT dbd IDL.

The Ocaml instance of dbd does not support the write_binary interface, but
is defined in the IDL. This implementation adds support for this interface
by storing the binary bytes as a base64 encoded string in the JSON field.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant