Documentation ¶
Index ¶
- Variables
- func DefaultHosts() []byte
- func Group(path string, uid int, gids []int, customLookup UserGroupLookup) (content []byte, err error)
- func Hostname(hostname string) (content []byte, err error)
- func Passwd(path string, home string, uid int, customLookup UserGroupLookup) (content []byte, err error)
- func ResolvConf(dns []string) (content []byte, err error)
- type UserGroupLookup
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionScript string
ActionScript is the action script content.
View Source
var RuntimeVars string
RuntimeVars is the runtime variables script.
Functions ¶
func Group ¶
func Group(path string, uid int, gids []int, customLookup UserGroupLookup) (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 Passwd ¶
func Passwd(path string, home string, uid int, customLookup UserGroupLookup) (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 ¶
ResolvConf creates a resolv.conf content with provided dns list and returns it
Types ¶
Click to show internal directories.
Click to hide internal directories.