config

package
v0.0.139 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration interface {
	JXConfig
	LogConfig

	// String returns a string representation of the configuration.
	String() string
}

Configuration declares the configuration properties of this app.

func NewConfiguration

func NewConfiguration() (Configuration, error)

NewConfiguration creates a configuration instance.

type EnvConfig

type EnvConfig struct {
	// contains filtered or unexported fields
}

EnvConfig is a Configuration implementation which reads the configuration from the process environment.

func (*EnvConfig) Level

func (c *EnvConfig) Level() string

Level returns the logging level.

func (*EnvConfig) Namespace

func (c *EnvConfig) Namespace() string

Namespace returns the JX namespace to watch.

func (*EnvConfig) String

func (c *EnvConfig) String() string

String returns a string representation of the configuration.

type JXConfig

type JXConfig interface {
	// Namespace returns the JX namespace to watch.
	Namespace() string
}

JXConfig defines JX specific configuration.

type LogConfig

type LogConfig interface {
	// Level returns the logging level.
	Level() string
}

LogConfig defines the logging configuration.

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

Setting is an element in the proxy configuration. It contains the environment variable from which the setting is retrieved, its default value as well as a list of validations which the value of this setting needs to pass.

Jump to

Keyboard shortcuts

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