Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/compactor/deletion/noop_delete_requests_store.go

45 lines
1.2 KiB

package deletion
import (
"context"
)
func NewNoOpDeleteRequestsStore() DeleteRequestsStore {
return &noOpDeleteRequestsStore{}
}
type noOpDeleteRequestsStore struct{}
func (d *noOpDeleteRequestsStore) AddDeleteRequestGroup(_ context.Context, _ []DeleteRequest) ([]DeleteRequest, error) {
return nil, nil
}
func (d *noOpDeleteRequestsStore) GetDeleteRequestsByStatus(_ context.Context, _ DeleteRequestStatus) ([]DeleteRequest, error) {
return nil, nil
}
func (d *noOpDeleteRequestsStore) GetAllDeleteRequestsForUser(_ context.Context, _ string) ([]DeleteRequest, error) {
return nil, nil
}
func (d *noOpDeleteRequestsStore) UpdateStatus(_ context.Context, _ DeleteRequest, _ DeleteRequestStatus) error {
return nil
}
func (d *noOpDeleteRequestsStore) GetDeleteRequestGroup(_ context.Context, _, _ string) ([]DeleteRequest, error) {
return nil, nil
}
func (d *noOpDeleteRequestsStore) RemoveDeleteRequests(_ context.Context, _ []DeleteRequest) error {
return nil
}
func (d *noOpDeleteRequestsStore) GetCacheGenerationNumber(_ context.Context, _ string) (string, error) {
return "", nil
}
func (d *noOpDeleteRequestsStore) Stop() {}
func (d *noOpDeleteRequestsStore) Name() string {
return ""
}