Documentation ¶
Overview ¶
Package compupdater provides D-Bus proxy interface to communicate with ComponentUpdaterService provided by Chrome.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentUpdater ¶
type ComponentUpdater struct {
// contains filtered or unexported fields
}
ComponentUpdater is used to interact with the ComponentUpdater provided by Chrome over D-Bus. For detailed spec of each D-Bus method, please find chrome/browser/chromeos/dbus/component_updater_service_provider.h in Chrome repository.
func New ¶
func New(ctx context.Context) (*ComponentUpdater, error)
New connects to ComponentUpdaterService provided by Chrome via D-Bus and returns ComponentUpdater object.
func (*ComponentUpdater) LoadComponent ¶
func (c *ComponentUpdater) LoadComponent(ctx context.Context, name string, mount MountMode) (path string, err error)
LoadComponent calls ComponentUpdaterService.LoadComponent D-Bus method.
func (*ComponentUpdater) UnloadComponent ¶
func (c *ComponentUpdater) UnloadComponent(ctx context.Context, name string) error
UnloadComponent calls ComponentUpdaterService.UnloadComponent D-Bus method.
Click to show internal directories.
Click to hide internal directories.