func (c Client) ListResources(charms []CharmID) ([][]resource.Resource, error) {
	results := make([][]resource.Resource, len(charms))
	for i, ch := range charms {
		res, err := c.listResources(ch)
		if err != nil {
			if csclient.IsAuthorizationError(err) || errors.Cause(err) == csparams.ErrNotFound {
				// Ignore authorization errors and not-found errors so we get some results
				// even if others fail.
				continue
			}
			return nil, errors.Trace(err)
		}
		results[i] = res
	}
	return results, nil
}
// ListResources returns a list of resources for each of the given charms.
ListResources returns a list of resources for each of the given charms.
// ListResources returns a list of resources for each of the given charms .
func (c Client) ListResources(charms []CharmID) ([][]resource.Resource, error) {
	results := make([][]resource.Resource, len(charms))
	for i, ch := range charms {
		res, err := c.listResources(ch)
		if err != nil {
			if csclient.IsAuthorizationError(err) || errors.Cause(err) == csparams.ErrNotFound {
				continue
			}
			return nil, errors.Trace(err)
		}
		results[i] = res
	}
	return results, nil
}
func ( c Client ) ListResources ( charms [ ] CharmID ) ( [ ] [ ] resource . Resource , error ) { results := make ( [ ] [ ] resource . Resource , len ( charms ) ) for i , ch := range charms { res , err := c . listResources ( ch ) if err != nil { if csclient . IsAuthorizationError ( err ) || errors . Cause ( err ) == csparams . ErrNotFound { continue } return nil , errors . Trace ( err ) } results [ i ] = res } return results , nil }
ListResources returns a list of resources for each of the given charms.
ListResources returns a list of resources for each of the given charms .
// Ignore authorization errors and not-found errors so we get some results // even if others fail.