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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Dispatcher Configuration
	DispatcherImageEnvVarKey = "DISPATCHER_IMAGE"

	// Receiver Configuration
	ReceiverImageEnvVarKey = "RECEIVER_IMAGE"
)

Package Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {

	// Eventing-kafka Configuration
	SystemNamespace string        // Required
	ServiceAccount  string        // Required
	MetricsPort     int           // Required
	MetricsDomain   string        // Required
	ResyncPeriod    time.Duration // Optional

	// Dispatcher Configuration
	DispatcherImage string // Required

	// Receiver Configuration
	ReceiverImage string // Required
}

Environment Structure

func FromContext added in v0.20.0

func FromContext(ctx context.Context) (*Environment, error)

Obtain the Environment struct contained in a Context, if present

func GetEnvironment

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

Get The Environment

type Key added in v0.20.0

type Key struct{}

Key is used as the key for associating information with a context.Context.

Jump to

Keyboard shortcuts

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