datastore

package
v0.38.11 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 7 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