merger

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpringApplicationFilePaths

func GetSpringApplicationFilePaths(appName string, profiles []string, commonFirst bool) []string

GetSpringApplicationFilePaths returns the list of the files that are matching with the parameters

Types

type ConfigMerger

type ConfigMerger interface {
	Merge(repo configrepo.Repo, appName, appVersion string, profiles []string) (map[interface{}]interface{}, error)
}

ConfigMerger represent a merge configuration strategy

type SmartConfigMerger

type SmartConfigMerger struct{}

SmartConfigMerger represent a ConfigMerger for smart config strategy

func (SmartConfigMerger) Merge

func (s SmartConfigMerger) Merge(repo configrepo.Repo, app *configrepo.ApplicationVersion, profiles []string) (map[interface{}]interface{}, error)

Merge the application configuration following the smart config strategy

type SpringMerger

type SpringMerger struct{}

SpringMerger implementation of ConfigMerger that use spring-cloud-config strategy

func (SpringMerger) Merge

func (m SpringMerger) Merge(repo configrepo.Repo, app *configrepo.ApplicationVersion, profiles []string) (map[interface{}]interface{}, error)

Merge an application configuration based on spring-cloud-config strategy

Jump to

Keyboard shortcuts

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