Versions in this module Expand all Collapse all v0 v0.6.0 May 19, 2016 v0.5.0 May 4, 2016 v0.4.0 Apr 5, 2016 Changes in this version + const DefaultDirectoryPermissions + const DefaultFilePermissions + const DefaultPresetPermissions + var ErrSchemeUnsupported = errors.New("unsupported source scheme") + var ErrStatusBad = errors.New("bad HTTP response status") + func NetworkdUnitsPath() string + func SystemdDropinsPath(unitName string) string + func SystemdUnitsPath() string + type File struct + Contents []byte + Gid int + Mode os.FileMode + Path types.Path + Uid int + func FileFromNetworkdUnit(unit types.NetworkdUnit) *File + func FileFromSystemdUnit(unit types.SystemdUnit) *File + func FileFromUnitDropin(unit types.SystemdUnit, dropin types.SystemdUnitDropIn) *File + func RenderFile(l *log.Logger, f types.File) *File + type Util struct + DestDir string + func (u Util) AuthorizeSSHKeys(c types.User) error + func (u Util) CreateGroup(g types.Group) error + func (u Util) CreateUser(c types.User) error + func (u Util) EnableUnit(unit types.SystemdUnit) error + func (u Util) JoinPath(path ...string) string + func (u Util) MaskUnit(unit types.SystemdUnit) error + func (u Util) SetPasswordHash(c types.User) error + func (u Util) WriteFile(f *File) error