MCPcopy
hub / github.com/istio/istio / Clone

Method Clone

pkg/config/resource/metadata.go:36–41  ·  view source on GitHub ↗

Clone Metadata. Warning, this is expensive!

()

Source from the content-addressed store, hash-verified

34
35// Clone Metadata. Warning, this is expensive!
36func (m *Metadata) Clone() Metadata {
37 result := *m
38 result.Annotations = maps.Clone(m.Annotations)
39 result.Labels = maps.Clone(m.Labels)
40 return result
41}

Callers 5

registerHomeFunction · 0.45
registerTopicFunction · 0.45
RunFunction · 0.45

Calls 1

CloneFunction · 0.92

Tested by 2