files

package
Version: v3.1.1-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Group

func Group(path string, uid int, gids []int) (content []byte, err error)

Group creates a group template based on content of file provided in path, updates content with current user information and returns content

func Hostname

func Hostname(hostname string) (content []byte, err error)

Hostname creates a hostname content with provided hostname and returns it

func Passwd

func Passwd(path string, home string, uid int) (content []byte, err error)

Passwd creates a passwd template based on content of file provided in path, updates content with current user information and returns content

func ResolvConf

func ResolvConf(dns []string) (content []byte, err error)

ResolvConf creates a resolv.conf content with provided dns list and returns it

Types

This section is empty.

Jump to

Keyboard shortcuts

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