Documentation ¶
Overview ¶
Package hostsstore provides the interface for /var/lib/nerdctl/<ADDRHASH>/etchosts . Prioritize simplicity over scalability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocHostsFile ¶
AllocHostsFile is used for creating mount-bindable /etc/hosts file. The file is initialized with no content.
func DeallocHostsFile ¶
func ParseHosts ¶ added in v0.18.0
ParseHosts takes in hosts file content and returns a map of parsed results. Copy from https://github.com/jaytaylor/go-hostsfile/blob/59e7508e09b9e08c57183ae15eabf1b757328ebf/hosts.go#L18
Types ¶
Click to show internal directories.
Click to hide internal directories.