mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
720 B
Go
19 lines
720 B
Go
package annotationsimpl
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/annotations"
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
)
|
|
|
|
type store interface {
|
|
Add(ctx context.Context, item *annotations.Item) error
|
|
Update(ctx context.Context, item *annotations.Item) error
|
|
Get(ctx context.Context, query *annotations.ItemQuery) ([]*annotations.ItemDTO, error)
|
|
Delete(ctx context.Context, params *annotations.DeleteParams) error
|
|
GetTags(ctx context.Context, query *annotations.TagsQuery) (annotations.FindTagsResult, error)
|
|
CleanAnnotations(ctx context.Context, cfg setting.AnnotationCleanupSettings, annotationType string) (int64, error)
|
|
CleanOrphanedAnnotationTags(ctx context.Context) (int64, error)
|
|
}
|