lxd/db/projects.go
func (c *ClusterTx) ProjectNames() ([]string, error) {
	stmt := "SELECT name FROM projects"

	names, err := query.SelectStrings(c.tx, stmt)
	if err != nil {
		return nil, errors.Wrap(err, "Fetch project names")
	}

	return names, nil
}
func (c *ClusterTx) ProjectNames() ([]string, error) {
	stmt := "SELECT name FROM projects"

	names, err := query.SelectStrings(c.tx, stmt)
	if err != nil {
		return nil, errors.Wrap(err, "Fetch project names")
	}

	return names, nil
}
func ( c * ClusterTx ) ProjectNames ( ) ( [ ] string , error ) { stmt := " " names , err := query . SelectStrings ( c . tx , stmt ) if err != nil { return nil , errors . Wrap ( err , " " ) } return names , nil }
// ProjectNames returns the names of all available projects.
ProjectNames returns the names of all available projects .