lxd/container.go
func containerLoadNodeProjectAll(s *state.State, project string) ([]container, error) {
	// Get all the container arguments
	var cts []db.Container
	err := s.Cluster.Transaction(func(tx *db.ClusterTx) error {
		var err error
		cts, err = tx.ContainerNodeProjectList(project)
		if err != nil {
			return err
		}

		return nil
	})
	if err != nil {
		return nil, err
	}

	return containerLoadAllInternal(cts, s)
}
func containerLoadNodeProjectAll(s *state.State, project string) ([]container, error) {
	// Get all the container arguments
	var cts []db.Container
	err := s.Cluster.Transaction(func(tx *db.ClusterTx) error {
		var err error
		cts, err = tx.ContainerNodeProjectList(project)
		if err != nil {
			return err
		}

		return nil
	})
	if err != nil {
		return nil, err
	}

	return containerLoadAllInternal(cts, s)
}
func containerLoadNodeProjectAll ( s * state . State , project string ) ( [ ] container , error ) { // Get all the container arguments var cts [ ] db . Container err := s . Cluster . Transaction ( func ( tx * db . ClusterTx ) error { var err error cts , err = tx . ContainerNodeProjectList ( project ) if err != nil { return err } return nil } ) if err != nil { return nil , err } return containerLoadAllInternal ( cts , s ) }
// Load all containers of this nodes under the given project.
Load all containers of this nodes under the given project .