Documentation ¶
Index ¶
- type BoltDB
- type CleanedTest
- type TestStore
- func (s *TestStore) BucketEntries(topic string, alertID string) (keys []string, exists bool, err error)
- func (s *TestStore) Close() error
- func (s *TestStore) CloseBolt() error
- func (s *TestStore) Diagnostic() storage.Diagnostic
- func (s *TestStore) Path() string
- func (s *TestStore) Register(name string, store storage.StoreActioner)
- func (s *TestStore) Store(name string) storage.Interface
- func (s *TestStore) Versions() storage.Versions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶ added in v1.7.0
BoltDB is a database that deletes itself when closed
func NewBolt ¶ added in v1.7.0
func NewBolt(t CleanedTest) (*BoltDB, error)
NewBolt is an in-memory db that deletes itself when closed, do not use except for testing.
type CleanedTest ¶ added in v1.7.0
type CleanedTest interface {
TempDir() string
}
type TestStore ¶
type TestStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(t CleanedTest, diagnostic storage.Diagnostic) *TestStore
func (*TestStore) BucketEntries ¶ added in v1.7.0
func (*TestStore) Diagnostic ¶ added in v1.7.0
func (s *TestStore) Diagnostic() storage.Diagnostic
Click to show internal directories.
Click to hide internal directories.