-
Notifications
You must be signed in to change notification settings - Fork 0
/
status_store.go
37 lines (29 loc) · 1.42 KB
/
status_store.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
33
34
35
36
37
package unimplemented
import (
"context"
v1 "github.com/lusis/statusthing/gen/go/statusthing/v1"
"github.com/lusis/statusthing/internal/filters"
"github.com/lusis/statusthing/internal/serrors"
)
// StatusStore stores [statusthingv1.Status]
type StatusStore struct{}
// StoreStatus stores the provided [statusthingv1.Status]
func (ss *StatusStore) StoreStatus(ctx context.Context, status *v1.Status) (*v1.Status, error) { // nolint: revive
return nil, serrors.ErrNotImplemented
}
// GetStatus gets a [statusthingv1.CustomStatus] by its unique id
func (ss *StatusStore) GetStatus(ctx context.Context, statusID string) (*v1.Status, error) { // nolint: revive
return nil, serrors.ErrNotImplemented
}
// FindStatus returns all know [statusthingv1.Status] optionally filtered by the provided [filters.FilterOption]
func (ss *StatusStore) FindStatus(ctx context.Context, opts ...filters.FilterOption) ([]*v1.Status, error) { // nolint: revive
return nil, serrors.ErrNotImplemented
}
// UpdateStatus updates the [statusthingv1.Status] by id with the provided [filters.FilterOption]
func (ss *StatusStore) UpdateStatus(ctx context.Context, statusID string, opts ...filters.FilterOption) error { // nolint:revive
return serrors.ErrNotImplemented
}
// DeleteStatus deletes a [statusthingv1.Status] by its id
func (css *StatusStore) DeleteStatus(ctx context.Context, statusID string) error { // nolint:revive
return serrors.ErrNotImplemented
}