code: func (s *Intention) List(
  	args *structs.DCSpecificRequest,
  	reply *structs.IndexedIntentions) error {
  	// Forward if necessary
  	if done, err := s.srv.forward("Intention.List", args, args, reply); done {
  		return err
  	}
  
  	return s.srv.blockingQuery(
  		&args.QueryOptions, &reply.QueryMeta,
  		func(ws memdb.WatchSet, state *state.Store) error {
  			index, ixns, err := state.Intentions(ws)
  			if err != nil {
  				return err
  			}
  
  			reply.Index, reply.Intentions = index, ixns
  			if reply.Intentions == nil {
  				reply.Intentions = make(structs.Intentions, 0)
  			}
  
  			return s.srv.filterACL(args.Token, reply)
  		},
  	)
  }
docs: // List returns all the intentions.