configs

package
v0.0.0-...-c8f758e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 2 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 struct {
	EkubeConfiguration
	ServerConfiguration
}

func Configure

func Configure() (*Configuration, error)

func (*Configuration) GetConfiguration

func (c *Configuration) GetConfiguration(v viper.Viper)

type EkubeConfiguration

type EkubeConfiguration struct {
	EkubeHost string `json:"EKUBE_HOST"`
	EkubePort string `json:"EKUBE_PORT"`
}

func GetEkubeConfig

func GetEkubeConfig(vipe viper.Viper) EkubeConfiguration

type ServerConfiguration

type ServerConfiguration struct {
	SrvPort        string `json:"SERVER_PORT"`
	SrvSecretsFile string `json:"SECRETS_FILE"`
}

func GetServerConfig

func GetServerConfig(vipe viper.Viper) ServerConfiguration

Jump to

Keyboard shortcuts

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