2020-09-02 15:24:16 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
|
|
|
memdb "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{}
|
2021-09-17 19:36:34 +00:00
|
|
|
type EnterpriseKVUsage struct{}
|
2021-10-01 18:22:30 +00:00
|
|
|
type EnterpriseConfigUsage struct{}
|
2021-08-18 14:27:15 +00:00
|
|
|
|
|
|
|
func addEnterpriseNodeUsage(map[string]int, memdb.Change) {}
|
2020-09-02 15:24:16 +00:00
|
|
|
|
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
|
|
|
|
2021-08-18 14:27:15 +00:00
|
|
|
func compileEnterpriseServiceUsage(tx ReadTxn, usage ServiceUsage) (ServiceUsage, error) {
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
}
|