Files
grafana/pkg/infra/usagestats/noop.go
T
Dana Axinte b4cd51810b SecretsManager: Various utils for usage insights, outbox and secretkeeper (#106010)
* SecretsManager: utils for usage insights on ST mode

Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>

* SecretsManager: add assert

Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>

* SecretsManager: Remove encryption scope option

Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>

* SecretsManager: add fake keeper

Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com>
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>

---------

Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>
2025-05-28 12:46:54 +01:00

18 lines
423 B
Go

package usagestats
import "context"
type NoopUsageStats struct{}
var _ Service = &NoopUsageStats{}
func (usm *NoopUsageStats) RegisterMetricsFunc(_ MetricsFunc) {}
func (usm *NoopUsageStats) GetUsageReport(_ context.Context) (Report, error) {
return Report{}, nil
}
func (usm *NoopUsageStats) RegisterSendReportCallback(_ SendReportCallbackFunc) {}
func (usm *NoopUsageStats) SetReadyToReport(_ context.Context) {}