compupdater

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

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

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.

type MountMode

type MountMode bool

MountMode is the mode for LoadComponent about whether the component should be mounted.

const (
	// NoMount indicates "do not mount on LoadComponent".
	NoMount MountMode = false
	// Mount indicates "mount on LoadComponent".
	Mount MountMode = true
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL