Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeAndUpdate ¶
func MergeAndUpdate(ctx context.Context, client mergeClient, mets *Metrics, list MergeList, skipValidate, confirm bool) (*configpb.Configuration, error)
MergeAndUpdate gathers configurations from each path and merges them. Puts the result at targetPath if confirm is true Will skip an input config if it is invalid and skipValidate is false Other problems are considered fatal and will return an error
Types ¶
type MergeList ¶
type MergeList struct { Target string `json:"Target"` Path *gcs.Path `json:"-"` Sources []Source `json:"Sources"` }
MergeList is a list of config sources to merge together ParseAndCheck will construct this from a YAML document
func ParseAndCheck ¶
ParseAndCheck parses and checks the configuration file for common errors
type Metrics ¶ added in v0.0.111
Metrics holds metrics relevant to the config merger.
func CreateMetrics ¶ added in v0.0.111
CreateMetrics creates metrics for the Config Merger
Click to show internal directories.
Click to hide internal directories.