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

        Source Files

        Directories

        Path Synopsis