Documentation
¶
Index ¶
- func FullSTKProfile() stk.Profile
- func ProfileFromCallbacks(callbacks STKCallbacks) stk.Profile
- type AKAIdentityState
- type AKAResult
- type Card
- func (u *Card) AKA(ctx context.Context, rand, autn []byte) (AKAResult, error)
- func (u *Card) AKAIdentityState() AKAIdentityState
- func (u *Card) Close() error
- func (u *Card) EAPAKA(ctx context.Context, rand, autn []byte) (AKAResult, error)
- func (u *Card) GID1() string
- func (u *Card) GID2() string
- func (u *Card) HomeDomain() string
- func (u *Card) ICCID() string
- func (u *Card) IMSI() string
- func (u *Card) MCC() string
- func (u *Card) MNC() string
- func (u *Card) MNCLength() int
- func (u *Card) PrivateIdentity() string
- func (u *Card) PublicIdentity() string
- func (u *Card) SMSC() string
- func (u *Card) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
- func (u *Card) SPN() string
- func (u *Card) STK() (*STK, error)
- func (u *Card) ServiceCenter() ServiceCenter
- func (u *Card) SetAKAIdentityState(state AKAIdentityState)
- type MBIM
- func (m *MBIM) Authenticate3G(ctx context.Context, req simcard.AuthenticateRequest) ([]byte, error)
- func (m *MBIM) Close() error
- func (m *MBIM) Commands(ctx context.Context, profile stk.Profile) (<-chan STKSession, error)
- func (m *MBIM) Envelope(ctx context.Context, envelope []byte) (stk.EnvelopeResponse, error)
- func (m *MBIM) FileAttributes(ctx context.Context, file simcard.FileRef) (simcard.FileAttributes, error)
- func (m *MBIM) ListApplications(ctx context.Context) ([]simcard.Application, error)
- func (m *MBIM) ReadRecord(ctx context.Context, req simcard.RecordRead) ([]byte, error)
- func (m *MBIM) ReadTransparent(ctx context.Context, req simcard.TransparentRead) ([]byte, error)
- func (m *MBIM) Respond(ctx context.Context, session STKSession, response stk.TerminalResponse) error
- func (m *MBIM) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
- func (m *MBIM) STK() (*STK, error)
- func (m *MBIM) TerminalResponse(ctx context.Context, _ uint32, response []byte) error
- type QCOM
- func (r *QCOM) Authenticate3G(ctx context.Context, req simcard.AuthenticateRequest) ([]byte, error)
- func (r *QCOM) Close() error
- func (r *QCOM) Commands(ctx context.Context, profile stk.Profile) (<-chan STKSession, error)
- func (r *QCOM) Envelope(ctx context.Context, envelope []byte) (stk.EnvelopeResponse, error)
- func (r *QCOM) FileAttributes(ctx context.Context, file simcard.FileRef) (simcard.FileAttributes, error)
- func (r *QCOM) ListApplications(ctx context.Context) ([]simcard.Application, error)
- func (r *QCOM) ReadRecord(ctx context.Context, req simcard.RecordRead) ([]byte, error)
- func (r *QCOM) ReadTransparent(ctx context.Context, req simcard.TransparentRead) ([]byte, error)
- func (r *QCOM) Respond(ctx context.Context, session STKSession, response stk.TerminalResponse) error
- func (r *QCOM) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
- func (r *QCOM) STK() (*STK, error)
- func (r *QCOM) TerminalResponse(ctx context.Context, ref uint32, response []byte) error
- type Reader
- func (r *Reader) Authenticate3G(ctx context.Context, req simcard.AuthenticateRequest) ([]byte, error)
- func (r *Reader) Close() error
- func (r *Reader) Commands(ctx context.Context, profile stk.Profile) (<-chan STKSession, error)
- func (r *Reader) Envelope(ctx context.Context, envelope []byte) (stk.EnvelopeResponse, error)
- func (r *Reader) FileAttributes(ctx context.Context, file simcard.FileRef) (simcard.FileAttributes, error)
- func (r *Reader) ListApplications(ctx context.Context) ([]simcard.Application, error)
- func (r *Reader) ReadRecord(ctx context.Context, req simcard.RecordRead) ([]byte, error)
- func (r *Reader) ReadTransparent(ctx context.Context, req simcard.TransparentRead) ([]byte, error)
- func (r *Reader) Respond(ctx context.Context, session STKSession, response stk.TerminalResponse) error
- func (r *Reader) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
- func (r *Reader) STK() (*STK, error)
- func (r *Reader) TerminalResponse(ctx context.Context, _ uint32, data []byte) error
- type STK
- func (s *STK) Handle(ctx context.Context, session STKSession, callbacks STKCallbacks) error
- func (s *STK) Run(ctx context.Context, callbacks STKCallbacks) error
- func (s *STK) SendEnvelope(ctx context.Context, envelope stk.Envelope) (stk.EnvelopeResponse, error)
- func (s *STK) SendRawEnvelope(ctx context.Context, envelope []byte) (stk.EnvelopeResponse, error)
- type STKCallback
- type STKCallbacks
- type STKSession
- type ServiceCenter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullSTKProfile ¶
func ProfileFromCallbacks ¶
func ProfileFromCallbacks(callbacks STKCallbacks) stk.Profile
Types ¶
type AKAIdentityState ¶
type AKAIdentityState struct {
Pseudonym string
ReauthIdentity string
Counter uint16
MK []byte
KEncr []byte
KAut []byte
}
func (AKAIdentityState) HasPseudonym ¶
func (s AKAIdentityState) HasPseudonym() bool
func (AKAIdentityState) HasReauth ¶
func (s AKAIdentityState) HasReauth() bool
type AKAResult ¶
func (AKAResult) AuthenticationRejected ¶
func (AKAResult) Successful ¶
func (AKAResult) SynchronizationFailed ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
func (*Card) AKAIdentityState ¶
func (u *Card) AKAIdentityState() AKAIdentityState
func (*Card) HomeDomain ¶
func (*Card) PrivateIdentity ¶
func (*Card) PublicIdentity ¶
func (*Card) SMSPPDownload ¶
func (u *Card) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
func (*Card) ServiceCenter ¶
func (u *Card) ServiceCenter() ServiceCenter
func (*Card) SetAKAIdentityState ¶
func (u *Card) SetAKAIdentityState(state AKAIdentityState)
type MBIM ¶
type MBIM struct {
// contains filtered or unexported fields
}
func (*MBIM) Authenticate3G ¶
func (*MBIM) FileAttributes ¶
func (*MBIM) ListApplications ¶
func (*MBIM) ReadRecord ¶
func (*MBIM) ReadTransparent ¶
func (*MBIM) Respond ¶
func (m *MBIM) Respond(ctx context.Context, session STKSession, response stk.TerminalResponse) error
func (*MBIM) SMSPPDownload ¶
func (m *MBIM) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
type QCOM ¶
type QCOM struct {
// contains filtered or unexported fields
}
func (*QCOM) Authenticate3G ¶
func (*QCOM) FileAttributes ¶
func (*QCOM) ListApplications ¶
func (*QCOM) ReadRecord ¶
func (*QCOM) ReadTransparent ¶
func (*QCOM) Respond ¶
func (r *QCOM) Respond(ctx context.Context, session STKSession, response stk.TerminalResponse) error
func (*QCOM) SMSPPDownload ¶
func (r *QCOM) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) Authenticate3G ¶
func (*Reader) FileAttributes ¶
func (*Reader) ListApplications ¶
func (*Reader) ReadRecord ¶
func (*Reader) ReadTransparent ¶
func (*Reader) Respond ¶
func (r *Reader) Respond(ctx context.Context, session STKSession, response stk.TerminalResponse) error
func (*Reader) SMSPPDownload ¶
func (r *Reader) SMSPPDownload(ctx context.Context, req simcard.SMSPPDownloadRequest) (simcard.SMSPPDownloadResponse, error)
type STK ¶
type STK struct {
// contains filtered or unexported fields
}
func (*STK) Handle ¶
func (s *STK) Handle(ctx context.Context, session STKSession, callbacks STKCallbacks) error
func (*STK) SendEnvelope ¶
func (*STK) SendRawEnvelope ¶
type STKCallback ¶
type STKCallbacks ¶
type STKCallbacks struct {
DisplayText STKCallback[stk.DisplayTextCommand]
GetInkey STKCallback[stk.GetInkeyCommand]
GetInput STKCallback[stk.GetInputCommand]
SetupMenu STKCallback[stk.SetupMenuCommand]
SelectItem STKCallback[stk.SelectItemCommand]
SetupEventList STKCallback[stk.SetupEventListCommand]
MoreTime STKCallback[stk.SimpleCommand]
Refresh STKCallback[stk.SimpleCommand]
PlayTone STKCallback[stk.SimpleCommand]
SendSMS STKCallback[stk.SimpleCommand]
SendSS STKCallback[stk.SimpleCommand]
SendUSSD STKCallback[stk.SimpleCommand]
SendDTMF STKCallback[stk.SimpleCommand]
SetupCall STKCallback[stk.SimpleCommand]
LaunchBrowser STKCallback[stk.SimpleCommand]
ProvideLocalInfo STKCallback[stk.SimpleCommand]
SetupIdleModeText STKCallback[stk.SimpleCommand]
LanguageNotify STKCallback[stk.SimpleCommand]
Activate STKCallback[stk.SimpleCommand]
Generic STKCallback[stk.GenericCommand]
}
type STKSession ¶
type ServiceCenter ¶
func (ServiceCenter) Target ¶
func (s ServiceCenter) Target() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.