Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
AuthenticationType string `envconfig:"MIGRATION_PLANNER_AUTH" default:""`
JwkCertURL string `envconfig:"MIGRATION_PLANNER_JWK_URL" default:""`
LocalPrivateKey string `envconfig:"MIGRATION_PLANNER_PRIVATE_KEY" default:""`
AgentAuthenticationEnabled bool `envconfig:"MIGRATION_PLANNER_AGENT_AUTH_ENABLED" default:"true"`
}
type Config ¶
type Config struct {
Database *dbConfig
Service *svcConfig
Kafka *Kafka
Notification *Notification
}
type Kafka ¶ added in v0.14.0
type Kafka struct {
Enabled bool `envconfig:"KAFKA_ENABLED" default:"false"`
Brokers string `envconfig:"KAFKA_BROKERS" default:"127.0.0.1:9092"`
SASLUsername string `envconfig:"KAFKA_SASL_USERNAME" default:""`
SASLPassword string `envconfig:"KAFKA_SASL_PASSWORD" default:""`
UseTLS bool `envconfig:"KAFKA_USE_TLS" default:"false"`
}
type Notification ¶ added in v0.21.0
type Notification struct {
Enabled bool `envconfig:"NOTIFICATION_ENABLED" default:"false"`
URL string `envconfig:"NOTIFICATION_URL" default:""`
ClientCert string `envconfig:"NOTIFICATION_CLIENT_CERT" default:""`
ClientKey string `envconfig:"NOTIFICATION_CLIENT_KEY" default:""`
}
Notification configures the mTLS client used to deliver notifications to the console notifications service. ClientCert/ClientKey are PEM-encoded and are expected to be sourced from a Kubernetes secret; when either is unset, notifications fall back to being logged to stdout.
Click to show internal directories.
Click to hide internal directories.