2020-06-26 21:13:16 +00:00
|
|
|
// +build !enterprise
|
|
|
|
|
|
|
|
package quotas
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
log "github.com/hashicorp/go-hclog"
|
2020-10-13 23:38:21 +00:00
|
|
|
"github.com/hashicorp/vault/helper/metricsutil"
|
2020-06-26 21:13:16 +00:00
|
|
|
|
|
|
|
memdb "github.com/hashicorp/go-memdb"
|
|
|
|
)
|
|
|
|
|
|
|
|
func quotaTypes() []string {
|
|
|
|
return []string{
|
|
|
|
TypeRateLimit.String(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Manager) init(walkFunc leaseWalkFunc) {}
|
|
|
|
|
|
|
|
func (m *Manager) recomputeLeaseCounts(ctx context.Context, txn *memdb.Txn) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Manager) setIsPerfStandby(quota Quota) {}
|
|
|
|
|
|
|
|
func (m *Manager) inLeasePathCache(path string) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type entManager struct {
|
|
|
|
isPerfStandby bool
|
2021-06-02 16:12:05 +00:00
|
|
|
isDRSecondary bool
|
2020-06-26 21:13:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (*entManager) Reset() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-08 16:43:39 +00:00
|
|
|
type LeaseCountQuota struct{}
|
2020-06-26 21:13:16 +00:00
|
|
|
|
2021-09-01 21:28:47 +00:00
|
|
|
func (l LeaseCountQuota) allow(_ context.Context, _ *Request) (Response, error) {
|
2020-06-26 21:13:16 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l LeaseCountQuota) quotaID() string {
|
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l LeaseCountQuota) QuotaName() string {
|
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l LeaseCountQuota) initialize(logger log.Logger, sink *metricsutil.ClusterMetricSink) error {
|
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2021-09-01 21:28:47 +00:00
|
|
|
func (l LeaseCountQuota) close(_ context.Context) error {
|
2020-06-26 21:13:16 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l LeaseCountQuota) handleRemount(s string) {
|
|
|
|
panic("implement me")
|
|
|
|
}
|