Go Systemd Versions Save

Go bindings to systemd socket activation, journal, D-Bus, and unit files

v19

5 years ago

Breaking changes:

  • minimum Go toolchain version is now 1.10

Other changes in this release:

  • journal: use a connection-less socket
  • docs: fix multiple docstrings
  • examples: Listeners method is now without arguments
  • examples: systemd-activate is now systemd-socket-activate
  • test/machine1: fix sporadic test failures from TestMachine
  • journal: skip sending test if journald is unavailable

v18

5 years ago

Breaking changes:

  • minimum Go toolchain version is now 1.7

New features:

  • machine1: add methods ListMachines, ListImages, GetMachineAddresses

Other changes in this release:

  • dbus: Fix API break from godbus
  • unit: use ContainsAny instead of IndexAny
  • journal: fix validation of key names
  • docs: Add more detail to Conn.ListUnits
  • tests/activation: fix local test run
  • test/journal: add some send tests

v17

6 years ago

Breaking changes:

  • activation: remove unsafe support for fd re-use (removed unsetEnv flags)

New features:

  • activation: add two functions to provide listeners with names
  • daemon: add convenience constants for SdNotify
  • login1: add support for session management
  • sdjournal: add formatting feature to JournalReader

Other changes in this release:

  • activation: close files after creating listeners
  • daemon: clean up copyright headers and documentation
  • dbus: add systemd requirement note to ListUnitsByNames
  • journal: add missing error handling for write & unlink calls
  • sdjournal: add docstrings for public error values
  • sdjournal: fix race conditions in JournalReader.Follow
  • sdjournal: fix concurrency & shadowing issues in tests
  • sdjournal: propagate AddMatch errors in constructor
  • ... and many more linting fixes (thanks @muesli!)

v16

6 years ago

Summary of changes in this release:

  • dbus: fix subStateSubscriber crash
  • dbus: make SetSubStateSubscriber safer
  • dbus: add SetPropertiesSubscriber method
  • dbus: add SystemState method for getting system state
  • login1: add close function
  • sdjournal: clarify documentation's notion of "current"
  • sdjournal: support testing cursor against current position

v15

6 years ago

Summary of changes in this release:

  • util: fix runningFromSystemService
  • sdjournal: add NewJournalFromFiles
  • sdjournal: fix Wait() timeout
  • sdjournal: fix goroutine leak
  • sdjournal: add GetCatalog
  • machined: add several methods
  • tests: misc improvements

v14

7 years ago

Breaking changes:

  • daemon: introduce support for cleaning env variables
    (boolean parameter added to SdNotify and SdWatchdogEnabled)

Other changes in this release:

  • daemon: add watchdog checker
  • dbus: make New() fall back to direct systemd connection
  • util: add tests for util package
  • test: add license header check

v13

7 years ago

Summary of changes in this release:

  • dbus: add additional tests for dbus methods
  • sdjournal: add GetUniqueValues
  • sdjournal: fix return values type
  • dbus/properties: add service type
  • doc: syntax highlight activation in README

v12

7 years ago

Summary of changes in this release:

  • dbus: add mask/unmask for unit files
  • dbus: add PropPids to set initial pids of transient scope units
  • util: conditionally build CGO functions
  • activation: don't specify NextProtos so that we can take advantage of HTTP/2
  • sdjournal: fix concurrent map access
  • sdjournal: fix race condition in test
  • sdjournal: fix memory leak in cursor handling

v11

7 years ago

Breaking changes:

  • daemon: improve SdNotify errors signaling (changed return type)

Other changes in this release:

  • sdjournal: fix an implicit seek to head
  • sdjournal: add GetDataBytes() and GetDataValueBytes() to Journal
  • multiple testsuite fixes

v10

7 years ago

Summary of changes in this release:

  • sdjournal: fix incomplete reads in JournalReader.Read()
  • sdjournal: break the loop if error happens during Write()
  • sdjournal: fix Writer call