etc

package
v0.1.0-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGateway

func DefaultGateway() (s string, err error)

DefaultGateway parses /proc/net/route for the IP address of the default gateway.

func Hosts

func Hosts(s, hostname, ip string) (err error)

Hosts renders a valid /etc/hosts file and writes it to disk.

func OSRelease

func OSRelease(s string) (err error)

OSRelease renders a valid /etc/os-release file and writes it to disk. The node's OS Image field is reported by the node from /etc/os-release.

func ResolvConf

func ResolvConf(s string) (err error)

ResolvConf symlinks /proc/net/pnp to /etc/resolv.conf. See https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL