getStrategy returns the specific network strategy for the provided type.
(tpe string)
| 34 | // getStrategy returns the specific network strategy for the |
| 35 | // provided type. |
| 36 | func getStrategy(tpe string) (networkStrategy, error) { |
| 37 | s, exists := strategies[tpe] |
| 38 | if !exists { |
| 39 | return nil, fmt.Errorf("unknown strategy type %q", tpe) |
| 40 | } |
| 41 | return s, nil |
| 42 | } |
| 43 | |
| 44 | // Returns the network statistics for the network interfaces represented by the NetworkRuntimeInfo. |
| 45 | func getNetworkInterfaceStats(interfaceName string) (*types.NetworkInterface, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…