coreos / coreos/go-systemd

fetching shutdown time in golang

Open
#447 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.7k
Forks
338
PR merge metrics
No merged PRs in 30d

Description

I'm sorry if this sounds like a "draw the rest of the owl" question, but I'm kind of stuck. I'm trying to fetch the ScheduledShutdown object from D-BUS through this library. I know i can get that property on the command-line with:

$ busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager ScheduledShutdown
(st) "" 18446744073709551615

but trying to find the right entry point in this package seems to beyond my comprehension. It seems the property getters in login1 are restricted to the wrong namespace, and the ones in the dbus namespace are stuck in there own namespace as well...

Is there a way to make a generic request as the above?

thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Go D-Bus and login1 bindings in this repository, then compare their property getter namespaces with the busctl command shown in the issue. Determine whether the existing entry points can issue a generic request for org.freedesktop.login1.Manager.ScheduledShutdown; done means retrieving that property through the library.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.