Documentation ¶
Index ¶
- func InCluster() bool
- type Config
- func (cfg *Config) ExtraRules() rules.RuleSet
- func (cfg *Config) FlatNetworks() []fw.StaticRoute
- func (cfg *Config) LAN() fw.Link
- func (cfg *Config) LANAddr() (a fw.Addr, ok bool)
- func (cfg *Config) LANHWAddr() net.HardwareAddr
- func (cfg *Config) Uplink() fw.Link
- func (cfg *Config) UplinkHWAddr() net.HardwareAddr
- func (cfg *Config) UplinkLeaseStore() dhcp.LeaseStore
- type Coordinator
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ExtraRules ¶
func (*Config) FlatNetworks ¶
func (cfg *Config) FlatNetworks() []fw.StaticRoute
func (*Config) LANHWAddr ¶ added in v0.2.0
func (cfg *Config) LANHWAddr() net.HardwareAddr
func (*Config) UplinkHWAddr ¶ added in v0.2.0
func (cfg *Config) UplinkHWAddr() net.HardwareAddr
func (*Config) UplinkLeaseStore ¶ added in v0.2.12
func (cfg *Config) UplinkLeaseStore() dhcp.LeaseStore
type Coordinator ¶ added in v0.2.0
type Params ¶
type Params struct { LANNetwork string `json:"lanNetwork"` LANMACAddress string `json:"lanMACAddress"` FlatNetworks []string `json:"flatNetworks"` UplinkNetwork string `json:"uplinkNetwork"` UplinkInterface string `json:"uplinkInterface"` UplinkMACAddress string `json:"uplinkMACAddress"` UplinkIPAddress string `json:"uplinkIPAddress"` UplinkLeaseConfigMap string `json:"uplinkLeaseConfigMap"` }
func ParamsFromFile ¶
Reads params from the file `/etc/config/egress.json`.
Click to show internal directories.
Click to hide internal directories.