- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SystemBus (0.13 sec)
-
pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go
} // DBusCon has functions that can be used to interact with systemd and logind over dbus. type DBusCon struct { SystemBus dBusConnector } func NewDBusCon() (*DBusCon, error) { conn, err := dbus.SystemBus() if err != nil { return nil, err } return &DBusCon{ SystemBus: conn, }, nil } // InhibitLock is a lock obtained after creating an systemd inhibitor by calling InhibitShutdown().
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go
var fakeFd uint32 = 42 bus := DBusCon{ SystemBus: &fakeSystemDBus{ fakeDBusObject: &fakeDBusObject{ bodyValue: fakeFd, }, }, } fdLock, err := bus.InhibitShutdown() assert.Equal(t, InhibitLock(fakeFd), fdLock) assert.NoError(t, err) } func TestReloadLogindConf(t *testing.T) { bus := DBusCon{ SystemBus: &fakeSystemDBus{ fakeDBusObject: &fakeDBusObject{}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 19:50:06 UTC 2023 - 4.4K bytes - Viewed (0)