Documentation ¶
Index ¶
- Constants
- Variables
- func InitConfigFactory(f string) error
- func SyncConfigSQN(offset uint8) error
- func WriteConfigWithKey(key, value string) error
- type Config
- type Configuration
- type IMSI
- type Info
- type LogSetting
- type Logger
- type N3IWFInfo
- type N3UEInfo
- type PLMN
- type PolicyItem
- type SNSSAI
- type Security
Constants ¶
View Source
const (
N3ueExpectedConfigVersion = "1.0.1"
)
Variables ¶
View Source
var ( N3ueConfig Config N3ueInfo N3UEInfo N3iwfInfo N3IWFInfo )
Functions ¶
func InitConfigFactory ¶
func SyncConfigSQN ¶
func WriteConfigWithKey ¶
Types ¶
type Config ¶
type Config struct { Info *Info `yaml:"info" valid:"required"` Configuration *Configuration `yaml:"configuration" valid:"required"` Logger *Logger `yaml:"logger" valid:"optional"` }
func (*Config) GetVersion ¶
func (*Config) SetLogLevel ¶
func (c *Config) SetLogLevel()
type Configuration ¶
type LogSetting ¶
type Logger ¶
type Logger struct {
N3UE *LogSetting `yaml:"N3UE" valid:"optional"`
}
type N3UEInfo ¶
type N3UEInfo struct { IMSI IMSI `yaml:"IMSI" valid:"required"` AMFID string `yaml:"AMFID" valid:"hexadecimal,required"` IPSecIfaceName string `yaml:"IPSecIfaceName" valid:"stringlength(1|10),required"` IPSecIfaceAddr string `yaml:"IPSecIfaceAddr" valid:"host,required"` DnIPAddr string `yaml:"DnIPAddr" valid:"host,optional"` XfrmiId uint32 `yaml:"XfrmiId" valid:"numeric,required"` XfrmiName string `yaml:"XfrmiName" valid:"stringlength(1|10),required"` GreIfaceName string `yaml:"GreIfaceName" valid:"stringlength(1|10),required"` IkeSaSPI uint64 `yaml:"IkeSaSPI" valid:"hexadecimal,required"` IPSecSaCpSPI uint32 `yaml:"IPSecSA3gppControlPlaneSPI" valid:"hexadecimal,required"` SmPolicy []PolicyItem `yaml:"SmPolicy" valid:"required"` Security Security `yaml:"Security" valid:"required"` }
type PolicyItem ¶
type SNSSAI ¶
type Security ¶
type Security struct { K string `yaml:"K" valid:"hexadecimal,required"` RAND string `yaml:"RAND" valid:"hexadecimal,required"` SQN string `yaml:"SQN" valid:"hexadecimal,required"` AMF string `yaml:"AMF" valid:"hexadecimal,required"` OP string `yaml:"OP" valid:"hexadecimal,required"` OPC string `yaml:"OPC" valid:"hexadecimal,required"` }
Click to show internal directories.
Click to hide internal directories.