Documentation ¶
Overview ¶
Package storetest provides the utility functions of config store for testing. Shouldn't be imported outside of the test.
Index ¶
- func SetupStoreForTest(data ...string) (store.Store, error)
- type Memstore
- func (m *Memstore) Delete(k store.Key)
- func (m *Memstore) Get(key store.Key) (*store.BackEndResource, error)
- func (m *Memstore) Init(kinds []string) error
- func (m *Memstore) List() map[store.Key]*store.BackEndResource
- func (m *Memstore) Put(r *store.BackEndResource)
- func (m *Memstore) Stop()
- func (m *Memstore) Watch() (<-chan store.BackendEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Memstore ¶
type Memstore struct {
// contains filtered or unexported fields
}
Memstore is an on-memory store backend. Used only for testing.
func (*Memstore) List ¶
func (m *Memstore) List() map[store.Key]*store.BackEndResource
List implements store.Backend interface.
func (*Memstore) Put ¶
func (m *Memstore) Put(r *store.BackEndResource)
Put adds a new resource to the memstore.
Click to show internal directories.
Click to hide internal directories.