identity

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

View Source
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 AppPath

func AppPath() string

AppPath is the installed macOS app bundle.

func BinDir

func BinDir() string

BinDir holds the macOS CLI.

func CLIPath

func CLIPath() string

CLIPath is the installed macOS CLI.

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 ConfigPathFor

func ConfigPathFor(goos string) string

ConfigPathFor is ConfigPath on goos.

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 DataDirFor

func DataDirFor(goos string) string

DataDirFor is DataDir on goos.

func LaunchdLabel

func LaunchdLabel() string

LaunchdLabel is the macOS daemon's launchd label.

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 ServiceName

func ServiceName() string

ServiceName is the default Windows service name.

func SocketDir

func SocketDir() string

SocketDir is the directory holding the service socket off Windows.

func SocketDirFor

func SocketDirFor(goos string) string

SocketDirFor is SocketDir on goos.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL