code: func (ps allocatedPorts) addState(p *api.PortConfig) {
  	portKey := getPortConfigKey(p)
  	if _, ok := ps[portKey]; !ok {
  		ps[portKey] = make(map[uint32]*api.PortConfig)
  	}
  	ps[portKey][p.PublishedPort] = p
  }
docs: // addState add the state of an allocated port to the collection.
  // `allocatedPorts` is a map of portKey:publishedPort:portState.
  // In case the value of the portKey is missing, the map
  // publishedPort:portState is created automatically