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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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