context

package
v0.0.0-...-95fcc09 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NRF_NFINST_RES_URI_PREFIX = factory.NRF_NFM_RES_URI_PREFIX + "/nf-instances/"

Variables

View Source
var (
	NrfNfProfile     models.NfProfile
	Nrf_NfInstanceID string
)

Functions

func EncodeGroupId

func EncodeGroupId(groupId string) string

EncodeGroupId - Encode GroupId to number string(output pattern: [10][3][3][25])

func GetNfInstanceURI

func GetNfInstanceURI(nfInstID string) string

func GetNofificationUri

func GetNofificationUri(nfProfile models.NfProfile) []string

func InitNFService

func InitNFService(srvNameList []string, version string) []models.NfService

func InitNrfContext

func InitNrfContext()

func Ipv4IntToIpv4String

func Ipv4IntToIpv4String(ip int64) string

Ipv4IntToIpv4String - Convert Ipv4 int64 to string

func Ipv4ToInt

func Ipv4ToInt(ipv4 string) int64

Ipv4ToInt - Convert Ipv4 string to int64

func Ipv6IntToIpv6String

func Ipv6IntToIpv6String(ip *big.Int) string

Ipv6IntToIpv6String - Convert Ipv6 *big.Int to string

func Ipv6ToInt

func Ipv6ToInt(ipv6 string) *big.Int

Ipv6ToInt - Convert Ipv6 string to *bigInt

func NnrfNFManagementDataModel

func NnrfNFManagementDataModel(nf *models.NfProfile, nfprofile models.NfProfile) error

func NnrfUriListLimit

func NnrfUriListLimit(originalUL *UriList, limit int)

func SetLocationHeader

func SetLocationHeader(nfprofile models.NfProfile) string

func SetsubscriptionId

func SetsubscriptionId() string

Types

type Item

type Item struct {
	Href string `json:"href" bson:"href"`
}
type Links struct {
	Item []Item `json:"item" bson:"item"`
}

type SearchNFInstances

type SearchNFInstances struct {
	TargetNFType            models.NfType        `form:"target-nf-type" binding:"required"`
	RequesterNFType         models.NfType        `form:"requester-nf-type" binding:"required"`
	ServiceNames            []models.ServiceName `form:"service-names" `
	RequesterNfInstanceFqdn string               `form:"requester-nf-instance-fqdn" `
	TargetPlmnList          []models.PlmnId      `form:"target-plmn-list" `
	RequesterPlmnList       []models.PlmnId      `form:"requester-plmn-list" `
	TargetNfInstanceID      string               `form:"target-nf-instance-id" `
	TargetNfFqdn            string               `form:"target-nf-type" `
	HnrfURI                 models.UriScheme     `form:"hnrf-uri" `
	Snssais                 []models.Snssai      `form:"snssais" `
	PlmnSpecificSnssaiList  []models.PlmnSnssai  `form:"plmn-specific-snssai-list"`
	Dnn                     string               `form:"dnn" `
	NsiList                 []string             `form:"nsi-list" `
	SmfServingArea          string               `form:"smf-serving-area" `
	Tai                     models.Tai           `form:"tai" `
	AmfRegionID             string               `form:"amf-region-id" `
	AmfSetID                string               `form:"amf-set-id" `
	Guami                   models.Guami         `form:"guami" `
	Supi                    string               `form:"supi" `
	UeIpv4Address           string               `form:"ue-ipv4-address" `
	IPDomain                string               `form:"ip-domain" `
	UeIpv6Prefix            string               `form:"ue-ipv6-prefix" `
	PgwInd                  bool                 `form:"pgw-ind" `
	Pgw                     string               `form:"pgw" `
	Gpsi                    string               `form:"gpsi" `
	ExternalGroupIdentity   string               `form:"external-group-identity" `
	DataSet                 models.DataSetId     `form:"data-set" `
	RoutingIndicator        string               `form:"routing-indicator" `
	GroupIDList             []string             `form:"group-id-list" `
	DnaiList                []string             `form:"dnai-list" `
	SupportedFeatures       []string             `form:"supported-features" `
	UpfIwkEpsInd            bool                 `form:"upf-iwk-eps-ind" `
	ChfSupportedPlmn        models.PlmnId        `form:"chf-supported-plmn" `
	PreferredLocality       string               `form:"preferred-locality" `
	AccessType              models.AccessType    `form:"access-type" `
}

type UriList

type UriList struct {
	NfType models.NfType `json:"nfType" bson:"nfType"`
	Link   Links         `json:"_link" bson:"_link" mapstructure:"_link"`
}

Jump to

Keyboard shortcuts

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