util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INVALID_REQUEST       = "Invalid request message framing"
	MALFORMED_REQUEST     = "Malformed request syntax"
	UNAUTHORIZED_CONSUMER = "Unauthorized NF service consumer"
	UNSUPPORTED_RESOURCE  = "Unsupported request resources"
)

Title in Problem Details for NSSF HTTP APIs

Variables

View Source
var (
	NSSF_LOG_PATH = path_util.Free5gcPath("free5gc/nssfsslkey.log")
	NSSF_PEM_PATH = path_util.Free5gcPath("free5gc/support/TLS/nssf.pem")
	NSSF_KEY_PATH = path_util.Free5gcPath("free5gc/support/TLS/nssf.key")
)

Path of HTTP2 key and log file

View Source
var DEFAULT_CONFIG string = "free5gc/config/nssfcfg.yaml"

Default configuration file

Functions

func AddAllowedSnssai

func AddAllowedSnssai(allowedSnssai models.AllowedSnssai, accessType models.AccessType,
	authorizedNetworkSliceInfo *models.AuthorizedNetworkSliceInfo)

Add Allowed S-NSSAI to Authorized Network Slice Info

func AddAmfInformation

func AddAmfInformation(tai models.Tai, authorizedNetworkSliceInfo *models.AuthorizedNetworkSliceInfo)

Add AMF information to Authorized Network Slice Info

func AuthorizeOfAmfFromConfig

func AuthorizeOfAmfFromConfig(nfId string) ([]models.AuthorizedNssaiAvailabilityData, error)

Get all authorized NSSAI availability data of the given NF ID from configuration

func AuthorizeOfAmfTaFromConfig

func AuthorizeOfAmfTaFromConfig(nfId string, tai models.Tai) (models.AuthorizedNssaiAvailabilityData, error)

Get authorized NSSAI availability data of the given NF ID and TAI from configuration

func AuthorizeOfTaListFromConfig

func AuthorizeOfTaListFromConfig(taiList []models.Tai) []models.AuthorizedNssaiAvailabilityData

Get authorized NSSAI availability data of the given TAI list from configuration

func CheckAllowedNssaiInAmfTa

func CheckAllowedNssaiInAmfTa(allowedNssaiList []models.AllowedNssai, nfId string, tai models.Tai) bool

Check whether all S-NSSAIs in Allowed NSSAI is supported by the AMF at UE's current TA

func CheckSnssaiInNssai

func CheckSnssaiInNssai(targetSnssai models.Snssai, nssai []models.Snssai) bool

Check whether the NSSAI contains the specific S-NSSAI

func CheckStandardSnssai

func CheckStandardSnssai(snssai models.Snssai) bool

Check whether S-NSSAI is standard or non-standard value A standard S-NSSAI is only comprised of a standardized SST value and no SD

func CheckSupportedHplmn

func CheckSupportedHplmn(homePlmnId models.PlmnId) bool

Check whether UE's Home PLMN is configured/supported

func CheckSupportedNssaiAvailabilityData

func CheckSupportedNssaiAvailabilityData(
	snssai models.Snssai, tai models.Tai, s []models.SupportedNssaiAvailabilityData) bool

Check whether S-NSSAI is in SupportedNssaiAvailabilityData under the given TAI

func CheckSupportedNssaiInPlmn

func CheckSupportedNssaiInPlmn(nssai []models.Snssai, plmnId models.PlmnId) bool

Check whether S-NSSAIs in NSSAI are supported or not in PLMN

func CheckSupportedSnssaiInAmfTa

func CheckSupportedSnssaiInAmfTa(snssai models.Snssai, nfId string, tai models.Tai) bool

Check whether S-NSSAI is supported or not by the AMF at UE's current TA

func CheckSupportedSnssaiInPlmn

func CheckSupportedSnssaiInPlmn(snssai models.Snssai, plmnId models.PlmnId) bool

Check whether the given S-NSSAI is supported or not in PLMN

func CheckSupportedSnssaiInTa

func CheckSupportedSnssaiInTa(snssai models.Snssai, tai models.Tai) bool

Check whether S-NSSAI is supported or not at UE's current TA

func CheckSupportedTa

func CheckSupportedTa(tai models.Tai) bool

Check whether UE's current TA is configured/supported

func Contain

func Contain(target interface{}, slice interface{}) bool

Check if a slice contains an element

func FindMappingWithHomeSnssai

func FindMappingWithHomeSnssai(snssai models.Snssai, mappings []models.MappingOfSnssai) (models.MappingOfSnssai, bool)

Find target S-NSSAI mapping with home S-NSSAIs from mapping of S-NSSAI(s)

func FindMappingWithServingSnssai

func FindMappingWithServingSnssai(
	snssai models.Snssai, mappings []models.MappingOfSnssai) (models.MappingOfSnssai, bool)

Find target S-NSSAI mapping with serving S-NSSAIs from mapping of S-NSSAI(s)

func GetAccessTypeFromConfig

func GetAccessTypeFromConfig(tai models.Tai) models.AccessType

Get Access Type of the given TAI from configuraion

func GetMappingOfPlmnFromConfig

func GetMappingOfPlmnFromConfig(homePlmnId models.PlmnId) []models.MappingOfSnssai

Get S-NSSAI mappings of the given Home PLMN ID from configuration

func GetNsiInformationListFromConfig

func GetNsiInformationListFromConfig(snssai models.Snssai) []models.NsiInformation

Get NSI information list of the given S-NSSAI from configuration

func GetRestrictedSnssaiListFromConfig

func GetRestrictedSnssaiListFromConfig(tai models.Tai) []models.RestrictedSnssai

Get restricted S-NSSAI list of the given TAI from configuration

func GetSupportedSnssaiListFromConfig

func GetSupportedSnssaiListFromConfig(nfId string, tai models.Tai) []models.Snssai

Get supported S-NSSAI list of the given NF ID and TAI from configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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