config

package
v1.119.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port           int    `envconfig:"PORT" default:"3002" desc:"Port where API will be served"`
	MetricsPort    int    `envconfig:"METRICS_PORT" default:"9090"  desc:"Port where Metrics will be served"`
	ProfilePort    int    `envconfig:"PROFILE_PORT" default:"7070"  desc:"Port where Profiler will be served"`
	UseProfiler    bool   `envconfig:"USE_PROFILER" default:"false" desc:"Enable Profiler"`
	LogLevel       string `envconfig:"LOG_LEVEL" default:"info"`
	LogPrettyPrint bool   `envconfig:"LOG_PRETTY" default:"false"`

	DNSZone            string   `envconfig:"RADIX_DNS_ZONE" required:"true" desc:"should be <env>.radix.equinor.com"`
	ClusterName        string   `envconfig:"RADIX_CLUSTERNAME" required:"true" desc:"Name of the cluster, e.g. weekly-40"`
	ClusterEgressIps   []string `` /* 137-byte string literal not displayed */
	ClusterOidcIssuers []string `` /* 211-byte string literal not displayed */

	AzureOidc      Oidc   `envconfig:"OIDC_AZURE" required:"true"`
	KubernetesOidc Oidc   `envconfig:"OIDC_KUBERNETES" required:"true"`
	PrometheusUrl  string `envconfig:"PROMETHEUS_URL" required:"true"`
	PodNamespace   string `envconfig:"POD_NAMESPACE" required:"true" desc:"Kubernetes namespace where radix api-server is deployed"`
}

func MustParse

func MustParse() Config

type Oidc

type Oidc struct {
	Issuer   url.URL `envconfig:"ISSUER" required:"true"`
	Audience string  `envconfig:"Audience" required:"true"`
}

Jump to

Keyboard shortcuts

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