Documentation ¶ Index ¶ func Populate(dirPath string, hostnameMap map[string]net.IP) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Populate ¶ func Populate(dirPath string, hostnameMap map[string]net.IP) error Populate populates the state dir. When the dir path is empty, it is interpreted as "~/.norouter/agent". The dir path is expanded using ../filepathutil.Expand . The following files are created in the directory: "hosts", "hostaliases", "README.md" Types ¶ This section is empty. Source Files ¶ View all Source files statedir.go Click to show internal directories. Click to hide internal directories.