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 { // RollbackFailAction indicates the action that should be taken // if the rollback fails. RollbackFailAction FailAction `toml:"rollback_fail_action,omitempty"` }
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 topology.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 `toml:"general,omitempty"` Features env.Features `toml:"features,omitempty"` Logging log.Config `toml:"log,omitempty"` Metrics env.Metrics `toml:"metrics,omitempty"` BR BR `toml:"br,omitempty"` }
Config is the border router configuration that is loaded from file.
func (*Config) ConfigName ¶
func (*Config) InitDefaults ¶
func (cfg *Config) InitDefaults()
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.