Documentation
¶
Index ¶
Constants ¶
View Source
const END_DELIMITER = "### Detours End ###"
View Source
const START_DELIMITER = "### Detours Start ###"
Variables ¶
This section is empty.
Functions ¶
func UpsertHostBock ¶
func UpsertHostBock(mapping HostMapping, sink *os.File) error
TODO: Switch to a generic interface over os.File TODO: Mac vs Windows line endings
Types ¶
type HostMapping ¶
func ExtractHostBlock ¶
func ExtractHostBlock(src io.Reader) (HostMapping, error)
func (HostMapping) Add ¶
func (m HostMapping) Add(ip IPAddress, host Hostname)
func (HostMapping) AddMany ¶
func (m HostMapping) AddMany(ip IPAddress, hosts string)
func (HostMapping) Remove ¶
func (m HostMapping) Remove(host Hostname)
Click to show internal directories.
Click to hide internal directories.