MCPcopy
hub / github.com/google/cadvisor / GetRootNetworkDevices

Method GetRootNetworkDevices

lib/container/raw/handler.go:103–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (h *rawContainerHandler) GetRootNetworkDevices() ([]info.NetInfo, error) {
104 nd := []info.NetInfo{}
105 if isRootCgroup(h.name) {
106 mi, err := h.machineInfoFactory.GetMachineInfo()
107 if err != nil {
108 return nd, err
109 }
110 return mi.NetworkDevices, nil
111 }
112 return nd, nil
113}
114
115// Nothing to start up.
116func (h *rawContainerHandler) Start() {}

Callers 1

GetSpecMethod · 0.95

Calls 2

isRootCgroupFunction · 0.85
GetMachineInfoMethod · 0.65

Tested by

no test coverage detected