The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
![]() ISSUE: - JoinOption type takes the exported interface Endpoint as parameter. This does not allows libnetwork to control the setter functions which will be executed by processOptions(). Client can now craft any func (e Endpoint), pass it to Endpoint.Join() and have it executed. Beside the fact this allows the client to shot himself in the foot, there seem not to be a real need in having the JoinOption take the Endpoint interface as parameter. CHANGE: - Changing the JoinOption signature to take a pointer to the unexported endpoint structure. So now libnetwork is the only one that can define the Join() method's options setter functions via the self referenced JoinOption[...] functions. Signed-off-by: Alessandro Boch <aboch@docker.com> |
||
---|---|---|
libnetwork |