2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
2020-06-26 21:59:15 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
|
|
|
memdb "github.com/hashicorp/go-memdb"
|
2021-01-30 00:17:40 +00:00
|
|
|
|
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
2020-06-26 21:59:15 +00:00
|
|
|
)
|
|
|
|
|
2020-09-03 23:38:03 +00:00
|
|
|
func intentionListTxn(tx ReadTxn, _ *structs.EnterpriseMeta) (memdb.ResultIterator, error) {
|
2020-06-26 21:59:15 +00:00
|
|
|
// Get all intentions
|
2021-01-30 00:17:40 +00:00
|
|
|
return tx.Get(tableConnectIntentions, "id")
|
2020-06-26 21:59:15 +00:00
|
|
|
}
|