Documentation ¶
Overview ¶
Package modemfwd interacts with modemfwd D-Bus service.
Index ¶
- Constants
- func DisableAutoUpdate(ctx context.Context) (func(), error)
- func GetAutoUpdatePrefValue(ctx context.Context) bool
- func StartAndWaitForQuiescence(ctx context.Context) error
- func WatchUpdateFirmwareCompleted(ctx context.Context) (*dbusutil.SignalWatcher, error)
- type Modemfwd
- type UpdateFirmwareCompletedSignal
Constants ¶
const ( // JobName is the name of the modemfwd process JobName = "modemfwd" // DisableAutoUpdatePref disables auto update on modemfwd DisableAutoUpdatePref = "/var/lib/modemfwd/disable_auto_update" // PurgeDlcsDelay is the time modemfwd waits until it starts cleaning up the DLCs PurgeDlcsDelay = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func DisableAutoUpdate ¶
DisableAutoUpdate sets the modemfwd pref value to 1, to disable auto updates. The function returns a closure to restore the pref to its original state.
func GetAutoUpdatePrefValue ¶
GetAutoUpdatePrefValue Gets the pref value of DisableAutoUpdatePref. True if the file exists and it's set to 1, false otherwise.
func StartAndWaitForQuiescence ¶
StartAndWaitForQuiescence starts the modemfwd job and waits for the initial sequence to complete or until an error is logged.
func WatchUpdateFirmwareCompleted ¶
func WatchUpdateFirmwareCompleted(ctx context.Context) (*dbusutil.SignalWatcher, error)
WatchUpdateFirmwareCompleted returns a SignalWatcher to observe the "UpdateFirmwareCompleted" signal.
Types ¶
type Modemfwd ¶
type Modemfwd struct {
*dbusutil.DBusObject
}
Modemfwd is used to interact with the modemfwd process over D-Bus. For detailed spec of each D-Bus method, please find src/platform2/modemfwd/dbus_bindings/org.chromium.Modemfwd.xml
type UpdateFirmwareCompletedSignal ¶
type UpdateFirmwareCompletedSignal struct {
// contains filtered or unexported fields
}
UpdateFirmwareCompletedSignal holds values created from the MemoryPressureChrome D-Bus signal.