Versions in this module Expand all Collapse all v0 v0.1.5 Dec 21, 2024 v0.1.4 Dec 21, 2024 v0.1.3 Dec 21, 2024 v0.1.2 Dec 21, 2024 Changes in this version + var DefaultConfig = Context + var DefaultLocalConfig = Context + type AWSConfig struct + AWSEndpointURL *string + AWSProfile *string + Enabled *bool + Localstack *LocalstackConfig + MWAAEndpoint *string + S3Hostname *string + type BaseConfigHandler struct + type ClusterConfig struct + ControlPlanes struct{ ... } + Driver *string + Enabled *bool + Workers struct{ ... } + type Config struct + Context *string + Contexts map[string]*Context + type ConfigHandler interface + Get func(key string) interface{} + GetBool func(key string, defaultValue ...bool) bool + GetConfig func() *Context + GetInt func(key string, defaultValue ...int) int + GetString func(key string, defaultValue ...string) string + LoadConfig func(path string) error + SaveConfig func(path string) error + Set func(key string, value interface{}) error + SetContextValue func(key string, value interface{}) error + SetDefault func(context Context) error + type Context struct + AWS *AWSConfig + Cluster *ClusterConfig + DNS *DNSConfig + Docker *DockerConfig + Environment map[string]string + Git *GitConfig + Terraform *TerraformConfig + VM *VMConfig + type DNSConfig struct + Address *string + Enabled *bool + Name *string + type DockerConfig struct + Enabled *bool + NetworkCIDR *string + Registries []Registry + type GitConfig struct + Livereload *GitLivereloadConfig + type GitLivereloadConfig struct + Enabled *bool + Image *string + Password *string + RsyncExclude *string + RsyncProtect *string + Username *string + VerifySsl *bool + WebhookUrl *string + type LocalstackConfig struct + Enabled *bool + Services []string + type MockConfigHandler struct + GetBoolFunc func(key string, defaultValue ...bool) bool + GetConfigFunc func() *Context + GetFunc func(key string) interface{} + GetIntFunc func(key string, defaultValue ...int) int + GetStringFunc func(key string, defaultValue ...string) string + LoadConfigFunc func(path string) error + SaveConfigFunc func(path string) error + SetContextValueFunc func(key string, value interface{}) error + SetDefaultFunc func(context Context) error + SetFunc func(key string, value interface{}) error + func NewMockConfigHandler() *MockConfigHandler + func (m *MockConfigHandler) Get(key string) interface{} + func (m *MockConfigHandler) GetBool(key string, defaultValue ...bool) bool + func (m *MockConfigHandler) GetConfig() *Context + func (m *MockConfigHandler) GetInt(key string, defaultValue ...int) int + func (m *MockConfigHandler) GetString(key string, defaultValue ...string) string + func (m *MockConfigHandler) LoadConfig(path string) error + func (m *MockConfigHandler) SaveConfig(path string) error + func (m *MockConfigHandler) Set(key string, value interface{}) error + func (m *MockConfigHandler) SetContextValue(key string, value interface{}) error + func (m *MockConfigHandler) SetDefault(context Context) error + type NodeConfig struct + Endpoint *string + Hostname *string + Node *string + type Registry struct + Local string + Name string + Remote string + type TerraformConfig struct + Backend *string + type VMConfig struct + Address *string + Arch *string + CPU *int + Disk *int + Driver *string + Memory *int + type YamlConfigHandler struct + func NewYamlConfigHandler() *YamlConfigHandler + func (y *YamlConfigHandler) Get(path string) interface{} + func (y *YamlConfigHandler) GetBool(key string, defaultValue ...bool) bool + func (y *YamlConfigHandler) GetConfig() *Context + func (y *YamlConfigHandler) GetInt(key string, defaultValue ...int) int + func (y *YamlConfigHandler) GetString(key string, defaultValue ...string) string + func (y *YamlConfigHandler) LoadConfig(path string) error + func (y *YamlConfigHandler) SaveConfig(path string) error + func (y *YamlConfigHandler) Set(path string, value interface{}) error + func (y *YamlConfigHandler) SetContextValue(path string, value interface{}) error + func (y *YamlConfigHandler) SetDefault(context Context) error