System Service Libraries

Peios system services publish C libraries so that your application can ask them for their state, or ask them to act, without starting a command and reading its output. Each library has a Rust crate that wraps the same shared library. For access control, the registry, and events, use the Peios SDK instead. For sign-in and account operations, use the authentication client.

Choosing a library #

Choose the library for the service or format you need:

LibraryUse it toRust crateGuide
libresolvdLook up names and addresses, read resolver status, and flush the cacheresolvd-clientUsing libresolvd
libtimedRead clock status and sources, follow clock changes, and request time changestimed-clientUsing libtimed
libtrustRead and follow the trusted root certificates, and add or distrust certificatestrust-clientUsing libtrust
libreg, libregman, libevmanParse registry documents, registry manuals, and event catalogspeios-reg, peios-regman, peios-evmanUtility Libraries

libresolvd, libtimed, and libtrust talk to a running service. The utility libraries work on documents and need no service.

What the service decides #

The service, not the library, decides what each call can do. It checks the caller's permissions for the operation, so a call can be refused even when the library loads and connects. A management call, such as adding a trusted certificate or flushing the resolver cache, uses your own rights; the library never raises them.

Each library's major version is part of its shared-library name, such as libresolvd.so.1. A new major version means an incompatible C interface, so link against the major version your code was written for.

Edit this page