storage

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	Stores   map[string]storage.Store
	OpenErr  error
	CloseErr error
}

MockProvider is a mock edge storage provider that can hold several stores, not just one.

func (*MockProvider) Close

func (m *MockProvider) Close() error

Close all stores.

func (*MockProvider) GetOpenStores

func (m *MockProvider) GetOpenStores() []storage.Store

GetOpenStores is not implemented.

func (*MockProvider) GetStoreConfig

func (m *MockProvider) GetStoreConfig(_ string) (storage.StoreConfiguration, error)

GetStoreConfig is not implemented.

func (*MockProvider) OpenStore

func (m *MockProvider) OpenStore(name string) (storage.Store, error)

OpenStore opens the store.

func (*MockProvider) SetStoreConfig

func (m *MockProvider) SetStoreConfig(_ string, _ storage.StoreConfiguration) error

SetStoreConfig is not implemented.

Jump to

Keyboard shortcuts

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