env

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Eventing-Kafka Configuration
	ServiceAccountEnvVarKey      = "SERVICE_ACCOUNT"
	MetricsPortEnvVarKey         = "METRICS_PORT"
	MetricsDomainEnvVarKey       = "METRICS_DOMAIN"
	HealthPortEnvVarKey          = "HEALTH_PORT"
	PodNameEnvVarKey             = "POD_NAME"
	ContainerNameEnvVarKey       = "CONTAINER_NAME"
	ResyncPeriodMinutesEnvVarKey = "RESYNC_PERIOD_MINUTES"

	// Kafka Authorization
	KafkaSecretNamespaceEnvVarKey = "KAFKA_SECRET_NAMESPACE"
	KafkaSecretNameEnvVarKey      = "KAFKA_SECRET_NAME"

	// Kafka Configuration
	KafkaTopicEnvVarKey = "KAFKA_TOPIC"

	// Dispatcher Configuration
	ChannelKeyEnvVarKey  = "CHANNEL_KEY"
	ServiceNameEnvVarKey = "SERVICE_NAME"
)

Package Constants

Variables

This section is empty.

Functions

func GetOptionalConfigBool

func GetOptionalConfigBool(logger *zap.Logger, envKey string, defaultValue string, name string) (bool, error)

Get The Specified Optional Config Value From OS & Log Errors If Not Present Or Not Boolean

func GetOptionalConfigInt added in v0.20.0

func GetOptionalConfigInt(logger *zap.Logger, envKey string, defaultValue string, name string) (int, error)

Get The Specified Optional Config Value From OS & Log Errors If Not Present Or Not An Int

func GetOptionalConfigInt64

func GetOptionalConfigInt64(logger *zap.Logger, envKey string, defaultValue string, name string) (int64, error)

Get The Specified Optional Config Value From OS & Log Errors If Not Present Or Not An Int64

func GetOptionalConfigValue

func GetOptionalConfigValue(logger *zap.Logger, key string, defaultValue string) string

Get The Specified Optional Config Value From OS

func GetRequiredConfigBool

func GetRequiredConfigBool(logger *zap.Logger, envKey string, name string) (bool, bool, error)

Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not Boolean

func GetRequiredConfigInt

func GetRequiredConfigInt(logger *zap.Logger, envKey string, name string) (int, error)

Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int

func GetRequiredConfigInt16

func GetRequiredConfigInt16(logger *zap.Logger, envKey string, name string) (int16, error)

Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int16

func GetRequiredConfigInt32

func GetRequiredConfigInt32(logger *zap.Logger, envKey string, name string) (int32, error)

Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int32

func GetRequiredConfigInt64

func GetRequiredConfigInt64(logger *zap.Logger, envKey string, name string) (int64, error)

Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int64

func GetRequiredConfigValue

func GetRequiredConfigValue(logger *zap.Logger, key string) (string, error)

Get The Specified Required Config Value From OS & Log Errors If Not Present

func GetRequiredQuantityConfigValue

func GetRequiredQuantityConfigValue(logger *zap.Logger, envVarKey string) (*resource.Quantity, error)

Parse Quantity Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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