Documentation
¶
Index ¶
- Constants
- type BaseConfigurer
- func (t *BaseConfigurer) AppendFile(path string, data []byte, perm fs.FileMode) error
- func (t *BaseConfigurer) ApplySudo(username string, values []string) error
- func (t *BaseConfigurer) FileExists(path string) (bool, error)
- func (t *BaseConfigurer) RunCommand(args ...string) error
- func (t *BaseConfigurer) RunScript(script string) error
- func (t *BaseConfigurer) UserHomeDir(username string) (string, error)
- func (t *BaseConfigurer) WriteFile(path string, data []byte, perm fs.FileMode) error
Constants ¶
View Source
const ( SudoersDir = "/etc/sudoers.d" DoasDir = "/etc/doas.d" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfigurer ¶
type BaseConfigurer struct {
}
func (*BaseConfigurer) AppendFile ¶
func (*BaseConfigurer) ApplySudo ¶
func (t *BaseConfigurer) ApplySudo(username string, values []string) error
func (*BaseConfigurer) FileExists ¶
func (t *BaseConfigurer) FileExists(path string) (bool, error)
func (*BaseConfigurer) RunCommand ¶
func (t *BaseConfigurer) RunCommand(args ...string) error
func (*BaseConfigurer) RunScript ¶
func (t *BaseConfigurer) RunScript(script string) error
func (*BaseConfigurer) UserHomeDir ¶
func (t *BaseConfigurer) UserHomeDir(username string) (string, error)
UserHomeDir default implementation returns /home/{username} or /root for the root user
Click to show internal directories.
Click to hide internal directories.