Documentation ¶
Index ¶
- type RelationService
- type RelationService_Create_Call
- func (_c *RelationService_Create_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, _a1 relation.RelationV2)) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_Create_Call
- type RelationService_Expecter
- type RelationTransformer
- type RelationTransformer_Expecter
- type RelationTransformer_TransformRelation_Call
- func (_c *RelationTransformer_TransformRelation_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationTransformer_TransformRelation_Call
- func (_c *RelationTransformer_TransformRelation_Call) Run(run func(ctx context.Context, rlt relation.RelationV2)) *RelationTransformer_TransformRelation_Call
- func (_c *RelationTransformer_TransformRelation_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationTransformer_TransformRelation_Call
- type ResourceService
- type ResourceService_Expecter
- type ResourceService_Upsert_Call
- func (_c *ResourceService_Upsert_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Upsert_Call
- func (_c *ResourceService_Upsert_Call) Run(run func(ctx context.Context, _a1 resource.Resource)) *ResourceService_Upsert_Call
- func (_c *ResourceService_Upsert_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RelationService ¶
RelationService is an autogenerated mock type for the RelationService type
func NewRelationService ¶
func NewRelationService(t interface { mock.TestingT Cleanup(func()) }) *RelationService
NewRelationService creates a new instance of RelationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RelationService) Create ¶
func (_m *RelationService) Create(ctx context.Context, _a1 relation.RelationV2) (relation.RelationV2, error)
Create provides a mock function with given fields: ctx, _a1
func (*RelationService) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Create_Call ¶
RelationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RelationService_Create_Call) Return ¶
func (_c *RelationService_Create_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_Create_Call
func (*RelationService_Create_Call) Run ¶
func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, _a1 relation.RelationV2)) *RelationService_Create_Call
func (*RelationService_Create_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_Create_Call
type RelationService_Expecter ¶
type RelationService_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationService_Expecter) Create ¶
func (_e *RelationService_Expecter) Create(ctx interface{}, _a1 interface{}) *RelationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 relation.RelationV2
type RelationTransformer ¶ added in v0.6.5
RelationTransformer is an autogenerated mock type for the RelationTransformer type
func NewRelationTransformer ¶ added in v0.6.5
func NewRelationTransformer(t interface { mock.TestingT Cleanup(func()) }) *RelationTransformer
NewRelationTransformer creates a new instance of RelationTransformer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RelationTransformer) EXPECT ¶ added in v0.6.5
func (_m *RelationTransformer) EXPECT() *RelationTransformer_Expecter
func (*RelationTransformer) TransformRelation ¶ added in v0.6.5
func (_m *RelationTransformer) TransformRelation(ctx context.Context, rlt relation.RelationV2) (relation.RelationV2, error)
TransformRelation provides a mock function with given fields: ctx, rlt
type RelationTransformer_Expecter ¶ added in v0.6.5
type RelationTransformer_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationTransformer_Expecter) TransformRelation ¶ added in v0.6.5
func (_e *RelationTransformer_Expecter) TransformRelation(ctx interface{}, rlt interface{}) *RelationTransformer_TransformRelation_Call
TransformRelation is a helper method to define mock.On call
- ctx context.Context
- rlt relation.RelationV2
type RelationTransformer_TransformRelation_Call ¶ added in v0.6.5
RelationTransformer_TransformRelation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformRelation'
func (*RelationTransformer_TransformRelation_Call) Return ¶ added in v0.6.5
func (_c *RelationTransformer_TransformRelation_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationTransformer_TransformRelation_Call
func (*RelationTransformer_TransformRelation_Call) Run ¶ added in v0.6.5
func (_c *RelationTransformer_TransformRelation_Call) Run(run func(ctx context.Context, rlt relation.RelationV2)) *RelationTransformer_TransformRelation_Call
func (*RelationTransformer_TransformRelation_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationTransformer_TransformRelation_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationTransformer_TransformRelation_Call
type ResourceService ¶
ResourceService is an autogenerated mock type for the ResourceService type
func NewResourceService ¶
func NewResourceService(t interface { mock.TestingT Cleanup(func()) }) *ResourceService
NewResourceService creates a new instance of ResourceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResourceService) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceService_Expecter) Upsert ¶ added in v0.6.21
func (_e *ResourceService_Expecter) Upsert(ctx interface{}, _a1 interface{}) *ResourceService_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- _a1 resource.Resource
type ResourceService_Upsert_Call ¶ added in v0.6.21
ResourceService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*ResourceService_Upsert_Call) Return ¶ added in v0.6.21
func (_c *ResourceService_Upsert_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Upsert_Call
func (*ResourceService_Upsert_Call) Run ¶ added in v0.6.21
func (_c *ResourceService_Upsert_Call) Run(run func(ctx context.Context, _a1 resource.Resource)) *ResourceService_Upsert_Call
func (*ResourceService_Upsert_Call) RunAndReturn ¶ added in v0.6.21
func (_c *ResourceService_Upsert_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Upsert_Call