config

package
v0.0.0-...-1a421e1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address               string `arg:"--address,env:ADDRESS" help:"the address to use for the http listener"`
	InternalPort          int    `arg:"--internal-port,env:INTERNAL_PORT" help:"the internal port to use for the http listener"`
	ExternalPort          int    `arg:"--external-port,env:EXTERNAL_PORT" help:"the external port to use for the http listener"`
	TokenAudience         string `arg:"--token-audience,env:TOKEN_AUDIENCE" help:"the audience the token is required to contain"`
	Environment           string `arg:"--environment,env:ENVIRONMENT" default:"local" help:"the environment the application is running in currently"`
	ExternalIssuer        string `arg:"--external-issuer,env:EXTERNAL_ISSUER" help:"the external issuer uri"`
	AzureDefaultTenantID  string `arg:"--azure-default-tenant-id,env:AZURE_DEFAULT_TENANT_ID,required" help:"the default azure tenant id to issue tokens for"`
	Namespace             string `arg:"--namespace,env:NAMESPACE,required" help:"the namespace the service is running in"`
	CertificateSecretName string `` /* 158-byte string literal not displayed */
}

func Load

func Load(args []string) (Config, error)

Jump to

Keyboard shortcuts

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