config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitViper

func InitViper(filename string)

func UpdateDevEnvConfig

func UpdateDevEnvConfig(cfg DevEnvConfig) error

Types

type DevEnvConfig

type DevEnvConfig struct {
	GlobalConfig DevEnvGlobalConfig `yaml:"global" mapstructure:"global"`
	SDKConfig    DevEnvSDKSConfig   `yaml:"sdk,omitempty" mapstructure:"sdk,omitempty"`
}

func LoadViperConfig

func LoadViperConfig() *DevEnvConfig

type DevEnvGlobalConfig

type DevEnvGlobalConfig struct {
	Version string `yaml:"version,omitempty" mapstructure:"version,omitempty"`
}

type DevEnvSDKConfig

type DevEnvSDKConfig struct {
	SDK           string                        `yaml:"sdk" json:"sdk" mapstructure:"sdk"`
	Current       string                        `yaml:"current,omitempty" mapstructure:"current,omitempty"`
	Installations []DevEnvSDKInstallationConfig `yaml:"installations,omitempty" mapstructure:"installations,omitempty"`
}

type DevEnvSDKInstallationConfig

type DevEnvSDKInstallationConfig struct {
	Path    string `yaml:"path" mapstructure:"path"`
	Version string `yaml:"version" mapstructure:"version"`
}

type DevEnvSDKSConfig

type DevEnvSDKSConfig struct {
	SDKS []DevEnvSDKConfig `yaml:"sdks,omitempty" mapstructure:"sdks,omitempty"`
}

Jump to

Keyboard shortcuts

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