config

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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
	IAM          *IAM
}

func New

func New() (*Config, error)

type IAM added in v0.23.0

type IAM struct {
	Enabled            bool   `envconfig:"IAM_ENABLED"`
	URL                string `envconfig:"IAM_URL" default:""`
	ClientCert         string `envconfig:"IAM_CLIENT_CERT" default:""`
	ClientKey          string `envconfig:"IAM_CLIENT_KEY" default:""`
	InsecureSkipVerify bool   `envconfig:"IAM_INSECURE_SKIP_VERIFY" default:"false"`
}

IAM configures the mTLS client used to resolve a user's details from the Red Hat User Service. ClientCert/ClientKey are PEM-encoded and are expected to be sourced from a Kubernetes secret

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:""`
	InsecureSkipVerify bool   `envconfig:"NOTIFICATION_INSECURE_SKIP_VERIFY" default:"false"`
}

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.

type Sizer added in v0.4.0

type Sizer struct {
	ServiceURL string `envconfig:"SIZER_SERVICE_URL" default:"http://migration-planner-sizer:9200"`
	Timeout    string `envconfig:"SIZER_SERVICE_TIMEOUT" default:"60s"`
}

Jump to

Keyboard shortcuts

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