Exemple #1
0
func MaskContainerInfo(pathParams map[string]string, data []byte) interface{} {
	request := make(map[string]int)
	cId := pathParams["cId"]
	request["state"] = model.CONTAINER_STATE_DELETE
	mongo.UpdateContainerByIdUsingMap(cId, request)
	return webUtils.ProcessResponseFully(http.StatusOK, nil, true)
}
Exemple #2
0
func UpdateStateContainerInfo(pathParams map[string]string, data []byte) interface{} {
	request := make(map[string]int)
	cId := pathParams["cId"]
	cState := pathParams["cState"]
	request["state"], _ = strconv.Atoi(cState)
	mongo.UpdateContainerByIdUsingMap(cId, request)
	return webUtils.ProcessResponseFully(http.StatusOK, nil, true)
}