Documentation
¶
Overview ¶
Package hostsstore provides the interface for /var/lib/nerdctl/<ADDRHASH>/etchosts Prioritizes simplicity over scalability. All methods perform atomic writes and are safe to use concurrently. Note that locking is done per namespace. hostsstore is currently by container rename, remove, network managers, and ocihooks Finally, NOTE: Since we will write to the hosts file after it is mounted in the container, we cannot use our atomic write method as the inode would change on rename. Henceforth, hosts file mutation uses filesystem methods instead, making it the one exception that has to bypass the Store implementation.
Index ¶
Constants ¶
View Source
const ( MarkerBegin = "<nerdctl>" MarkerEnd = "</nerdctl>" )
Variables ¶
View Source
var ErrHostsStore = errors.New("hosts-store error")
ErrHostsStore will wrap all errors here
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.