Beispiel #1
0
func addMetadata(c *Cluster, p *pb.Cluster) {
	m := p.GetMetadata()
	if m == nil {
		return
	}

	c.Status.LastUpdate = time.Unix(*m.LastUpdated, 0)
	for _, attr := range m.Attribute {
		c.Status.Attributes = append(c.Status.Attributes, seesaw.ConfigMetadata{Name: *attr.Name, Value: *attr.Value})
	}
}