Documentation
¶
Overview ¶
Package mirrorpath is where muster-mirror keeps its local files by default, as ONE rule that muster-mirror and `muster doctor` both call — so the doctor looks for the MCP endpoint's secret exactly where muster-mirror writes it, on Linux (XDG_CONFIG_HOME, else ~/.config) and on macOS (~/Library/Application Support) alike. It imports only the standard library.
Index ¶
Constants ¶
const AttemptCodeFileName = "attempt-code"
AttemptCodeFileName is the running muster-mirror's attempt code (team sharing 2b.2: a held team host is confirmed by it), in muster-mirror's config directory, where `muster doctor` reads it to show it.
const MCPSecretFileName = "mcp-secret"
MCPSecretFileName is the local MCP endpoint's secret, in muster-mirror's config directory.
const TokenFileName = "token"
TokenFileName is the host's mirror token, in muster-mirror's config directory: where `muster host join` writes it unless told otherwise (install.sh writes $HOME/.config/muster-mirror/token and passes it).
const UsagePingFileName = "usage-ping.json"
UsagePingFileName is muster-mirror's usage ping state — its random install id and last attempt (internal/usageping; docs/usage-ping.md) — in its config directory.
Variables ¶
This section is empty.
Functions ¶
func DefaultAttemptCodeFile ¶ added in v0.227.0
func DefaultAttemptCodeFile() string
DefaultAttemptCodeFile is where muster-mirror leaves its attempt code when -attempt-code-file / MUSTER_MIRROR_ATTEMPT_CODE_FILE does not say: under os.UserConfigDir(). "" when there is no user config directory.
func DefaultMCPSecretFile ¶
func DefaultMCPSecretFile() string
DefaultMCPSecretFile is where muster-mirror keeps the secret when -mcp-secret-file / MUSTER_MIRROR_MCP_SECRET_FILE does not say: under os.UserConfigDir(). "" when there is no user config directory.
func DefaultTokenFile ¶ added in v0.321.0
func DefaultTokenFile() string
DefaultTokenFile is where `muster host join` writes the token when -token-file / MUSTER_MIRROR_TOKEN_FILE does not say: under os.UserConfigDir(). "" when there is no user config directory.
func DefaultUsagePingFile ¶ added in v0.308.0
func DefaultUsagePingFile() string
DefaultUsagePingFile is where muster-mirror keeps it: under os.UserConfigDir(). "" when there is no user config directory.
func MCPSecretFileIn ¶
MCPSecretFileIn is the secret's path under a user config directory.
Types ¶
This section is empty.