udm_context

package
v0.0.0-...-3a7200f Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocationUriAmf3GppAccessRegistration int = iota
	LocationUriAmfNon3GppAccessRegistration
	LocationUriSmfRegistration
	LocationUriSdmSubscription
	LocationUriSharedDataSubscription
)

Variables

This section is empty.

Functions

func CreateAccessMobilitySubsDataForUe

func CreateAccessMobilitySubsDataForUe(Supi string, body models.AccessAndMobilitySubscriptionData)

Function to create the AccessAndMobilitySubscriptionData for Ue

func CreateAmf3gppRegContext

func CreateAmf3gppRegContext(Supi string, body models.Amf3GppAccessRegistration)

func CreateAmfNon3gppRegContext

func CreateAmfNon3gppRegContext(Supi string, body models.AmfNon3GppAccessRegistration)

func CreateEeSusbContext

func CreateEeSusbContext(ueId string, body models.CreatedEeSubscription)

Functions related to EE services

func CreateSmfRegContext

func CreateSmfRegContext(Supi string, pduSessionID string)

func CreateSmfSelectionSubsDatadforUe

func CreateSmfSelectionSubsDatadforUe(Supi string, body models.SmfSelectionSubscriptionData)

functions for SmfSelectionSubscriptionData

func CreateSubsDataSetsForUe

func CreateSubsDataSetsForUe(Supi string, body models.SubscriptionDataSets)

functions related to Retrieval of multiple datasets(GetSupi)

func CreateSubscriptiontoNotifChange

func CreateSubscriptiontoNotifChange(SubscriptionID string, body *models.SdmSubscription)

functions related to sdmSubscription (subscribe to notification of data change)

func CreateSubstoNotifSharedData

func CreateSubstoNotifSharedData(SubscriptionID string, body *models.SdmSubscription)

func CreateTraceDataforUe

func CreateTraceDataforUe(Supi string, body models.TraceData)

Functions related to the trace data configuration

func CreateUeContextInSmfDataforUe

func CreateUeContextInSmfDataforUe(Supi string, body models.UeContextInSmfData)

functions related UecontextInSmfData

func GetAccessMobilitySubsDataForUe

func GetAccessMobilitySubsDataForUe(Supi string) *models.AccessAndMobilitySubscriptionData

func GetAmf3gppRegContext

func GetAmf3gppRegContext(Supi string) *models.Amf3GppAccessRegistration

func GetAmfNon3gppRegContext

func GetAmfNon3gppRegContext(Supi string) *models.AmfNon3GppAccessRegistration

func GetCorrespondingSupi

func GetCorrespondingSupi(list models.IdentityData) (id string)

Returns the SUPI from the SUPI list (SUPI list contains either a SUPI or a NAI)

func GetSmfRegContext

func GetSmfRegContext(Supi string) string

func GetUdmProfileAHNPrivateKey

func GetUdmProfileAHNPrivateKey() string

func GetUdmProfileAHNPublicKey

func GetUdmProfileAHNPublicKey() string

func GetUdmProfileBHNPrivateKey

func GetUdmProfileBHNPrivateKey() string

func GetUdmProfileBHNPublicKey

func GetUdmProfileBHNPublicKey() string

func Init

func Init()

func InitUDMContext

func InitUDMContext(context *UDMContext)

func ManageSmData

func ManageSmData(smDatafromUDR []models.SessionManagementSubscriptionData, snssaiFromReq string, dnnFromReq string) (mp map[string]models.SessionManagementSubscriptionData, ind string,
	Dnns []models.DnnConfiguration, allDnns []map[string]models.DnnConfiguration)

func MappingSharedData

func MappingSharedData(sharedDatafromUDR []models.SharedData) (mp map[string]models.SharedData)

HandleGetSharedData related functions

func ObtainRequiredSharedData

func ObtainRequiredSharedData(Sharedids []string, response []models.SharedData) (sharedDatas []models.SharedData)

func TestInit

func TestInit()

func UdmAmf3gppRegContextExists

func UdmAmf3gppRegContextExists(Supi string) bool

func UdmAmfNon3gppRegContextExists

func UdmAmfNon3gppRegContextExists(Supi string) bool

func UdmNfCntxtNotExisting

func UdmNfCntxtNotExisting(SubscriptionID string) bool

