config

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 12 Imported by: 7

Documentation

Index

Constants

View Source
const DefaultFoggVersion = 2

DefaultFoggVersion is the version that fogg will generate by default

Variables

This section is empty.

Functions

func FindAndReadConfig

func FindAndReadConfig(fs afero.Fs, configFile string) (*v2.Config, error)

FindAndReadConfig locates config file and reads it based on the version

func FindConfig added in v0.22.0

func FindConfig(fs afero.Fs, configFile string) ([]byte, int, error)

FindConfig loads a config and its version into memory

func InitConfig

func InitConfig(project, region, bucket, table, awsProfile, owner, awsProviderVersion string) *v2.Config

InitConfig initializes the config file using user input

func UpgradeConfigVersion added in v0.20.0

func UpgradeConfigVersion(c1 *v1.Config) (*v2.Config, error)

UpgradeConfigVersion will convert a v1.Config to a v2.Config. Note that due to some semantic changes, this a lossy

conversion

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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