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

	if !r.HasExtension("container_full") {
		return nil, fmt.Errorf("The server is missing the required \"container_full\" API extension")
	}

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

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

	if !r.HasExtension("container_full") {
		return nil, fmt.Errorf("The server is missing the required \"container_full\" API extension")
	}

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

	return containers, nil
}
func ( r * ProtocolLXD ) GetContainersFull ( ) ( [ ] api . ContainerFull , error ) { containers := [ ] api . ContainerFull { } if ! r . HasExtension ( " " ) { return nil , fmt . Errorf ( " \" \" " ) } // Fetch the raw value _ , err := r . queryStruct ( " " , " " , nil , " " , & containers ) if err != nil { return nil , err } return containers , nil }
// GetContainersFull returns a list of containers including snapshots, backups and state
GetContainersFull returns a list of containers including snapshots backups and state