Documentation
¶
Index ¶
- Constants
- Variables
- func InitViper(filename string)
- func Save(fs afero.Fs, pather devctlpath.Pather, cfg *Config) (err error)
- func UpdateDevEnvConfig(cfg DevEnvConfig) error
- func WriteDevEnvConfig(filepath string, cfg DevEnvConfig) error
- type Config
- type DevEnvConfig
- type DevEnvGlobalConfig
- type DevEnvSDKConfig
- type SDKCandidate
- type SdkConfig
- type SdksConfig
Constants ¶
View Source
const (
VersionV1 = "v1"
)
Variables ¶
View Source
var (
ErrSDKNotInConfig = errors.New("The config.SDKConfig for the given SDK-key is not available inside the config.Config")
)
Functions ¶
func UpdateDevEnvConfig ¶
func UpdateDevEnvConfig(cfg DevEnvConfig) error
func WriteDevEnvConfig ¶
func WriteDevEnvConfig(filepath string, cfg DevEnvConfig) error
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
Sdks SdksConfig `yaml:"Sdks"`
}
func LoadOrCreate ¶
func NewBlankConfig ¶
func NewBlankConfig() (c *Config)
type DevEnvConfig ¶
type DevEnvConfig struct {
GlobalConfig DevEnvGlobalConfig `yaml:"global,omitempty" json:"global,omitempty" mapstructure:"global,omitempty"`
Sdks map[string]DevEnvSDKConfig `yaml:"sdks,omitempty" json:"sdks,omitempty" mapstructure:"sdks,omitempty"`
}
func LoadViperConfig ¶
func LoadViperConfig() *DevEnvConfig
func (*DevEnvConfig) GoString ¶
func (d *DevEnvConfig) GoString() string
type DevEnvGlobalConfig ¶
type DevEnvGlobalConfig struct {
Version string `yaml:"version,omitempty" json:"version,omitempty" mapstructure:"version,omitempty"`
}
type DevEnvSDKConfig ¶
type DevEnvSDKConfig struct {
Current string `yaml:"current,omitempty" json:"current,omitempty" mapstructure:"current,omitempty"`
Candidates []SDKCandidate `yaml:"candidates,omitempty" json:"candidates,omitempty" mapstructure:"candidates,omitempty"`
}
type SDKCandidate ¶
type SdkConfig ¶
type SdkConfig struct {
SDK string `yaml:"sdk"`
Current string `yaml:"current"`
Installations map[string]string `yaml:"installations"`
}
func NewSdkConfig ¶
type SdksConfig ¶
Click to show internal directories.
Click to hide internal directories.