datastore

package
v0.19.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDataStore

func DefaultDataStore() config.Data

DefaultDataStore used when no config file is found.

func FromConfigFile

func FromConfigFile(cfg *config.Config) error

FromConfigFile loads data from the config file only.

func FromFlagsThenEnvVarsThenConfigFile

func FromFlagsThenEnvVarsThenConfigFile(cmd *cobra.Command) config.DataStoreLoaderFunc

FromFlagsThenEnvVarsThenConfigFile loads data with the following precedence: * Flags (highest) * Environment variables where --flag is assumed to be PORTER_FLAG * Config file (lowest)

Types

This section is empty.

Jump to

Keyboard shortcuts

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