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 PublishResolvedPaths(projectID, stateRoot, socketPath 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.
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 PublishResolvedPaths ¶ added in v0.57.0
PublishResolvedPaths publishes the resolved state root and optional explicit socket path to the project's environment variables so bus-hosted components (such as the resource listener) scope their default paths to the invocation's state root instead of the shared process default. socketPath may be empty when no explicit socket path was requested.
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.