appconfig

package
v0.0.0-...-64a628e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AWSRegion = "AWS_REGION"

AWSRegion is the key for the region we establish a session to for AWS services

View Source
const AWSS3FileUploadBucket = "AWS_S3_FILE_UPLOAD_BUCKET"

AWSS3FileUploadBucket is the key for the bucket we upload files to

View Source
const AWSSESSourceARNKey = "AWS_SES_SOURCE_ARN"

AWSSESSourceARNKey is the key for the ARN for sending email

View Source
const AWSSESSourceKey = "AWS_SES_SOURCE"

AWSSESSourceKey is the key for the sender for sending email

View Source
const AltJobCodes = "ALT_JOB_CODES"

AltJobCodes are alternate job codes

View Source
const CEDARAPIKey = "CEDAR_API_KEY" // #nosec

CEDARAPIKey is the key for accessing CEDAR

View Source
const CEDARAPIURL = "CEDAR_API_URL"

CEDARAPIURL is the key for the CEDAR base url

View Source
const CEDARCoreAPIVersion = "CEDAR_CORE_API_VERSION"

CEDARCoreAPIVersion is the version of the CEDAR core API to use

View Source
const CEDARCoreMock = "CEDAR_CORE_MOCK"

CEDARCoreMock is the key for the environment variable that determines if the CEDAR Core API should be mocked If set to true, mock data will be used If set to false, real calls to the CEDAR Core API will be made

View Source
const CEDARCoreSkipProxy = "CEDAR_CORE_SKIP_PROXY"

CEDARCoreSkipProxy is the key for whether to make calls directly to CEDAR Core

View Source
const CEDAREmailAddress = "CEDAR_EMAIL_ADDRESS"

CEDAREmailAddress is the key for the env var that holds the email address that we use when notifying CEDAR of changes

View Source
const CEDARIntakeEnabled = "CEDAR_INTAKE_ENABLED"

CEDARIntakeEnabled is the key for the environment variable that determines if the CEDAR Intake API should enabled If set to true, real calls to the CEDAR Intake API will be made If set to false, the Intake API Client methods will do nothing

View Source
const CEDARPROXYURL = "CEDAR_PROXY_URL"

CEDARPROXYURL is the key for the CEDAR proxy url

View Source
const ClientHostKey = "CLIENT_HOSTNAME"

ClientHostKey is the key for getting the client's domain name

View Source
const ClientProtocolKey = "CLIENT_PROTOCOL"

ClientProtocolKey is the key for getting the client's protocol

View Source
const DBHostConfigKey = "PGHOST"

DBHostConfigKey is the Postgres hostname config key

View Source
const DBMaxConnections = "DB_MAX_CONNECTIONS"

DBMaxConnections is the maximum number of connections to the database

View Source
const DBNameConfigKey = "PGDATABASE"

DBNameConfigKey is the Postgres database name config key

View Source
const DBPasswordConfigKey = "PGPASS"

DBPasswordConfigKey is the Postgres password config key

View Source
const DBPortConfigKey = "PGPORT"

DBPortConfigKey is the Postgres port config key

View Source
const DBSSLModeConfigKey = "PGSSLMODE"

DBSSLModeConfigKey is the Postgres SSL mode config key

View Source
const DBUsernameConfigKey = "PGUSER"

DBUsernameConfigKey is the Postgres username config key

View Source
const EASIHelpEmailKey = "EASI_HELP_EMAIL"

EASIHelpEmailKey is the key for the receiving email for EASI help requests

View Source
const EmailTemplateDirectoryKey = "EMAIL_TEMPLATE_DIR"

EmailTemplateDirectoryKey is the key for getting the email template directory

View Source
const EnvironmentKey = "APP_ENV"

EnvironmentKey is used to access the environment from a config

View Source
const FlagSourceKey = "FLAG_SOURCE"

FlagSourceKey indicates where flags should be loaded from

View Source
const FlagValuesFileKey = "FLAGDATA_FILE"

