config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	DbmsServers []DbmsServerConfig `yaml:"dbmsServers"`
}

func ReadConfig

func ReadConfig(filename string) (AppConfig, error)

type DbmsServerConfig

type DbmsServerConfig struct {
	Name       string       `yaml:"name"`
	Type       string       `yaml:"type"`
	FromSecret SecretConfig `yaml:"fromSecret"`
}

func GetDbmsServer

func GetDbmsServer(config AppConfig, dbmsServerName string) (DbmsServerConfig, error)

type SecretConfig

type SecretConfig struct {
	Namespace string `yaml:"namespace"`
	Secret    string `yaml:"secret"`
}

Jump to

Keyboard shortcuts

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