Documentation
¶
Index ¶
- func DetermineConfigDir(projectID string) (string, error)
- func DetermineStorageRoot(projectID string) (string, error)
- func LogLevelEnvVar(projectID string) string
- func LogRetentionDaysEnvVar(projectID string) string
- func ResolveStatePath(projectID, statePath, socketPath string, explicit bool) (string, error)
- func SocketPathEnvVar(projectID string) string
- func StatePathEnvVar(projectID string) string
- func StorageRootEnvVar(projectID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineConfigDir ¶
DetermineConfigDir determines the root config and storage dir.
func DetermineStorageRoot ¶
DetermineStorageRoot determines the root dir to store data.
The resolved state path takes precedence over the data directory so every component of one invocation (stores, logs, and helpers) shares the root the CLI selected. Without either override the platform config dir is used.
func LogLevelEnvVar ¶ added in v0.51.2
LogLevelEnvVar returns the environment variable that overrides the log level for the given project (e.g. "spacewave" -> "SPACEWAVE_LOG_LEVEL").
func LogRetentionDaysEnvVar ¶ added in v0.51.2
LogRetentionDaysEnvVar returns the environment variable that overrides the on-disk log retention duration (in days) for the given project.
func ResolveStatePath ¶
ResolveStatePath makes statePath absolute and creates it. When explicit is set, it publishes the root with the optional explicit socket path to the project's environment variables. Logs, bus-hosted components, and child processes then scope their default paths to the chosen state root instead of the shared process default. A default state path is not published, so the environment still tells subcommands whether the user chose one; the unpublished default is the root DetermineStorageRoot resolves anyway. socketPath may be empty when no explicit socket path was requested. Returns the absolute state root.
func SocketPathEnvVar ¶ added in v0.57.0
SocketPathEnvVar returns the environment variable that overrides the daemon socket path (e.g. "spacewave" -> "SPACEWAVE_SOCKET_PATH").
func StatePathEnvVar ¶ added in v0.57.0
StatePathEnvVar returns the environment variable that carries the resolved project state path (e.g. "spacewave" -> "SPACEWAVE_STATE_PATH").
func StorageRootEnvVar ¶
StorageRootEnvVar returns the environment variable for the storage root.
Types ¶
This section is empty.