configutil

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ConfigPath = "/.devspace/config.yaml"

ConfigPath is the path for the main config

View Source
const CurrentConfigVersion = "v1alpha1"

CurrentConfigVersion has the value of the current config version

View Source
const DefaultDevspaceDeploymentName = "devspace-default"

DefaultDevspaceDeploymentName is the name of the initial default deployment

View Source
const OverwriteConfigPath = "/.devspace/overwrite.yaml"

OverwriteConfigPath specifies where the override.yaml lies

Variables

This section is empty.

Functions

func Bool

func Bool(val bool) *bool

Bool returns a pointer to a bool variable

func ConfigExists

func ConfigExists() (bool, error)

ConfigExists checks whether the yaml file for the config exists

func GetConfig

func GetConfig() *v1.Config

GetConfig returns the config merged from .devspace/config.yaml and .devspace/overwrite.yaml

func GetDefaultNamespace

func GetDefaultNamespace(config *v1.Config) (string, error)

GetDefaultNamespace retrieves the default namespace where to operate in, either from devspace config or kube config

func GetOverwriteConfig

func GetOverwriteConfig() *v1.Config

GetOverwriteConfig returns the config retrieved from .devspace/overwrite.yaml

func InitConfig

func InitConfig() *v1.Config

InitConfig initializes the config objects

func Merge

func Merge(object interface{}, overwriteObject interface{})

Merge deeply merges two objects

func SaveConfig

func SaveConfig() error

SaveConfig writes the data of a config to its yaml file

func SetDefaults

func SetDefaults(config *v1.Config)

SetDefaults ensures that specific values are set in the config

func String

func String(val string) *string

String returns a pointer to a string variable

Types

type ConfigInterface

type ConfigInterface interface{}

ConfigInterface defines the pattern of every config

Jump to

Keyboard shortcuts

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