mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
This PR introduces a no-op CensusManager in CE in an effort to simplify overall maintenance. Resolves: VAULT-27562 Enterprise PR: hashicorp/vault-enterprise#6231
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !enterprise
|
|
|
|
package vault
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
const utilizationBasePath = "utilization"
|
|
|
|
// CensusAgent is a stub for OSS
|
|
type CensusReporter interface{}
|
|
|
|
func (c *Core) BillingStart() time.Time { return time.Time{} }
|
|
func (c *Core) AutomatedLicenseReportingEnabled() bool { return false }
|
|
func (c *Core) CensusAgent() CensusReporter { return nil }
|
|
func (c *Core) teardownCensusManager() error { return nil }
|
|
func (c *Core) StartManualCensusSnapshots() {}
|
|
func (c *Core) ManualLicenseReportingEnabled() bool { return false }
|
|
func (c *Core) ManualCensusSnapshotInterval() time.Duration { return time.Duration(0) }
|
|
func (c *Core) ManualCensusSnapshotRetentionTime() time.Duration { return time.Duration(0) }
|
|
func (c *Core) StartCensusReports(ctx context.Context) {}
|
|
func (c *Core) SetRetentionMonths(months int) error { return nil }
|
|
func (c *Core) ReloadCensusManager(licenseChange bool) error { return nil }
|
|
func (c *Core) parseCensusManagerConfig(conf *CoreConfig) (CensusManagerConfig, error) {
|
|
return CensusManagerConfig{}, nil
|
|
}
|