예제 #1
0
파일: labels.go 프로젝트: pauloheck/scope
// AddLabels appends Docker labels to the Node from a topology.
func AddLabels(node report.Node, labels map[string]string) report.Node {
	node = node.Copy()
	for key, value := range labels {
		node = node.WithLatests(map[string]string{
			LabelPrefix + key: value,
		})
	}
	return node
}