// ItemsFromResources attempts to convert resources into instances of backend.Item.
// NOTE: this is not necessarily a 1-to-1 conversion.
ItemsFromResources attempts to convert resources into instances of backend.Item.
NOTE: this is not necessarily a 1-to-1 conversion.
// ItemsFromResources attempts to convert resources into instances of backend . Item . // NOTE : this is not necessarily a 1 - to - 1 conversion .
func ItemsFromResources(resources ...services.Resource) ([]backend.Item, error) {
	var allItems []backend.Item
	for _, rsc := range resources {
		items, err := itemsFromResource(rsc)
		if err != nil {
			return nil, trace.Wrap(err)
		}
		allItems = append(allItems, items...)
	}
	return allItems, nil
}
func ItemsFromResources ( resources ... services . Resource ) ( [ ] backend . Item , error ) { var allItems [ ] backend . Item for _ , rsc := range resources { items , err := itemsFromResource ( rsc ) if err != nil { return nil , trace . Wrap ( err ) } allItems = append ( allItems , items ... ) } return allItems , nil }
ItemsFromResources attempts to convert resources into instances of backend.Item.
ItemsFromResources attempts to convert resources into instances of backend . Item .