configbp

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package configbp parses configurations per the baseplate spec.

Index

Constants

This section is empty.

Variables

View Source
var BaseplateConfigPath = os.Getenv("BASEPLATE_CONFIG_PATH")

BaseplateConfigPath points to the default config file per baseplate.spec.

Functions

func ParseStrictFile

func ParseStrictFile(path string, ptr interface{}) error

ParseStrictFile parses configuration from the file at the given path.

Environment variables (e.g. $FOO and ${FOO}) are substituted from the environment before parsing. The configuration is parsed into each of the targets, which will typically be pointers to structs.

func ParseStrictYAML

func ParseStrictYAML(reader io.Reader, ptr interface{}) error

ParseStrictYAML parses YAML read from the given Reader.

Environment variables (e.g. $FOO and ${FOO}) are substituted from the environment before parsing. The configuration is parsed into each of the targets, which will typically be pointers to structs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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