config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PortKey is the port where the auth service will listen to
	PortKey = "PORT"
	// InsecureKey is used to run the service without TLS termination
	InsecureKey = "INSECURE"
	// RequestTimeoutKey is used to set the timeout for incoming requests
	RequestTimeoutKey = "REQUEST_TIMEOUT"
	// RequestSizeKey is used to set the max size for ingoing/outgoing requests
	RequestSizeKey = "REQUEST_MAX_SIZE"
	// TLSKeyFileKey specifies the location of the TLS key file to use
	TLSKeyFileKey = "TLS_KEY_FILE"
	// TLSCertFileKey specifies the location of the TLS certificate file to use
	TLSCertFileKey = "TLS_CERT_FILE"
	// LogLevelKey represents the different logging levels.
	// For reference on the values https://godoc.org/github.com/sirupsen/logrus#Level
	LogLevelKey = "LOG_LEVEL"
	// SecretKey is used to set the secret for generating new auth tokens.
	SecretKey = "SECRET"
	// SupportedServicesKey is used to set the services for which granting authorization via generated tokens.
	SupportedServicesKey = "SUPPORTED_SERVICES"
	// MinIO stuff
	MinioEndpointKey           = "MINIO_ENDPOINT"
	MinioUserKey               = "MINIO_USER"
	MinioPasswordKey           = "MINIO_PASSWORD"
	MinioRegionKey             = "MINIO_REGION"
	MinioInsecureKey           = "MINIO_INSECURE"
	MinioIdentityBucketNameKey = "MINIO_IDENTITY_BUCKET"
)

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

func GetStringSlice added in v0.2.0

func GetStringSlice(key string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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