storagetest

package
v1.7.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB added in v1.7.0

type BoltDB struct {
	*bolt.DB
}

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.

func (BoltDB) Close added in v1.7.0

func (b BoltDB) Close() error

func (BoltDB) Store added in v1.7.0

func (b BoltDB) Store(bucket string) storage.Interface

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 (s *TestStore) BucketEntries(topic string, alertID string) (keys []string, exists bool, err error)

func (*TestStore) Close added in v1.7.0

func (s *TestStore) Close() error

func (*TestStore) CloseBolt added in v1.7.0

func (s *TestStore) CloseBolt() error

func (*TestStore) Diagnostic added in v1.7.0

func (s *TestStore) Diagnostic() storage.Diagnostic

func (*TestStore) Path added in v1.7.0

func (s *TestStore) Path() string

func (*TestStore) Register added in v1.3.0

func (s *TestStore) Register(name string, store storage.StoreActioner)

func (*TestStore) Store

func (s *TestStore) Store(name string) storage.Interface

func (*TestStore) Versions added in v1.3.0

func (s *TestStore) Versions() storage.Versions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL