MCPcopy Create free account
hub / github.com/cloudfoundry/garden / NetIn

Method NetIn

container.go:71–71  ·  view source on GitHub ↗

Map a port on the host to a port in the container so that traffic to the host port is forwarded to the container port. This is deprecated in favour of passing NetIn configuration in the ContainerSpec at creation time. If a host port is not given, a port will be acquired from the server's port pool.

(hostPort, containerPort uint32)

Source from the content-addressed store, hash-verified

69 // Errors:
70 // * When no port can be acquired from the server's port pool.
71 NetIn(hostPort, containerPort uint32) (uint32, uint32, error)
72
73 // Whitelist outbound network traffic. This is deprecated in favour of passing
74 // NetOut configuration in the ContainerSpec at creation time.

Callers 2

handleNetInMethod · 0.65

Implementers 2

FakeContainergardenfakes/fake_container.go
containerclient/container.go

Calls

no outgoing calls

Tested by

no test coverage detected