Documentation
¶
Overview ¶
Package brconf holds all of the global router state, for access by the router's various packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BR ¶
type BR struct { // Profile enables cpu and memory profiling. Profile bool // RollbackFailAction indicates the action that should be taken // if the rollback fails. RollbackFailAction FailAction }
BR contains the border router specific parts of the configuration.
func (*BR) ConfigName ¶
func (*BR) InitDefaults ¶
func (cfg *BR) InitDefaults()
type BRConf ¶
type BRConf struct { // Topo contains the names of all local infrastructure elements, a map // of interface IDs to routers, and the actual topology. Topo itopo.Topology // IA is the current ISD-AS. IA addr.IA // BR is the topology information of this router. BR *topology.BRInfo // MasterKeys holds the local AS master keys. MasterKeys keyconf.Master // Dir is the configuration directory. Dir string }
BRConf is the main config structure. It contains the dynamic configuration at runtime.
type Config ¶
type Config struct { General env.General Features env.Features Logging env.Logging Metrics env.Metrics Discovery Discovery BR BR }
Config is the border router configuration that is loaded from file.
func (*Config) ConfigName ¶
func (*Config) InitDefaults ¶
func (cfg *Config) InitDefaults()
type Discovery ¶
type Discovery struct { idiscovery.Config // AllowSemiMutable indicates whether changes to the semi-mutable // section in the static topology are allowed. AllowSemiMutable bool }
type FailAction ¶
type FailAction string
const ( // FailActionFatal indicates that the process exits on error. FailActionFatal FailAction = "Fatal" // FailActionContinue indicates that the process continues on error. FailActionContinue FailAction = "Continue" )
func (*FailAction) UnmarshalText ¶
func (f *FailAction) UnmarshalText(text []byte) error
func (*FailAction) Validate ¶
func (f *FailAction) Validate() error
Click to show internal directories.
Click to hide internal directories.