Versions in this module Expand all Collapse all v0 v0.11.2 Oct 7, 2016 v0.11.1 Sep 20, 2016 v0.11.0 Sep 7, 2016 v0.10.1 Aug 27, 2016 Changes in this version + func AssertValid(verify types.Verification, data []byte) error + func CreateDeviceAlias(path string) (string, error) + func DeviceAlias(path string) string + func GetHasher(verify types.Verification) (hash.Hash, error) + type ErrHashMismatch struct + Calculated string + Expected string + func (e ErrHashMismatch) Error() string v0.10.0 Aug 23, 2016 v0.9.2 Aug 15, 2016 v0.9.1 Aug 11, 2016 v0.9.0 Aug 11, 2016 v0.8.0 Jul 26, 2016 v0.7.1 Jul 13, 2016 Changes in this version type File + func (f File) Verify() error v0.7.0 Jun 15, 2016 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