Documentation
¶
Index ¶
- Constants
- func ConfTmpl(tmplText string, cfg *ctrld.Config) (string, error)
- func ConfTmplWitchCacheDisabled(tmplText string, cfg *ctrld.Config, cacheDisabled bool) (string, error)
- func DisableCache(conf string) error
- func EnableCache(conf string) error
- func FirewallaConfTmpl(tmplText string, cfg *ctrld.Config) (string, error)
- func FirewallaDisableCache() error
- func FirewallaEnableCache() error
- func FirewallaSelfInterfaces() []*net.Interface
- func InterfaceNameFromConfig(filename string) (string, error)
- type Upstream
Constants ¶
View Source
const ConfigContentTmpl = `` /* 217-byte string literal not displayed */
View Source
const MerlinPostConfMarker = `# GENERATED BY ctrld - EOF`
View Source
const MerlinPostConfPath = "/jffs/scripts/dnsmasq.postconf"
View Source
const MerlinPostConfTmpl = `` /* 1267-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ConfTmplWitchCacheDisabled ¶ added in v1.3.2
func DisableCache ¶ added in v1.3.2
DisableCache comments out "cache-size" line in dnsmasq config file.
func EnableCache ¶ added in v1.3.2
EnableCache un-comments "cache-size" line in dnsmasq config file.
func FirewallaDisableCache ¶ added in v1.3.2
func FirewallaDisableCache() error
FirewallaDisableCache comments out "cache-size" line in all firewalla dnsmasq config files.
func FirewallaEnableCache ¶ added in v1.3.2
func FirewallaEnableCache() error
FirewallaEnableCache un-comments out "cache-size" line in all firewalla dnsmasq config files.
func FirewallaSelfInterfaces ¶
FirewallaSelfInterfaces returns list of interfaces that will be configured with default dnsmasq setup on Firewalla.
func InterfaceNameFromConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.