Control scope of JoinOption functions
Control scope of JoinOption functions

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 <5bd2eb5b6f60921d9a2b9cb6a0a86bb947f3d361@docker.com>

Ramzec/docker,moul/docker,nalind/docker,flavio/docker,AkihiroSuda/docker,jameszhan/docker,moul/docker,vdemeester/docker,jameszhan/docker,thaJeztah/docker,AkihiroSuda/docker,jimjag/docker,mahak/docker,moby/moby,yosifkit/docker,thaJeztah/docker,nalind/docker,flavio/docker,trebonian/docker,moul/docker,bearstech/moby,AkihiroSuda/docker,paralin/docker,gnailuy/docker,nalind/docker,djs55/docker,paralin/docker,paralin/docker,jameszhan/docker,gnailuy/docker,thaJeztah/docker,nawawi/docker,Mokolea/docker,bearstech/moby,mahak/docker,yosifkit/docker,mahak/docker,docker/docker,nawawi/docker,AkihiroSuda/docker,docker/docker,jimjag/docker,Mokolea/docker,flavio/docker,moul/docker,yosifkit/docker,cpuguy83/docker,djs55/docker,Ramzec/docker,Mokolea/docker,trebonian/docker,Mokolea/docker,Ramzec/docker,moby/moby,Ramzec/docker,djs55/docker,trebonian/docker,vdemeester/docker,trebonian/docker,konstruktoid/docker-upstream,thaJeztah/docker,jimjag/docker,konstruktoid/docker-upstream,jthelin/docker,moby/moby,mahak/docker,konstruktoid/docker-upstream,cpuguy83/docker,gnailuy/docker,jimjag/docker,jthelin/docker,nalind/docker,cpuguy83/docker,paralin/docker,bearstech/moby,bearstech/moby,moby/moby,cpuguy83/docker,nawawi/docker,docker/docker,yosifkit/docker,konstruktoid/docker-upstream,flavio/docker,nawawi/docker,gnailuy/docker,vdemeester/docker