Documentation ¶
Index ¶
- func ExecuteOwnerTests(createStore func() store.ResourceStore, storeName string)
- func ExecuteStoreTests(createStore func() store.ResourceStore, storeName string)
- func LoadResources(ctx context.Context, rs store.ResourceStore, inputs string) error
- func LoadResourcesFromFile(ctx context.Context, rs store.ResourceStore, fileName string) error
- 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, storeName string, )
func ExecuteStoreTests ¶
func ExecuteStoreTests( createStore func() store.ResourceStore, storeName string, )
func LoadResources ¶
func LoadResourcesFromFile ¶
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.