hermes

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: 8 Imported by: 0

Documentation

Overview

Package hermes provides D-Bus wrappers and utilities for Hermes. https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/hermes/README.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProperty

func CheckProperty(ctx context.Context, o *dbusutil.DBusObject, prop string, expected interface{}) error

CheckProperty reads a DBus property on a DBusObject. Returns an error if the value does not match the expected value

Types

type EUICC

type EUICC struct {
	*dbusutil.DBusObject
}

EUICC wraps a Hermes.EUICC DBus object.

func GetEUICC

func GetEUICC(ctx context.Context, findTestEuicc bool) (*EUICC, int, error)

GetEUICC will return a EUICC dbus object and its slot number. If findTestEuicc is set, a test eUICC will be returned, else a prod eUICC will be returned.

func NewEUICC

func NewEUICC(ctx context.Context, euiccNum int) (*EUICC, error)

NewEUICC returns a DBusObject for the euiccNum'th (zero based) eSIM.

func (*EUICC) EnabledProfile

func (e *EUICC) EnabledProfile(ctx context.Context) (*Profile, error)

EnabledProfile reads the eSIM, and returns the enabled Profile of the eSIM if found.

func (*EUICC) InstalledProfiles

func (e *EUICC) InstalledProfiles(ctx context.Context, shouldNotSwitchSlot bool) ([]Profile, error)

InstalledProfiles reads the eSIM, and returns the installed profiles in the eSIM.

type Manager

type Manager struct {
	*dbusutil.DBusObject
}

Manager wraps a Hermes.Manager DBus object.

func GetHermesManager

func GetHermesManager(ctx context.Context) (*Manager, error)

GetHermesManager returns a Hermes manager object that can be used to list available eSIMs.

type Profile

type Profile struct {
	*dbusutil.DBusObject
}

Profile wraps a Hermes.Profile DBus object.

func NewProfile

func NewProfile(ctx context.Context, profilePath dbus.ObjectPath) (*Profile, error)

NewProfile returns a Profile corresponding to a DBus object at profilePath

func (*Profile) IsTestProfile

func (p *Profile) IsTestProfile(ctx context.Context) (bool, error)

IsTestProfile returns true if a profile is a test profile.

Jump to

Keyboard shortcuts

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