func UdmNfCntxtSharedDataExisting

func UdmNfCntxtSharedDataExisting(SubscriptionID string) bool

func UdmSmfRegContextNotExists

func UdmSmfRegContextNotExists(Supi string) bool

func UdmUeAccessMobilitySubsDataExisting

func UdmUeAccessMobilitySubsDataExisting(Supi string) bool

Check if Access and Mobility Subscription Data context exists

func UdmUeCtxtInSmfDataExisting

func UdmUeCtxtInSmfDataExisting(Supi string) bool

func UdmUeSessionMgtSubsDataExisting

func UdmUeSessionMgtSubsDataExisting(Supi string) bool

Check if SessionMgtSubsData context exists

func UdmUeSubsDataSetsExisting

func UdmUeSubsDataSetsExisting(Supi string) bool

func UdmUeTraceDataExisting

func UdmUeTraceDataExisting(Supi string) bool

func UdmueSmfSelSubsDataNotExisting

func UdmueSmfSelSubsDataNotExisting(Supi string) bool

Types

type UDMContext

type UDMContext struct {
	Name              string
	NfId              string
	GroupId           string
	HttpIpv4Port      int
	HttpIPv4Address   string
	UriScheme         models.UriScheme
	NfService         map[models.ServiceName]models.NfService
	NFDiscoveryClient *Nnrf_NFDiscovery.APIClient
	UdmUePool         map[string]*UdmUeContext // supi as key
	UdmNFPool         map[string]*UdmNFContext // SubscriptionID as key
	NrfUri            string
	GpsiSupiList      models.IdentityData
	SharedSubsDataMap map[string]models.SharedData // sharedDataIds as key
	Keys              *factory.Keys
}

func UDM_Self

func UDM_Self() *UDMContext

func (*UDMContext) GetIPv4Uri

func (context *UDMContext) GetIPv4Uri() string

func (*UDMContext) InitNFService

func (context *UDMContext) InitNFService(serviceName []string, version string)

type UdmNFContext

type UdmNFContext struct {
	SubscriptionID                   string
	SubscribeToNotifChange           *models.SdmSubscription // SubscriptionID as key
	SubscribeToNotifSharedDataChange *models.SdmSubscription // SubscriptionID as key
}

func CreateUdmNf

func CreateUdmNf(SubscriptionID string) (udmNf *UdmNFContext)

type UdmUeContext

type UdmUeContext struct {
	Supi                              string
	GpsiFromReq                       string
	Nssai                             *models.Nssai
	Amf3GppAccessRegistration         *models.Amf3GppAccessRegistration
	AmfNon3GppAccessRegistration      *models.AmfNon3GppAccessRegistration
	AccessAndMobilitySubscriptionData *models.AccessAndMobilitySubscriptionData
	SmfSelSubsData                    *models.SmfSelectionSubscriptionData
	UeCtxtInSmfData                   *models.UeContextInSmfData
	TraceDataResponse                 models.TraceDataResponse
	TraceData                         *models.TraceData
	SessionManagementSubsData         map[string]models.SessionManagementSubscriptionData
	SubsDataSets                      *models.SubscriptionDataSets
	SubscribeToNotifChange            *models.SdmSubscription
	SubscribeToNotifSharedDataChange  *models.SdmSubscription
	PduSessionID                      string
	UdrUri                            string
	CreatedEeSubscription             models.CreatedEeSubscription
	UdmSubsToNotify                   map[string]*models.SubscriptionDataSubscriptions
}

func CreateUdmUe

func CreateUdmUe(Supi string) (udmUe *UdmUeContext)

func UdmUe_self

func UdmUe_self() *UdmUeContext

func (*UdmUeContext) GetLocationURI

func (ue *UdmUeContext) GetLocationURI(types int) string

func (*UdmUeContext) GetLocationURI2

func (ue *UdmUeContext) GetLocationURI2(types int, supi string) string

func (*UdmUeContext) SameAsStoredGUAMI3gpp

func (ue *UdmUeContext) SameAsStoredGUAMI3gpp(inGuami models.Guami) bool

func (*UdmUeContext) SameAsStoredGUAMINon3gpp

func (ue *UdmUeContext) SameAsStoredGUAMINon3gpp(inGuami models.Guami) bool

Jump to

Keyboard shortcuts

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