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 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfigFactory

func InitConfigFactory(f string)

TODO: Support configuration update from REST api

Types

type Config

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

	Configuration *Configuration `yaml:"configuration"`
}
var UdmConfig Config

type Configuration

type Configuration struct {
	UdmName string `yaml:"udmName,omitempty"`

	Sbi *Sbi `yaml:"sbi,omitempty"`

	ServiceNameList []string `yaml:"serviceNameList,omitempty"`

	Udrclient *Udrclient `yaml:"udrclient,omitempty"`

	Nrfclient *Nrfclient `yaml:"nrfclient,omitempty"`

	NrfUri string `yaml:"nrfUri,omitempty"`

	Keys *Keys `yaml:"keys,omitempty"`
}

type Info

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

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

type Keys

type Keys struct {
	UdmProfileAHNPrivateKey string `yaml:"udmProfileAHNPrivateKey,omitempty"`
	UdmProfileAHNPublicKey  string `yaml:"udmProfileAHNPublicKey,omitempty"`
	UdmProfileBHNPrivateKey string `yaml:"udmProfileBHNPrivateKey,omitempty"`
	UdmProfileBHNPublicKey  string `yaml:"udmProfileBHNPublicKey,omitempty"`
}

type Nrfclient

type Nrfclient struct {
	Scheme   string `yaml:"scheme"`
	Ipv4Addr string `yaml:"ipv4Addr,omitempty"`
	Port     int    `yaml:"port,omitempty"`
}

type Sbi

type Sbi struct {
	Scheme   string `yaml:"scheme"`
	IPv4Addr string `yaml:"ipv4Addr,omitempty"`
	// IPv6Addr string `yaml:"ipv6Addr,omitempty"`
	Port int  `yaml:"port,omitempty"`
	Tls  *Tls `yaml:"tls,omitempty"`
}

type Tls

type Tls struct {
	Log string `yaml:"log,omitempty"`

	Pem string `yaml:"pem,omitempty"`

	Key string `yaml:"key,omitempty"`
}

type Udrclient

type Udrclient struct {
	Scheme   string `yaml:"scheme"`
	Ipv4Addr string `yaml:"ipv4Addr,omitempty"`
	Port     int    `yaml:"port,omitempty"`
}

Jump to

Keyboard shortcuts

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