Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewDBusCon (0.29 sec)

  1. pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go

    	Signal(ch chan<- *dbus.Signal)
    }
    
    // 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
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    	dbusReconnectPeriod            = 1 * time.Second
    	localStorageStateFile          = "graceful_node_shutdown_state"
    )
    
    var systemDbus = func() (dbusInhibiter, error) {
    	return systemd.NewDBusCon()
    }
    
    type dbusInhibiter interface {
    	CurrentInhibitDelay() (time.Duration, error)
    	InhibitShutdown() (systemd.InhibitLock, error)
    	ReleaseInhibitLock(lock systemd.InhibitLock) error
    	ReloadLogindConf() error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
Back to top