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: 0

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