FlagValuesFileKey is the key for the environment variable with the file path to a LaunchDarkly flag values file

View Source
const GRTEmailKey = "GRT_EMAIL"

GRTEmailKey is the key for the receiving email for the GRT

View Source
const ITInvestmentEmailKey = "IT_INVESTMENT_EMAIL"

ITInvestmentEmailKey is the key for the receiving email for IT investment

View Source
const LDKey = "LD_SDK_KEY"

LDKey is the key for accessing LaunchDarkly

View Source
const LDTimeout = "LD_TIMEOUT_SECONDS"

LDTimeout is the key for accessing LaunchDarkly

View Source
const LocalAuthEnabled = "LOCAL_AUTH_ENABLED"

LocalAuthEnabled is whether local auth should be enabled

View Source
const LocalMinioAddressKey = "MINIO_ADDRESS"

LocalMinioAddressKey is the host used for local minio

View Source
const LocalMinioS3AccessKey = "MINIO_ACCESS_KEY"

LocalMinioS3AccessKey is a key used for local access to minio

View Source
const LocalMinioS3SecretKey = "MINIO_SECRET_KEY"

LocalMinioS3SecretKey is the secret key used for local access to minio

View Source
const OITFeedbackChannelSlackLink = "OIT_FEEDBACK_CHANNEL_SLACK_LINK"

OITFeedbackChannelSlackLink is the key for the OIT feedback slack channel

View Source
const OKTAAPIToken = "OKTA_API_TOKEN"

OKTAAPIToken is the key for the Okta API token #nosec G101 false positive - not the actual API key itself

View Source
const OKTAAPIURL = "OKTA_API_URL"

OKTAAPIURL is the key for the Okta API url

View Source
const OktaClientID = "OKTA_CLIENT_ID"

OktaClientID is the okta client id

View Source
const OktaIssuer = "OKTA_ISSUER"

OktaIssuer is the okta issuer

View Source
const OktaLocalEnabled = "USE_OKTA_LOCAL"

OktaLocalEnabled is the key for enabling OKTA on local dev

View Source
const SESRecipientAllowListRegexKey = "SES_RECIPIENT_ALLOWLIST_REGEX"

SESRecipientAllowListRegexKey is the key for getting the regex that Email recipients (SES specifically) must match

View Source
const TRBEmailKey = "TRB_EMAIL"

TRBEmailKey is the key for the receiving email to the TRB email

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment string

Environment represents an environment

func NewEnvironment

func NewEnvironment(config string) (Environment, error)

NewEnvironment returns an environment from a string

func (Environment) Deployed

func (e Environment) Deployed() bool

Deployed returns true if in a deployed environment (anything in AWS)

func (Environment) Dev

func (e Environment) Dev() bool

Dev returns true if the environment is dev (dev.easi.cms.gov)

func (Environment) Impl

func (e Environment) Impl() bool

Impl returns true if the environment is Impl (impl.easi.cms.gov)

func (Environment) Local

func (e Environment) Local() bool

Local returns true if the environment is local (local development)

func (Environment) Prod

func (e Environment) Prod() bool

Prod returns true if the environment is Production (easi.cms.gov)

func (Environment) String

func (e Environment) String() string

String gets the environment as a string

func (Environment) Test

func (e Environment) Test() bool

Test returns true if the environment is test (used for local or CI/CD testing)

type FlagSourceOption

type FlagSourceOption string

FlagSourceOption represents an environment

const (
	// FlagSourceLocal is LOCAL
	FlagSourceLocal FlagSourceOption = "LOCAL"

	// FlagSourceFile is FILE (for setting LaunchDarkly flag values in a file for use when testing)
	FlagSourceFile FlagSourceOption = "FILE"

	// FlagSourceLaunchDarkly is LAUNCH_DARKLY
	FlagSourceLaunchDarkly FlagSourceOption = "LAUNCH_DARKLY"
)

Jump to

Keyboard shortcuts

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