factory

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configured bool

Functions

func InitConfigFactory

func InitConfigFactory(f string)

TODO: Support configuration update from REST api

Types

type AmfConfig

type AmfConfig struct {
	NfId string `yaml:"nfId"`

	SupportedNssaiAvailabilityData []SupportedNssaiAvailabilityData `yaml:"supportedNssaiAvailabilityData"`
}

type AmfSetConfig

type AmfSetConfig struct {
	AmfSetId string `yaml:"amfSetId"`

	AmfList []string `yaml:"amfList,omitempty"`

	NrfAmfSet string `yaml:"nrfAmfSet,omitempty"`

	SupportedNssaiAvailabilityData []SupportedNssaiAvailabilityData `yaml:"supportedNssaiAvailabilityData"`
}

type Config

type Config struct {
	Info *Info `yaml:"info"`

	Configuration *Configuration `yaml:"configuration"`

	Subscriptions []Subscription `yaml:"subscriptions,omitempty"`
}
var NssfConfig Config

type Configuration

type Configuration struct {
	NssfName string `yaml:"nssfName,omitempty"`

	Sbi *Sbi `yaml:"sbi"`

	ServiceNameList []models.ServiceName `yaml:"serviceNameList"`

	NrfUri string `yaml:"nrfUri"`

	SupportedPlmnList []models.PlmnId `yaml:"supportedPlmnList,omitempty"`

	SupportedNssaiInPlmnList []SupportedNssaiInPlmn `yaml:"supportedNssaiInPlmnList"`

	NsiList []NsiConfig `yaml:"nsiList,omitempty"`

	AmfSetList []AmfSetConfig `yaml:"amfSetList"`

	AmfList []AmfConfig `yaml:"amfList"`

	TaList []TaConfig `yaml:"taList"`

	MappingListFromPlmn []MappingFromPlmnConfig `yaml:"mappingListFromPlmn"`
}

type Info

type Info struct {
	Version string `yaml:"version"`

	Description string `yaml:"description,omitempty"`
}

type MappingFromPlmnConfig

type MappingFromPlmnConfig struct {
	OperatorName string `yaml:"operatorName,omitempty"`

	HomePlmnId *PlmnId `yaml:"homePlmnId"`

	MappingOfSnssai []MappingOfSnssai `yaml:"mappingOfSnssai"`
}

type NsiConfig

type NsiConfig struct {
	Snssai *Snssai `yaml:"snssai"`

	NsiInformationList []NsiInformation `yaml:"nsiInformationList"`
}

type Sbi

type Sbi struct {
	Scheme models.UriScheme `yaml:"scheme"`

	// Currently only support IPv4 and thus `Ipv4Addr` field shall not be empty
	Ipv4Addr string `yaml:"ipv4Addr"`

	Port int `yaml:"port"`
}

type Subscription

type Subscription struct {
	SubscriptionId string `yaml:"subscriptionId"`

	SubscriptionData *NssfEventSubscriptionCreateData `yaml:"subscriptionData"`
}

type SupportedNssaiInPlmn

type SupportedNssaiInPlmn struct {
	PlmnId *PlmnId `yaml:"plmnId"`

	SupportedSnssaiList []Snssai `yaml:"supportedSnssaiList"`
}

type TaConfig

type TaConfig struct {
	Tai *Tai `yaml:"tai"`

	AccessType *AccessType `yaml:"accessType"`

	SupportedSnssaiList []Snssai `yaml:"supportedSnssaiList"`

	RestrictedSnssaiList []RestrictedSnssai `yaml:"restrictedSnssaiList,omitempty"`
}

Jump to

Keyboard shortcuts

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