MCPcopy
hub / github.com/opencontainers/runc / getStrategy

Function getStrategy

libcontainer/network_linux.go:36–42  ·  view source on GitHub ↗

getStrategy returns the specific network strategy for the provided type.

(tpe string)

Source from the content-addressed store, hash-verified

34// getStrategy returns the specific network strategy for the
35// provided type.
36func 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.
45func getNetworkInterfaceStats(interfaceName string) (*types.NetworkInterface, error) {

Callers 4

lockNetworkFunction · 0.85
unlockNetworkFunction · 0.85
setupNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…