configutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 12 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

This section is empty.

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(reload bool) *v1.Config

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

func GetConfigInstance

func GetConfigInstance() *v1.Config

GetConfigInstance returns the reference to the config (in most cases it is recommended to use GetConfig instaed)

func GetOverwriteConfig

func GetOverwriteConfig(reload bool) *v1.Config

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

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 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