Documentation ¶
Index ¶
- Constants
- func GetOptionalConfigBool(logger *zap.Logger, envKey string, defaultValue string, name string) (bool, error)
- func GetOptionalConfigInt(logger *zap.Logger, envKey string, defaultValue string, name string) (int, error)
- func GetOptionalConfigInt64(logger *zap.Logger, envKey string, defaultValue string, name string) (int64, error)
- func GetOptionalConfigValue(logger *zap.Logger, key string, defaultValue string) string
- func GetRequiredConfigBool(logger *zap.Logger, envKey string, name string) (bool, bool, error)
- func GetRequiredConfigInt(logger *zap.Logger, envKey string, name string) (int, error)
- func GetRequiredConfigInt16(logger *zap.Logger, envKey string, name string) (int16, error)
- func GetRequiredConfigInt32(logger *zap.Logger, envKey string, name string) (int32, error)
- func GetRequiredConfigInt64(logger *zap.Logger, envKey string, name string) (int64, error)
- func GetRequiredConfigValue(logger *zap.Logger, key string) (string, error)
- func GetRequiredQuantityConfigValue(logger *zap.Logger, envVarKey string) (*resource.Quantity, error)
Constants ¶
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 ¶
Get The Specified Optional Config Value From OS
func GetRequiredConfigBool ¶
Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not Boolean
func GetRequiredConfigInt ¶
Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int
func GetRequiredConfigInt16 ¶
Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int16
func GetRequiredConfigInt32 ¶
Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int32
func GetRequiredConfigInt64 ¶
Get The Specified Required Config Value From OS & Log Errors If Not Present Or Not An Int64
func GetRequiredConfigValue ¶
Get The Specified Required Config Value From OS & Log Errors If Not Present
Types ¶
This section is empty.