MCPcopy Index your code
hub / github.com/moby/moby / CreateEndpoint

Method CreateEndpoint

daemon/libnetwork/driverapi/driverapi.go:35–35  ·  view source on GitHub ↗

CreateEndpoint invokes the driver method to create an endpoint passing the network id, endpoint id endpoint information and driver specific config. The endpoint information can be either consumed by the driver or populated by the driver. The config mechanism will eventually be replaced with labels w

(ctx context.Context, nid, eid string, ifInfo InterfaceInfo, options map[string]any)

Source from the content-addressed store, hash-verified

33 // the driver or populated by the driver. The config mechanism will
34 // eventually be replaced with labels which are yet to be introduced.
35 CreateEndpoint(ctx context.Context, nid, eid string, ifInfo InterfaceInfo, options map[string]any) error
36
37 // DeleteEndpoint invokes the driver method to delete an endpoint
38 // passing the network id and endpoint id.

Callers 15

connectToNetworkMethod · 0.65
TestNullFunction · 0.65
TestUnknownEndpointFunction · 0.65
TestDuplicateEndpointFunction · 0.65
TestNetworkQueryFunction · 0.65
TestLeaveAllFunction · 0.65
TestEndpointUpdateParentFunction · 0.65

Calls

no outgoing calls

Tested by 15

TestNullFunction · 0.52
TestUnknownEndpointFunction · 0.52
TestDuplicateEndpointFunction · 0.52
TestNetworkQueryFunction · 0.52
TestLeaveAllFunction · 0.52
TestEndpointUpdateParentFunction · 0.52
TestHostFunction · 0.52