Documentation
¶
Index ¶
- type JSONEntity
- type Storage
- func (_m *Storage) Create(ctx context.Context, ve datastore.VersionedJSONEntity) error
- func (_m *Storage) Delete(ctx context.Context, ve datastore.VersionedJSONEntity) error
- func (_m *Storage) Find(ctx context.Context, filter map[string]interface{}, paging *v1.Paging, ...) (*uint64, error)
- func (_m *Storage) Get(ctx context.Context, id string, ve datastore.VersionedJSONEntity) error
- func (_m *Storage) GetHistory(ctx context.Context, id string, at time.Time, ve datastore.VersionedJSONEntity) error
- func (_m *Storage) Update(ctx context.Context, ve datastore.VersionedJSONEntity) error
- type VersionedEntity
- type VersionedJSONEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONEntity ¶ added in v0.9.0
JSONEntity is an autogenerated mock type for the JSONEntity type
func NewJSONEntity ¶ added in v0.9.0
func NewJSONEntity(t mockConstructorTestingTNewJSONEntity) *JSONEntity
NewJSONEntity creates a new instance of JSONEntity. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*JSONEntity) JSONField ¶ added in v0.9.0
func (_m *JSONEntity) JSONField() string
JSONField provides a mock function with given fields:
func (*JSONEntity) Schema ¶ added in v0.9.0
func (_m *JSONEntity) Schema() string
Schema provides a mock function with given fields:
func (*JSONEntity) TableName ¶ added in v0.9.0
func (_m *JSONEntity) TableName() string
TableName provides a mock function with given fields:
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶ added in v0.9.0
func NewStorage(t mockConstructorTestingTNewStorage) *Storage
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Storage) Find ¶
func (_m *Storage) Find(ctx context.Context, filter map[string]interface{}, paging *v1.Paging, result interface{}) (*uint64, error)
Find provides a mock function with given fields: ctx, filter, paging, result
type VersionedEntity ¶ added in v0.9.0
VersionedEntity is an autogenerated mock type for the VersionedEntity type
func NewVersionedEntity ¶ added in v0.9.0
func NewVersionedEntity(t mockConstructorTestingTNewVersionedEntity) *VersionedEntity
NewVersionedEntity creates a new instance of VersionedEntity. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*VersionedEntity) APIVersion ¶ added in v0.9.0
func (_m *VersionedEntity) APIVersion() string
APIVersion provides a mock function with given fields:
func (*VersionedEntity) GetMeta ¶ added in v0.9.0
func (_m *VersionedEntity) GetMeta() *v1.Meta
GetMeta provides a mock function with given fields:
func (*VersionedEntity) Kind ¶ added in v0.9.0
func (_m *VersionedEntity) Kind() string
Kind provides a mock function with given fields:
type VersionedJSONEntity ¶ added in v0.9.0
VersionedJSONEntity is an autogenerated mock type for the VersionedJSONEntity type
func NewVersionedJSONEntity ¶ added in v0.9.0
func NewVersionedJSONEntity(t mockConstructorTestingTNewVersionedJSONEntity) *VersionedJSONEntity
NewVersionedJSONEntity creates a new instance of VersionedJSONEntity. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*VersionedJSONEntity) APIVersion ¶ added in v0.9.0
func (_m *VersionedJSONEntity) APIVersion() string
APIVersion provides a mock function with given fields:
func (*VersionedJSONEntity) GetMeta ¶ added in v0.9.0
func (_m *VersionedJSONEntity) GetMeta() *v1.Meta
GetMeta provides a mock function with given fields:
func (*VersionedJSONEntity) JSONField ¶ added in v0.9.0
func (_m *VersionedJSONEntity) JSONField() string
JSONField provides a mock function with given fields:
func (*VersionedJSONEntity) Kind ¶ added in v0.9.0
func (_m *VersionedJSONEntity) Kind() string
Kind provides a mock function with given fields:
func (*VersionedJSONEntity) Schema ¶ added in v0.9.0
func (_m *VersionedJSONEntity) Schema() string
Schema provides a mock function with given fields:
func (*VersionedJSONEntity) TableName ¶ added in v0.9.0
func (_m *VersionedJSONEntity) TableName() string
TableName provides a mock function with given fields: