Documentation ¶
Index ¶
- func ExecuteOwnerTests(createStore func() store.ResourceStore)
- func ExecuteStoreTests(createStore func() store.ResourceStore)
- type FailingStore
- func (f *FailingStore) Create(context.Context, model.Resource, ...core_store.CreateOptionsFunc) error
- func (f *FailingStore) Delete(context.Context, model.Resource, ...core_store.DeleteOptionsFunc) error
- func (f *FailingStore) Get(context.Context, model.Resource, ...core_store.GetOptionsFunc) error
- func (f *FailingStore) List(context.Context, model.ResourceList, ...core_store.ListOptionsFunc) error
- func (f *FailingStore) Update(context.Context, model.Resource, ...core_store.UpdateOptionsFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteOwnerTests ¶
func ExecuteOwnerTests( createStore func() store.ResourceStore, )
func ExecuteStoreTests ¶
func ExecuteStoreTests( createStore func() store.ResourceStore, )
Types ¶
type FailingStore ¶
type FailingStore struct {
Err error
}
func (*FailingStore) Create ¶
func (f *FailingStore) Create(context.Context, model.Resource, ...core_store.CreateOptionsFunc) error
func (*FailingStore) Delete ¶
func (f *FailingStore) Delete(context.Context, model.Resource, ...core_store.DeleteOptionsFunc) error
func (*FailingStore) Get ¶
func (f *FailingStore) Get(context.Context, model.Resource, ...core_store.GetOptionsFunc) error
func (*FailingStore) List ¶
func (f *FailingStore) List(context.Context, model.ResourceList, ...core_store.ListOptionsFunc) error
func (*FailingStore) Update ¶
func (f *FailingStore) Update(context.Context, model.Resource, ...core_store.UpdateOptionsFunc) error
Click to show internal directories.
Click to hide internal directories.