2019-09-23 15:56:30 +00:00
|
|
|
package influxdb
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
// Predicate is something that can match on a series key.
|
|
|
|
type Predicate interface {
|
2020-01-08 21:18:09 +00:00
|
|
|
Clone() Predicate
|
2019-09-23 15:56:30 +00:00
|
|
|
Matches(key []byte) bool
|
|
|
|
Marshal() ([]byte, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteService will delete a bucket from the range and predict.
|
|
|
|
type DeleteService interface {
|
2020-08-24 17:08:46 +00:00
|
|
|
DeleteBucketRangePredicate(ctx context.Context, orgID, bucketID ID, min, max int64, pred Predicate) error
|
2019-09-23 15:56:30 +00:00
|
|
|
}
|