Files
steampipe/pkg/constants/env.go
Binaek Sarkar 299697ae2f Updates in cache configuration to allow disabling of all caching on server. Closes #3258
STEAMPIPE_CACHE environment variable resolves to service cache enabled as well as client cache enabled

service cache enabled is used by the plugin manager to enable/disable caching on the plugins during startup (runtime toggle is not allowed) - with a max_ttl

client cache enabled is used to enable/disable the cache on the database connection (fdw)
A TTL can also be set on the client side capped to max_ttl on the server
2023-03-31 15:12:25 +01:00

37 lines
1.4 KiB
Go

package constants
// Environment Variables
const (
EnvUpdateCheck = "STEAMPIPE_UPDATE_CHECK"
EnvInstallDir = "STEAMPIPE_INSTALL_DIR"
EnvInstallDatabase = "STEAMPIPE_INITDB_DATABASE_NAME"
EnvServicePassword = "STEAMPIPE_DATABASE_PASSWORD"
EnvMaxParallel = "STEAMPIPE_MAX_PARALLEL"
EnvDatabaseStartTimeout = "STEAMPIPE_DATABASE_START_TIMEOUT"
EnvSnapshotLocation = "STEAMPIPE_SNAPSHOT_LOCATION"
EnvWorkspaceDatabase = "STEAMPIPE_WORKSPACE_DATABASE"
EnvWorkspaceProfile = "STEAMPIPE_WORKSPACE"
EnvCloudHost = "STEAMPIPE_CLOUD_HOST"
EnvCloudToken = "STEAMPIPE_CLOUD_TOKEN"
EnvCheckDisplayWidth = "STEAMPIPE_CHECK_DISPLAY_WIDTH"
EnvCacheEnabled = "STEAMPIPE_CACHE"
EnvCacheTTL = "STEAMPIPE_CACHE_TTL"
EnvCacheMaxTTL = "STEAMPIPE_CACHE_MAX_TTL"
EnvCacheMaxSize = "STEAMPIPE_CACHE_MAX_SIZE_MB"
EnvQueryTimeout = "STEAMPIPE_QUERY_TIMEOUT"
EnvConnectionWatcher = "STEAMPIPE_CONNECTION_WATCHER"
EnvWorkspaceChDir = "STEAMPIPE_WORKSPACE_CHDIR"
EnvModLocation = "STEAMPIPE_MOD_LOCATION"
EnvTelemetry = "STEAMPIPE_TELEMETRY"
EnvIntrospection = "STEAMPIPE_INTROSPECTION"
EnvWorkspaceProfileLocation = "STEAMPIPE_WORKSPACE_PROFILES_LOCATION"
EnvDiagnostics = "STEAMPIPE_DIAGNOSTICS"
// EnvInputVarPrefix is the prefix for environment variables that represent values for input variables.
EnvInputVarPrefix = "SP_VAR_"
)