config

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvKey

type EnvKey string
const (
	LocalPort                                         EnvKey = "PENELOPE_PORT"
	PprofActiveEnv                                    EnvKey = "PPROF_ACTIVE"
	DefaultBucketStorageClass                         EnvKey = "DEFAULT_BUCKET_STORAGE_CLASS"
	EnableTracingEnv                                  EnvKey = "PENELOPE_TRACING"
	TracingMetricsPrefixEnv                           EnvKey = "PENELOPE_TRACING_METRICS_PREFIX"
	UseDefaultHttpClient                              EnvKey = "PENELOPE_USE_DEFAULT_HTTP_CLIENT"
	UseGrpcWithoutAuthentication                      EnvKey = "PENELOPE_USE_GRPC_WITHOUT_AUTHENTICATION"
	GCPProjectId                                      EnvKey = "GCP_PROJECT_ID"
	AppJwtAudienceEnv                                 EnvKey = "APP_JWT_AUDIENCE"
	PgSocket                                          EnvKey = "POSTGRES_SOCKET"
	PgHostEnv                                         EnvKey = "POSTGRES_HOST"
	PgPortEnv                                         EnvKey = "POSTGRES_PORT"
	PgUserEnv                                         EnvKey = "POSTGRES_USER"
	PgDbEnv                                           EnvKey = "POSTGRES_DB"
	PgPasswordEnv                                     EnvKey = "POSTGRES_PASSWORD"
	PgDebugQueriesEnv                                 EnvKey = "POSTGRES_DEBUG_QUERIES"
	SetTestUser                                       EnvKey = "SET_TEST_USER"
	IsProviderLocal                                   EnvKey = "IS_PROVIDER_LOCAL"
	DefaultProviderBucketEnv                          EnvKey = "DEFAULT_PROVIDER_BUCKET"
	DefaultProvidersCacheTTLEnv                       EnvKey = "DEFAULT_PROVIDER_CACHE_TTL" // in minutes
	DefaultProviderGCPSourceProjectPathEnv            EnvKey = "DEFAULT_GCP_SOURCE_PROJECT_PROVIDER_FILE_PATH"
	DefaultProviderSinkForProjectPathEnv              EnvKey = "DEFAULT_BACKUP_SINK_PROVIDER_FOR_PROJECT_FILE_PATH"
	DefaultProviderPrincipalForUserPathEnv            EnvKey = "DEFAULT_USER_PRINCIPAL_PROVIDER_FILE_PATH"
	DefaultProviderImpersonateGoogleServiceAccountEnv EnvKey = "DEFAULT_PROVIDER_IMPERSONATE_GOOGLE_SERVICE_ACCOUNT"
	DevMode                                           EnvKey = "DEV_MODE"
	TokenHeaderKey                                    EnvKey = "TOKEN_HEADER_KEY"
	CompanyDomains                                    EnvKey = "COMPANY_DOMAINS"
	CorsAllowedMethods                                EnvKey = "CORS_ALLOWED_METHODS"
	CorsAllowedOrigin                                 EnvKey = "CORS_ALLOWED_ORIGIN"
	CorsAllowedHeaders                                EnvKey = "CORS_ALLOWED_HEADERS"
	TasksValidationHTTPHeaderName                     EnvKey = "TASKS_VALIDATION_HTTP_HEADER_NAME"
	TasksValidationHTTPHeaderValue                    EnvKey = "TASKS_VALIDATION_HTTP_HEADER_VALUE"
	TasksValidationAllowedIPAddresses                 EnvKey = "TASKS_VALIDATION_ALLOWED_IP_ADDRESSES"
	UniformBucketLevelAccess                          EnvKey = "UNIFORM_BUCKET_LEVEL_ACCESS"
)

func (EnvKey) Exist

func (e EnvKey) Exist() bool

func (EnvKey) GetBoolOrDefault

func (e EnvKey) GetBoolOrDefault(defaultValue bool) bool

func (EnvKey) GetOrDefault

func (e EnvKey) GetOrDefault(defaultValue string) string

func (EnvKey) MustGet

func (e EnvKey) MustGet() string

func (EnvKey) String

func (e EnvKey) String() string

Jump to

Keyboard shortcuts

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