Discover Packages
github.com/depot/orca
hosts
package
Version:
v0.0.0-...-aa10f78
Opens a new window with list of versions in this module.
Published: May 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
DefaultPath is the default path to the hosts file.
WriteEtcHosts writes the Hosts to a file in outputDir and returns the path to the file.
The intent is that this is written to a containerd snapshot directory to be mounted into a container.
HostEntry associates IP addresses with host names.
Hosts is a parsed /etc/hosts file.
Default returns a Hosts with the default localhost entries.
Local parses and returns the local /etc/hosts file.
Parse parses a hosts file from r.
ParseFile parses the named hosts file path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.