Documentation ¶
Index ¶
- func Init()
- func RetrySendNFRegistration(maxRetry int) error
- func SendDeregisterNFInstance() (*models.ProblemDetails, error)
- func SendNFRegistration() error
- func SendSearchNFInstances(targetNfType models.NfType) ([]models.NfProfile, error)
- type NfInstance
- type NfOamInstance
- type WEBUIContext
- func (context *WEBUIContext) GetOamUris(targetNfType models.NfType) (uris []string)
- func (c *WEBUIContext) GetTokenCtx(serviceName models.ServiceName, targetNF models.NfType) (context.Context, *models.ProblemDetails, error)
- func (context *WEBUIContext) NfProfileAlreadyExists(nfProfile models.NfProfile) bool
- func (c *WEBUIContext) RequestBindToken(req *http.Request, ctx context.Context) error
- func (context *WEBUIContext) UpdateNfProfiles()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrySendNFRegistration ¶ added in v1.3.1
func SendDeregisterNFInstance ¶ added in v1.3.1
func SendDeregisterNFInstance() (*models.ProblemDetails, error)
func SendNFRegistration ¶ added in v1.3.1
func SendNFRegistration() error
Types ¶
type NfInstance ¶ added in v1.3.1
type WEBUIContext ¶
type WEBUIContext struct { NfInstanceID string NFProfiles []models.NfProfile NFOamInstances []NfOamInstance // is registered to NRF as AF IsRegistered bool NrfUri string OAuth2Required bool NFManagementClient *Nnrf_NFManagement.APIClient NFDiscoveryClient *Nnrf_NFDiscovery.APIClient }
func GetSelf ¶ added in v1.3.1
func GetSelf() *WEBUIContext
func (*WEBUIContext) GetOamUris ¶
func (context *WEBUIContext) GetOamUris(targetNfType models.NfType) (uris []string)
func (*WEBUIContext) GetTokenCtx ¶ added in v1.3.1
func (c *WEBUIContext) GetTokenCtx(serviceName models.ServiceName, targetNF models.NfType) ( context.Context, *models.ProblemDetails, error, )
func (*WEBUIContext) NfProfileAlreadyExists ¶
func (context *WEBUIContext) NfProfileAlreadyExists(nfProfile models.NfProfile) bool
func (*WEBUIContext) RequestBindToken ¶ added in v1.3.2
NewRequestWithContext() will not apply header in ctx so httpsClient.Do(req) will not have token in header if OAuth2 enable
func (*WEBUIContext) UpdateNfProfiles ¶
func (context *WEBUIContext) UpdateNfProfiles()
Click to show internal directories.
Click to hide internal directories.