client/lxd_containers.go
func (r *ProtocolLXD) GetContainers() ([]api.Container, error) {
	containers := []api.Container{}

	// Fetch the raw value
	_, err := r.queryStruct("GET", "/containers?recursion=1", nil, "", &containers)
	if err != nil {
		return nil, err
	}

	return containers, nil
}
func (r *ProtocolLXD) GetContainers() ([]api.Container, error) {
	containers := []api.Container{}

	// Fetch the raw value
	_, err := r.queryStruct("GET", "/containers?recursion=1", nil, "", &containers)
	if err != nil {
		return nil, err
	}

	return containers, nil
}
func ( r * ProtocolLXD ) GetContainers ( ) ( [ ] api . Container , error ) { containers := [ ] api . Container { } // Fetch the raw value _ , err := r . queryStruct ( " " , " " , nil , " " , & containers ) if err != nil { return nil , err } return containers , nil }
// GetContainers returns a list of containers
GetContainers returns a list of containers