system

package
v0.0.0-...-87426b5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceEnvKey     = "SYSTEM_NAMESPACE"
	ResourceLabelEnvKey = "SYSTEM_RESOURCE_LABEL"
)

Variables

This section is empty.

Functions

func Namespace

func Namespace() string

Namespace returns the name of the K8s namespace where our system components run.

func ResourceLabel

func ResourceLabel() string

ResourceLabel returns the label key identifying K8s objects our system components source their configuration from.

Types

type Clock

type Clock interface {
	Now() time.Time
}

Mockable interface for time based testing

type RealClock

type RealClock struct{}

func (RealClock) Now

func (RealClock) Now() time.Time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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