env

package
v0.0.0-...-2e9186d Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type EnvConfig

type EnvConfig struct {
	Port struct {
		Service int `envconfig:"default=8000"`
		Health  int `envconfig:"default=9000"`
	}
	GraphqlURL string `envconfig:"default=http://127.0.0.1:3000/graphql"`
	OIDC       struct {
		Kubeconfig struct {
			IssuerURL string
			ClientID  string
		}
		IssuerURL string
		ClientID  string
		CA        string `envconfig:"optional"`
		Claim     struct {
			Username string `envconfig:"default=email"`
			Groups   string `envconfig:"default=groups"`
		}
		Prefix struct {
			Username string `envconfig:"optional"`
			Groups   string `envconfig:"optional"`
		}
		SupportedSigningAlgs []string `envconfig:"default=RS256"`
	}
	LogLevel string `envconfig:"default=info"`
}
var (
	Config EnvConfig
)

Jump to

Keyboard shortcuts

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