config

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndReadConfig

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

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) *v1.Config

func Upgrade added in v0.22.0

func Upgrade(fs afero.Fs, configFile string) error

Upgrade applies in-place upgrades to a configFile

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