2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
2020-09-02 15:24:16 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
2022-07-27 22:34:04 +00:00
|
|
|
"github.com/hashicorp/go-memdb"
|
2021-08-18 14:27:15 +00:00
|
|
|
|
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
2020-09-02 15:24:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type EnterpriseServiceUsage struct{}
|
2021-08-18 14:27:15 +00:00
|
|
|
type EnterpriseNodeUsage struct{}
|
2022-07-27 22:34:04 +00:00
|
|
|
type EnterprisePeeringUsage struct{}
|
2021-09-17 19:36:34 +00:00
|
|
|
type EnterpriseKVUsage struct{}
|
2021-10-08 15:53:27 +00:00
|
|
|
type EnterpriseConfigEntryUsage struct{}
|
2021-08-18 14:27:15 +00:00
|
|
|
|
|
|
|
func addEnterpriseNodeUsage(map[string]int, memdb.Change) {}
|
2020-09-02 15:24:16 +00:00
|
|
|
|
2022-07-27 22:34:04 +00:00
|
|
|
func addEnterprisePeeringUsage(map[string]int, memdb.Change) {}
|
|
|
|
|
2021-01-12 21:31:47 +00:00
|
|
|
func addEnterpriseServiceInstanceUsage(map[string]int, memdb.Change) {}
|
|
|
|
|
|
|
|
func addEnterpriseServiceUsage(map[string]int, map[structs.ServiceName]uniqueServiceState) {}
|
2020-09-02 15:24:16 +00:00
|
|
|
|
2021-09-30 21:15:26 +00:00
|
|
|
func addEnterpriseConnectServiceInstanceUsage(map[string]int, *structs.ServiceNode, int) {}
|
|
|
|
|
2021-09-17 19:36:34 +00:00
|
|
|
func addEnterpriseKVUsage(map[string]int, memdb.Change) {}
|
|
|
|
|
2021-10-07 21:19:55 +00:00
|
|
|
func addEnterpriseConfigEntryUsage(map[string]int, memdb.Change) {}
|
2021-10-01 18:22:30 +00:00
|
|
|
|
2022-09-09 14:02:01 +00:00
|
|
|
func compileEnterpriseServiceUsage(ws memdb.WatchSet, tx ReadTxn, usage ServiceUsage) (ServiceUsage, error) {
|
2021-08-18 14:27:15 +00:00
|
|
|
return usage, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func compileEnterpriseNodeUsage(tx ReadTxn, usage NodeUsage) (NodeUsage, error) {
|
2020-09-02 15:24:21 +00:00
|
|
|
return usage, nil
|
2020-09-02 15:24:16 +00:00
|
|
|
}
|
2021-09-17 19:36:34 +00:00
|
|
|
|
2022-07-27 22:34:04 +00:00
|
|
|
func compileEnterprisePeeringUsage(tx ReadTxn, usage PeeringUsage) (PeeringUsage, error) {
|
|
|
|
return usage, nil
|
|
|
|
}
|
|
|
|
|
2021-09-17 19:36:34 +00:00
|
|
|
func compileEnterpriseKVUsage(tx ReadTxn, usage KVUsage) (KVUsage, error) {
|
|
|
|
return usage, nil
|
|
|
|
}
|
2021-10-01 18:22:30 +00:00
|
|
|
|
2021-10-07 21:19:55 +00:00
|
|
|
func compileEnterpriseConfigEntryUsage(tx ReadTxn, usage ConfigEntryUsage) (ConfigEntryUsage, error) {
|
2021-10-01 18:22:30 +00:00
|
|
|
return usage, nil
|
|
|
|
}
|