config

package
v0.0.0-...-30f0efb Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(conf *Configuration, cfgFileName string)

Types

type Configuration

type Configuration struct {
	Infrap4dGrpcServer ServerConf  `yaml:"Infrap4dGrpcServer,omitempty"`
	Infrap4dGnmiServer ServerConf  `yaml:"Infrap4dGnmiServer,omitempty"`
	Services           bool        `yaml:"Services,omitempty"`
	Policy             bool        `yaml:"Policy,omitempty"`
	InfraManager       ManagerConf `yaml:"InfraManager,omitempty"`
	InterfaceType      string      `yaml:"InterfaceType,omitempty"`
	NodeIP             string      `yaml:"NodeIP,omitempty"`
	LogLevel           string      `yaml:"LogLevel,omitempty"`
	P4InfoPath         string      `yaml:"P4InfoPath,omitempty"`
	P4BinPath          string      `yaml:"P4BinPath,omitempty"`
	DeviceId           uint64      `yaml:"DeviceID,omitempty"`
}

Configurations exported

type ManagerConf

type ManagerConf struct {
	Addr         string   `yaml:"addr,omitempty"`
	ArpMac       string   `yaml:"arpmac,omitempty"`
	Conn         string   `yaml:"conn,omitempty"`
	ServerCert   string   `yaml:"serverCert,omitempty"`
	ServerKey    string   `yaml:"serverKey,omitempty"`
	CACert       string   `yaml:"caCert,omitempty"`
	CipherSuites []string `yaml:"ciphersuites,flow,omitempty"`
	DBTicker     uint32   `yaml:"DBTicker,omitempty"`
}

type ServerConf

type ServerConf struct {
	Addr       string `yaml:"addr,omitempty"`
	Conn       string `yaml:"conn,omitempty"`
	ClientCert string `yaml:"clientCert,omitempty"`
	ClientKey  string `yaml:"clientKey,omitempty"`
	CACert     string `yaml:"caCert,omitempty"`
}

ServerConfigurations exported

Jump to

Keyboard shortcuts

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