env

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {

	// Eventing Configuration
	SystemNamespace string // Required

	// Metrics Configuration
	MetricsPort   int    // Required
	MetricsDomain string // Required

	// Pod information to be used by the metrics reporter
	PodName       string // Required
	ContainerName string // Required

	// Health Configuration
	HealthPort int // Required

	// Kafka Configuration
	KafkaTopic   string        // Required
	ChannelKey   string        // Required
	ServiceName  string        // Required
	ResyncPeriod time.Duration // Optional

	// Kafka Authorization
	KafkaSecretName      string // Required
	KafkaSecretNamespace string // Required
}

Environment Structure

func GetEnvironment

func GetEnvironment(logger *zap.Logger) (*Environment, error)

Get The Environment

Jump to

Keyboard shortcuts

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