configutil

package
v1.0.1 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: 33

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