func Load() (*Config, error) {
	cfg, err := readConfig()
	if err != nil {
		return nil, err
	}

	user := cfg.User.process()
	cfg.User = *user

	for i, cntr := range cfg.Containers {
		processed, err := cntr.process(i)
		if err != nil {
			return nil, err
		}
		cfg.Containers[i] = *processed
	}

	for i, dply := range cfg.Deployments {
		processed, err := dply.process(i)
		if err != nil {
			return nil, err
		}
		cfg.Deployments[i] = *processed
	}

	return cfg, nil
}
// Load loads in all configurations from a file
Load loads in all configurations from a file
// Load loads in all configurations from a file
func Load() (*Config, error) {
	cfg, err := readConfig()
	if err != nil {
		return nil, err
	}
	user := cfg.User.process()
	cfg.User = *user
	for i, cntr := range cfg.Containers {
		processed, err := cntr.process(i)
		if err != nil {
			return nil, err
		}
		cfg.Containers[i] = *processed
	}
	for i, dply := range cfg.Deployments {
		processed, err := dply.process(i)
		if err != nil {
			return nil, err
		}
		cfg.Deployments[i] = *processed
	}
	return cfg, nil
}
func Load ( ) ( * Config , error ) { cfg , err := readConfig ( ) if err != nil { return nil , err } user := cfg . User . process ( ) cfg . User = * user for i , cntr := range cfg . Containers { processed , err := cntr . process ( i ) if err != nil { return nil , err } cfg . Containers [ i ] = * processed } for i , dply := range cfg . Deployments { processed , err := dply . process ( i ) if err != nil { return nil , err } cfg . Deployments [ i ] = * processed } return cfg , nil }
Load loads in all configurations from a file
Load loads in all configurations from a file