Documentation ¶
Index ¶
- Constants
- Variables
- func AddService(service *v1.ServiceConfig) error
- func Bool(val bool) *bool
- func ConfigExists() (bool, error)
- func GetConfig() *v1.Config
- func GetConfigWithoutDefaults() *v1.Config
- func GetDefaultNamespace(config *v1.Config) (string, error)
- func GetOverwriteConfig() *v1.Config
- func GetService(serviceName string) (*v1.ServiceConfig, error)
- func InitConfig() *v1.Config
- func Merge(object interface{}, overwriteObject interface{}, unifyPointers bool)
- func SaveConfig() error
- func SetDefaultsOnce()
- func String(val string) *string
- type ConfigInterface
Constants ¶
const CurrentConfigVersion = "v1alpha1"
CurrentConfigVersion has the value of the current config version
const DefaultConfigPath = ".devspace/config.yaml"
DefaultConfigPath is the default config path to use
const DefaultDevspaceDeploymentName = "devspace-default"
DefaultDevspaceDeploymentName is the name of the initial default deployment
const DefaultDevspaceServiceName = "default"
DefaultDevspaceServiceName is the name of the initial default service
const DefaultOverwriteConfigPath = ".devspace/overwrite.yaml"
DefaultOverwriteConfigPath is the default overwrite config path to use
Variables ¶
var ConfigPath = DefaultConfigPath
ConfigPath is the path for the main config
var OverwriteConfigPath = DefaultOverwriteConfigPath
OverwriteConfigPath specifies where the override.yaml lies
Functions ¶
func AddService ¶
func AddService(service *v1.ServiceConfig) error
AddService adds a service to the config
func ConfigExists ¶
ConfigExists checks whether the yaml file for the config exists
func GetConfig ¶
GetConfig returns the config merged from .devspace/config.yaml and .devspace/overwrite.yaml
func GetConfigWithoutDefaults ¶
GetConfigWithoutDefaults returns the config without setting the default values
func GetDefaultNamespace ¶
GetDefaultNamespace retrieves the default namespace where to operate in, either from devspace config or kube config
func GetOverwriteConfig ¶
GetOverwriteConfig returns the config retrieved from .devspace/overwrite.yaml
func GetService ¶
func GetService(serviceName string) (*v1.ServiceConfig, error)
GetService returns the service referenced by serviceName
func Merge ¶
func Merge(object interface{}, overwriteObject interface{}, unifyPointers bool)
Merge deeply merges two objects object MUST be a pointer of a pointer overwriteObject MUST be a pointer
func SetDefaultsOnce ¶
func SetDefaultsOnce()
SetDefaultsOnce ensures that specific values are set in the config
Types ¶
type ConfigInterface ¶
type ConfigInterface interface{}
ConfigInterface defines the pattern of every config