storage

package
v0.0.0-...-7b7c10a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 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(name 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(name string, config 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