context

package
v0.0.0-...-ae4e76f Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPUri

func GetIPUri() string

func GetIpEndPoint

func GetIpEndPoint() []models.IpEndPoint

func Init

func Init()

Types

type EIRContext

type EIRContext struct {
	Name           string
	UriScheme      models.UriScheme
	RegisterIP     netip.Addr // IP register to NRF
	BindingIP      netip.Addr
	SBIPort        int
	DefaultStatus  string
	NfService      map[models.ServiceName]models.NrfNfManagementNfService
	NfId           string
	NrfUri         string
	NrfCertPem     string
	OAuth2Required bool
}

func GetSelf

func GetSelf() *EIRContext

Create new EIR context

func (*EIRContext) AuthorizationCheck

func (c *EIRContext) AuthorizationCheck(token string, serviceName models.ServiceName) error

func (*EIRContext) GetTokenCtx

func (c *EIRContext) GetTokenCtx(serviceName models.ServiceName, targetNF models.NrfNfManagementNfType) (
	context.Context, *models.ProblemDetails, error,
)

type NFContext

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

Jump to

Keyboard shortcuts

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