esim

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Esim

type Esim interface {
	Eid() (string, error)
	ListProfiles() ([]Profile, error)
	Download(smdp string, activationCode string, confirmationCode string, imei string) error
	Rename(iccid string, name string) error
	Enable(iccid string) error
	Disable(iccid string) error
	Delete(iccid string) error
	ListNotifications() ([]Notification, error)
	ProcessNotification(seqNumber string) error
}

func New

func New(device string) Esim

type Notification added in v1.0.2

type Notification struct {
	SeqNumber                  int    `json:"seqNumber"`
	ProfileManagementOperation int    `json:"profileManagementOperation"`
	NotificationAddress        string `json:"notificationAddress"`
	Iccid                      string `json:"iccid"`
}

type Profile

type Profile struct {
	Iccid           string `json:"iccid"`
	ProviderName    string `json:"serviceProviderName"`
	ProfileName     string `json:"profileName"`
	ProfileNickname string `json:"profileNickname"`
	State           int    `json:"profileState"`
}

Jump to

Keyboard shortcuts

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