Documentation
¶
Index ¶
- Constants
- func EncodeGroupId(groupId string) string
- func GetNfInstanceURI(nfInstID string) string
- func GetNofificationUri(nfProfile *models.NrfNfManagementNfProfile) []string
- func InitNFService(srvNameList []string, version string) []models.NrfNfManagementNfService
- 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.NrfNfManagementNfProfile, ...) error
- func NnrfUriListLimit(originalUL *UriList, limit int)
- func SetLocationHeader(nfprofile *models.NrfNfManagementNfProfile) 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 GetNofificationUri(nfProfile *models.NrfNfManagementNfProfile) []string
func InitNFService ¶
func InitNFService(srvNameList []string, version string) []models.NrfNfManagementNfService
func InitNrfContext ¶
func InitNrfContext() error
func Ipv4IntToIpv4String ¶
Ipv4IntToIpv4String - Convert Ipv4 int64 to string
func Ipv6IntToIpv6String ¶
Ipv6IntToIpv6String - Convert Ipv6 *big.Int to string
func NnrfNFManagementDataModel ¶
func NnrfNFManagementDataModel(nf *models.NrfNfManagementNfProfile, nfprofile *models.NrfNfManagementNfProfile) error
func NnrfUriListLimit ¶
func SetLocationHeader ¶
func SetLocationHeader(nfprofile *models.NrfNfManagementNfProfile) string
func SetsubscriptionId ¶
func SignNFCert ¶ added in v1.2.1
Types ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.