package
0.0.6
Repository: https://github.com/luyomo/ohmytiup.git
Documentation: pkg.go.dev

# Functions

NewShellModule builds and returns a ShellModule object base on given config.
NewSystemdModule builds and returns a SystemdModule object base on given config.
NewUserModule builds and returns a UserModule object base on given config.
NewWaitFor create a WaitFor instance.

# Constants

scope can be either "system", "user" or "global".
scope can be either "system", "user" or "global".
scope can be either "system", "user" or "global".
UserActionAdd add user.
UserActionDel delete user.

# Variables

ErrUserAddFailed is ErrUserAddFailed.
ErrUserDeleteFailed is ErrUserDeleteFailed.

# Structs

ShellModule is the module used to control systemd units.
ShellModuleConfig is the configurations used to initialize a TiUPModuleSystemd.
SystemdModule is the module used to control systemd units.
SystemdModuleConfig is the configurations used to initialize a SystemdModule.
UserModule is the module used to control systemd units.
UserModuleConfig is the configurations used to initialize a UserModule.
WaitFor is the module used to wait for some condition.
WaitForConfig is the configurations of WaitFor module.