Documentation
¶
Index ¶
Constants ¶
View Source
const ( PlistFilePath = "Library/LaunchAgents" PlistSudoFilePath = "/Library/LaunchDaemons" PlistName = "oda.plist" UserServicedFilePath = ".config/systemd/user" RootServicedFilePath = "/etc/systemd/system" ServicedName = "oda.service" LinuxDaemonTemplateLocation = "services/oda.service" MacOSDaemonTemplateLocation = "services/oda.plist" ServicePermission = 0644 DirPermission = 0755 BaseCollectCommand = "collect" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ExePath string HomeDir string Os config.OSType IsRoot bool SudoExecUser *user.User AutoCredential bool IsWorkspace bool ShellTypeToLocation map[config.ShellType]string BaseCommandPath string }
Config is the configuration for the daemon service
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is the service that configures background service
func (*Daemon) DestroyDaemonConfiguration ¶
DestroyDaemonConfiguration removes the daemon service configuration
func (*Daemon) InstallDaemonConfiguration ¶
InstallDaemonConfiguration installs the daemon service configuration
func (*Daemon) ReloadDaemon ¶
ReloadDaemon signals the daemon to reload its configuration.
func (*Daemon) StartDaemon ¶
StartDaemon starts the daemon service
Click to show internal directories.
Click to hide internal directories.