context

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const NRF_NFINST_RES_URI_PREFIX = factory.NrfNfmResUriPrefix + "/nf-instances/"
View Source
const (
	NfProfileCollName string = "NfProfile"
)

Variables

This section is empty.

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.NrfNfManagementNfProfile) []string

func InitNFService

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

func InitNrfContext

func InitNrfContext() error

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 NnrfUriListLimit

func NnrfUriListLimit(originalUL *UriList, limit int)

func SetLocationHeader

func SetLocationHeader(nfprofile *models.NrfNfManagementNfProfile) string

func SetsubscriptionId

func SetsubscriptionId() (string, error)

func SignNFCert added in v1.2.1

func SignNFCert(nfType, nfId string) error

Types

type Item

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

type NFContext added in v1.2.4

type NFContext interface {
	AuthorizationCheck(token string, serviceName models.ServiceName) error
}

type NRFContext added in v1.2.1

type NRFContext struct {
	NrfNfProfile     models.NrfNfManagementNfProfile
	Nrf_NfInstanceID string
	RootPrivKey      *rsa.PrivateKey
	RootCert         *x509.Certificate
	NrfPrivKey       *rsa.PrivateKey
	NrfPubKey        *rsa.PublicKey
	NrfCert          *x509.Certificate
	NfRegistNum      int
	// contains filtered or unexported fields
}

func GetSelf added in v1.2.1

func GetSelf() *NRFContext

func (*NRFContext) AddNfRegister added in v1.2.4

func (ctx *NRFContext) AddNfRegister()

func (*NRFContext) AuthorizationCheck added in v1.2.1

func (context *NRFContext) AuthorizationCheck(token string, serviceName models.ServiceName) error

func (*NRFContext) DelNfRegister added in v1.2.4

func (ctx *NRFContext) DelNfRegister()

type SearchNFInstances

type SearchNFInstances struct {
	TargetNFType            models.NrfNfManagementNfType `form:"target-nf-type" binding:"required"`
	RequesterNFType         models.NrfNfManagementNfType `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" `
	Ipv4Index               []string                     `form:"ipv4-index"`
	Ipv6Index               []string                     `form:"ipv6-index"`
	NsiList                 []string                     `form:"nsi-list" `
	SmfServingArea          string                       `form:"smf-serving-area" `
	MbSmfServingArea        string                       `form:"mbsmf-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" `
	PgwIP                   string                       `form:"pgw-ip" `
	Gpsi                    string                       `form:"gpsi" `
	ExternalGroupIdentity   string                       `form:"external-group-identity" `
	InternalGroupIdentity   string                       `form:"internal-group-identity" `
	PfdData                 string                       `form:"pfd-data" `
	DataSet                 models.DataSetId             `form:"data-set" `
	RoutingIndicator        string                       `form:"routing-indicator" `
	GroupIDList             []string                     `form:"group-id-list" `
	DnaiList                []string                     `form:"dnai-list" `
	PduSessionType          []models.PduSessionType      `form:"pdu-session-typs" `
	EventIdList             []string                     `form:"event-id-list" `
	NwdafEventList          []models.NwdafEvent          `form:"nwdaf-event-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.NrfNfManagementNfType `json:"nfType,omitempty" bson:"nfType,omitempty"`
	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