config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 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
}

func New

func New() (*Config, error)

type S3

type S3 struct {
	Endpoint    string `envconfig:"MIGRATION_PLANNER_S3_ENDPOINT" default:""`
	Bucket      string `envconfig:"MIGRATION_PLANNER_S3_BUCKET" default:""`
	AccessKey   string `envconfig:"MIGRATION_PLANNER_S3_ACCESS_KEY" default:""`
	SecretKey   string `envconfig:"MIGRATION_PLANNER_S3_SECRET_KEY" default:""`
	IsoFileName string `envconfig:"MIGRATION_PLANNER_S3_ISO_FILENAME" default:""`
	IsoSha256   string `envconfig:"MIGRATION_PLANNER_S3_ISO_SHA256" default:""`
}

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