-
Notifications
You must be signed in to change notification settings - Fork 0
/
filters.go
32 lines (26 loc) · 916 Bytes
/
filters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package mockstore
import (
"context"
"github.com/sensu/sensu-go/backend/store"
"github.com/sensu/sensu-go/types"
)
// DeleteEventFilterByName ...
func (s *MockStore) DeleteEventFilterByName(ctx context.Context, name string) error {
args := s.Called(ctx, name)
return args.Error(0)
}
// GetEventFilters ...
func (s *MockStore) GetEventFilters(ctx context.Context, pred *store.SelectionPredicate) ([]*types.EventFilter, error) {
args := s.Called(ctx, pred)
return args.Get(0).([]*types.EventFilter), args.Error(1)
}
// GetEventFilterByName ...
func (s *MockStore) GetEventFilterByName(ctx context.Context, name string) (*types.EventFilter, error) {
args := s.Called(ctx, name)
return args.Get(0).(*types.EventFilter), args.Error(1)
}
// UpdateEventFilter ...
func (s *MockStore) UpdateEventFilter(ctx context.Context, filter *types.EventFilter) error {
args := s.Called(filter)
return args.Error(0)
}