MCPcopy
hub / github.com/kubernetes/kops / DumpLoadBalancer

Function DumpLoadBalancer

pkg/resources/azure/dump.go:169–182  ·  view source on GitHub ↗
(op *resources.DumpOperation, r *resources.Resource)

Source from the content-addressed store, hash-verified

167}
168
169func DumpLoadBalancer(op *resources.DumpOperation, r *resources.Resource) error {
170 data := make(map[string]interface{})
171 data["id"] = r.ID
172 data["type"] = r.Type
173 data["raw"] = r.Obj
174 op.Dump.Resources = append(op.Dump.Resources, data)
175 if lb, ok := r.Obj.(*network.LoadBalancer); ok {
176 op.Dump.LoadBalancers = append(op.Dump.LoadBalancers, &resources.LoadBalancer{
177 Name: fi.ValueOf(lb.Name),
178 })
179
180 }
181 return nil
182}

Callers

nothing calls this directly

Calls 1

ValueOfFunction · 0.92

Tested by

no test coverage detected