code: func (r *ResourceDefinition) IterateActions(it ActionIterator) error {
  	names := make([]string, len(r.Actions))
  	i := 0
  	for n := range r.Actions {
  		names[i] = n
  		i++
  	}
  	sort.Strings(names)
  	for _, n := range names {
  		if err := it(r.Actions[n]); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // IterateActions calls the given iterator passing in each resource action sorted in alphabetical order.
  // Iteration stops if an iterator returns an error and in this case IterateActions returns that
  // error.