config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StageDevelopment = "development"
	StageProduction  = "production"
	StageEnvVar      = "STAGE"
)
View Source
const ApplicationContextKey = "applicationContext"

Variables

Functions

func GetNamespace

func GetNamespace() (string, error)

func GetRemoteConfiguration

func GetRemoteConfiguration() (*core.Remote, error)

GetRemoteConfiguration creates a remote configuration with the configured values.

func GetRemoteCredentials

func GetRemoteCredentials() (*core.Credentials, error)

GetRemoteCredentials creates a remote credential pair with the configured values.

func IsStageDevelopment

func IsStageDevelopment() bool

Types

type OperatorConfig

type OperatorConfig struct {
	// Version contains the current version of the operator
	Version *semver.Version
	// Namespace specifies the namespace that the operator is deployed to.
	Namespace string
}

OperatorConfig contains all configurable values for the dogu operator.

func NewOperatorConfig

func NewOperatorConfig(version string) (*OperatorConfig, error)

NewOperatorConfig creates a new operator config by reading values from the environment variables

Jump to

Keyboard shortcuts

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