Documentation ¶
Index ¶
- func BuildSession(cfg Config) (*session.Session, error)
- func GetEnv(name string) string
- func GetSecret(client *secretsmanager.SecretsManager, secret string) (string, error)
- func GetSecretEnv(client *secretsmanager.SecretsManager, secret, env string) (string, error)
- type AWS
- type AuthCredential
- type Authorization
- type Config
- type DynamoDB
- type Local
- type Queues
- type RDS
- type Secret
- type ServiceCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecret ¶ added in v0.8.0
func GetSecret(client *secretsmanager.SecretsManager, secret string) (string, error)
func GetSecretEnv ¶ added in v0.10.0
func GetSecretEnv(client *secretsmanager.SecretsManager, secret, env string) (string, error)
Types ¶
type AWS ¶ added in v0.8.0
type AWS struct { Region string `env:"AWS_REGION" envDefault:"eu-west-2"` SecretsClient *secretsmanager.SecretsManager }
type AuthCredential ¶ added in v0.8.0
type Authorization ¶ added in v0.8.0
type Config ¶
type Config struct { Local RDS DynamoDB Queues Authorization AWS AuthCredentials []ServiceCredential DateFormat string }
func BuildConfig ¶
type DynamoDB ¶ added in v0.8.0
type DynamoDB struct { BugsTable string `env:"DB_BUGS_TABLE" envDefault:"bugs"` AccountsTable string `env:"DB_ACCOUNTS_TABLE" envDefault:"accounts"` AgentsTable string `env:"DB_AGENTS_TABLE" envDefault:"agents"` TicketingTable string `env:"DB_TICKETING_TABLE" envDefault:"ticketing"` TicketsTable string `env:"DB_TICKETS_TABLE" envDefault:"tickets"` CommsTable string `env:"DB_COMMS_TABLE" envDefault:"comms"` LogsTable string `env:"DB_LOGS_TABLE" envDefault:"logs"` }
type ServiceCredential ¶ added in v0.8.0
type ServiceCredential struct { Service string AuthCredential }
Click to show internal directories.
Click to hide internal directories.