// GetContainers return names list of active containers
GetContainers return names list of active containers
// GetContainers return names list of active containers
func GetContainers(w http.ResponseWriter, r *http.Request) *apiError {
	lxcContainers := &containers{
		Containers: lxc.ContainerNames(lxcpath)}
	js, err := json.Marshal(lxcContainers)
	if err != nil {
		return &apiError{err, err.Error(), 500}
	}
	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(http.StatusOK)
	w.Write([]byte(string(js)))
	return nil
}
func GetContainers ( w http . ResponseWriter , r * http . Request ) * apiError { lxcContainers := & containers { Containers : lxc . ContainerNames ( lxcpath ) } js , err := json . Marshal ( lxcContainers ) if err != nil { return & apiError { err , err . Error ( ) , 500 } } w . Header ( ) . Set ( " " , " " ) w . WriteHeader ( http . StatusOK ) w . Write ( [ ] byte ( string ( js ) ) ) return nil }
GetContainers return names list of active containers
GetContainers return names list of active containers