Documentation
¶
Index ¶
- Constants
- func EncodeGroupId(groupId string) string
- func GetNfInstanceURI(nfInstID string) string
- func GetNofificationUri(nfProfile models.NfProfile) []string
- func InitNFService(srvNameList []string, version string) []models.NfService
- func InitNrfContext() error
- func Ipv4IntToIpv4String(ip int64) string
- func Ipv4ToInt(ipv4 string) int64
- func Ipv6IntToIpv6String(ip *big.Int) string
- func Ipv6ToInt(ipv6 string) *big.Int
- func NnrfNFManagementDataModel(nf *models.NfProfile, nfprofile models.NfProfile) error
- func NnrfUriListLimit(originalUL *UriList, limit int)
- func SetLocationHeader(nfprofile models.NfProfile) string
- func SetsubscriptionId() (string, error)
- func SignNFCert(nfType, nfId string) error
- type Item
- type Links
- type NFContext
- type NRFContext
- type SearchNFInstances
- type UriList
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 ¶
EncodeGroupId - Encode GroupId to number string(output pattern: [10][3][3][25])
func GetNfInstanceURI ¶
func GetNofificationUri ¶
func InitNrfContext ¶
func InitNrfContext() error
func Ipv4IntToIpv4String ¶
Ipv4IntToIpv4String - Convert Ipv4 int64 to string
func Ipv6IntToIpv6String ¶
Ipv6IntToIpv6String - Convert Ipv6 *big.Int to string
func NnrfUriListLimit ¶
func SetLocationHeader ¶
func SetsubscriptionId ¶
func SignNFCert ¶
Types ¶
type NFContext ¶
type NFContext interface {
AuthorizationCheck(token string, serviceName models.ServiceName) error
}
type NRFContext ¶
type NRFContext struct {
NrfNfProfile models.NfProfile
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 ¶
func GetSelf() *NRFContext
func (*NRFContext) AddNfRegister ¶
func (ctx *NRFContext) AddNfRegister()
func (*NRFContext) AuthorizationCheck ¶
func (context *NRFContext) AuthorizationCheck(token string, serviceName models.ServiceName) error
func (*NRFContext) DelNfRegister ¶
func (ctx *NRFContext) DelNfRegister()
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" `
}
Click to show internal directories.
Click to hide internal directories.