environment

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Env is current environment. Environment is a singleton as k8s cluster can't span multiple environment. Providers of environment hide behind this interface. Clients of this package are free to reconfigure environment.

Functions

func Get

func Get(topology types.Topology, key string) (interface{}, error)

Get is convenience function

func GetManagementEndpoint

func GetManagementEndpoint(topology types.Topology) (
	*types.ManagementEndpoint, error,
)

GetManagementEndpoint is convenience function

func NewEnvironment

func NewEnvironment(p ...types.Provider) types.Environment

NewEnvironment constructs new environment from given list of providers. The order of providers is honored during lookup. This function is meant to construct Env as environment is a singleton.

Types

This section is empty.

Directories

Path Synopsis
providers
configmap
TODO implement provider sourcing settings from a Kubernetes config map.
TODO implement provider sourcing settings from a Kubernetes config map.

Jump to

Keyboard shortcuts

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