Documentation
¶
Overview ¶
Package identity names this build of SofCat. A rebranded build sets Slug, Name and Identifier with -ldflags "-X"; every runtime name that two side-by-side installs must not share (service, pipe or socket, data directory, config path, policy key, launchd label, UI log directory) derives from them here, so distinct slugs cannot collide. The defaults are the stock SofCat names.
Index ¶
- Variables
- func AppPath() string
- func BinDir() string
- func CLIPath() string
- func ConfigPath() string
- func ConfigPathFor(goos string) string
- func DataDir() string
- func DataDirFor(goos string) string
- func LaunchdLabel() string
- func LaunchdPlistPath() string
- func PipeName() string
- func PolicyKey() string
- func ProgramDataDir() string
- func ServiceName() string
- func SocketDir() string
- func SocketDirFor(goos string) string
- func SupportDir() string
Constants ¶
This section is empty.
Variables ¶
var ( // Slug is the lowercase machine name: service name, pipe prefix and // per-user directory. Slug = "sofcat" // Name is the display name: the ProgramData directory and the policy key. Name = "SofCat" // Identifier is the reverse-DNS name: the launchd label and the app's // bundle identifier on macOS. Identifier = "ca.hrndz.sofcat" )
Functions ¶
func ConfigPath ¶
func ConfigPath() string
ConfigPath is the default config.yaml path, beside DataDir on both: %ProgramData%\<Name>\config.yaml on Windows, in SupportDir on macOS.
func DataDir ¶
func DataDir() string
DataDir is the default app data directory: %ProgramData%\<Name>\Data on Windows, /Library/Application Support/<Name>/Data on macOS.
func LaunchdPlistPath ¶
func LaunchdPlistPath() string
LaunchdPlistPath is the macOS daemon's property list.
func PipeName ¶
func PipeName() string
PipeName is the default service pipe name; off Windows it names the socket.
func PolicyKey ¶
func PolicyKey() string
PolicyKey is the HKLM policy key MDM or GPO writes, without the hive.
func ProgramDataDir ¶
func ProgramDataDir() string
ProgramDataDir is the Windows twin of SupportDir, %ProgramData%\<Name>: the config, Data and sofcat's own placements live in it. The executables stay under Program Files, which sofcat never writes.
func SocketDir ¶
func SocketDir() string
SocketDir is the directory holding the service socket off Windows.
func SupportDir ¶
func SupportDir() string
SupportDir is the macOS install directory, /Library/Application Support/<Name>: the config, Data and bin live in it.
Types ¶
This section is empty.