util

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 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.Gofree5gcPath("free5gc/nssfsslkey.log")
	NSSF_PEM_PATH = path_util.Gofree5gcPath("free5gc/support/TLS/nssf.pem")
	NSSF_KEY_PATH = path_util.Gofree5gcPath("free5gc/support/TLS/nssf.key")
)

Path of HTTP2 key and log file

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

Default configuration file

Functions

func AddAllowedSnssai

func AddAllowedSnssai(allowedSnssai AllowedSnssai, accessType AccessType, a *AuthorizedNetworkSliceInfo)

Add Allowed S-NSSAI to Authorized Network Slice Info

func AddAmfInformation

func AddAmfInformation(tai Tai, a *AuthorizedNetworkSliceInfo)

Add AMF information to Authorized Network Slice Info

func AuthorizeOfAmfFromConfig

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

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

func AuthorizeOfAmfTaFromConfig

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

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

func AuthorizeOfTaListFromConfig

func AuthorizeOfTaListFromConfig(taiList []Tai) []AuthorizedNssaiAvailabilityData

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

func CheckAllowedNssaiInAmfTa

func CheckAllowedNssaiInAmfTa(allowedNssaiList []AllowedNssai, nfId string, tai 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 Snssai, nssai []Snssai) bool

Check whether the NSSAI contains the specific S-NSSAI

func CheckStandardSnssai

func CheckStandardSnssai(snssai 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 PlmnId) bool

Check whether UE's Home PLMN is configured/supported

func CheckSupportedNssaiAvailabilityData

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

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

func CheckSupportedNssaiInPlmn

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

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

func CheckSupportedSnssaiInAmfTa

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

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

func CheckSupportedSnssaiInPlmn

func CheckSupportedSnssaiInPlmn(snssai Snssai, plmnId PlmnId) bool

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

func CheckSupportedSnssaiInTa

func CheckSupportedSnssaiInTa(snssai Snssai, tai Tai) bool

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

func CheckSupportedTa

func CheckSupportedTa(tai 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 Snssai, mappings []MappingOfSnssai) (MappingOfSnssai, bool)

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

func FindMappingWithServingSnssai

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

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

func GetAccessTypeFromConfig

func GetAccessTypeFromConfig(tai Tai) AccessType

Get Access Type of the given TAI from configuraion

func GetMappingOfPlmnFromConfig

func GetMappingOfPlmnFromConfig(homePlmnId PlmnId) []MappingOfSnssai

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

func GetNsiInformationListFromConfig

func GetNsiInformationListFromConfig(snssai Snssai) []NsiInformation

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

func GetRestrictedSnssaiListFromConfig

func GetRestrictedSnssaiListFromConfig(tai Tai) []RestrictedSnssai

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

func GetSupportedSnssaiListFromConfig

func GetSupportedSnssaiListFromConfig(nfId string, tai Tai) []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