Documentation
¶
Index ¶
- type MockClient
- func (_m *MockClient) Apply(ctx context.Context, obj runtime.ApplyConfiguration, ...) error
- func (_m *MockClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *MockClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *MockClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *MockClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_m *MockClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_m *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *MockClient) RESTMapper() meta.RESTMapper
- func (_m *MockClient) Scheme() *runtime.Scheme
- func (_m *MockClient) Status() client.SubResourceWriter
- func (_m *MockClient) SubResource(subResource string) client.SubResourceClient
- func (_m *MockClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type MockClient_Apply_Call
- type MockClient_Create_Call
- func (_c *MockClient_Create_Call) Return(_a0 error) *MockClient_Create_Call
- func (_c *MockClient_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *MockClient_Create_Call
- func (_c *MockClient_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *MockClient_Create_Call
- type MockClient_DeleteAllOf_Call
- func (_c *MockClient_DeleteAllOf_Call) Return(_a0 error) *MockClient_DeleteAllOf_Call
- func (_c *MockClient_DeleteAllOf_Call) Run(...) *MockClient_DeleteAllOf_Call
- func (_c *MockClient_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *MockClient_DeleteAllOf_Call
- type MockClient_Delete_Call
- func (_c *MockClient_Delete_Call) Return(_a0 error) *MockClient_Delete_Call
- func (_c *MockClient_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *MockClient_Delete_Call
- func (_c *MockClient_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *MockClient_Delete_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Apply_Call
- func (_e *MockClient_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Create_Call
- func (_e *MockClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Delete_Call
- func (_e *MockClient_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_DeleteAllOf_Call
- func (_e *MockClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockClient_Get_Call
- func (_e *MockClient_Expecter) GroupVersionKindFor(obj interface{}) *MockClient_GroupVersionKindFor_Call
- func (_e *MockClient_Expecter) IsObjectNamespaced(obj interface{}) *MockClient_IsObjectNamespaced_Call
- func (_e *MockClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockClient_List_Call
- func (_e *MockClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockClient_Patch_Call
- func (_e *MockClient_Expecter) RESTMapper() *MockClient_RESTMapper_Call
- func (_e *MockClient_Expecter) Scheme() *MockClient_Scheme_Call
- func (_e *MockClient_Expecter) Status() *MockClient_Status_Call
- func (_e *MockClient_Expecter) SubResource(subResource interface{}) *MockClient_SubResource_Call
- func (_e *MockClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Update_Call
- type MockClient_Get_Call
- type MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *MockClient_GroupVersionKindFor_Call
- type MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *MockClient_IsObjectNamespaced_Call
- type MockClient_List_Call
- type MockClient_Patch_Call
- type MockClient_RESTMapper_Call
- type MockClient_Scheme_Call
- type MockClient_Status_Call
- type MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) Return(_a0 client.SubResourceClient) *MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *MockClient_SubResource_Call
- type MockClient_Update_Call
- func (_c *MockClient_Update_Call) Return(_a0 error) *MockClient_Update_Call
- func (_c *MockClient_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *MockClient_Update_Call
- func (_c *MockClient_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *MockClient_Update_Call
- type MockSubResourceWriter
- func (_m *MockSubResourceWriter) Apply(ctx context.Context, obj runtime.ApplyConfiguration, ...) error
- func (_m *MockSubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *MockSubResourceWriter) EXPECT() *MockSubResourceWriter_Expecter
- func (_m *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
- type MockSubResourceWriter_Apply_Call
- func (_c *MockSubResourceWriter_Apply_Call) Return(_a0 error) *MockSubResourceWriter_Apply_Call
- func (_c *MockSubResourceWriter_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, ...)) *MockSubResourceWriter_Apply_Call
- func (_c *MockSubResourceWriter_Apply_Call) RunAndReturn(...) *MockSubResourceWriter_Apply_Call
- type MockSubResourceWriter_Create_Call
- func (_c *MockSubResourceWriter_Create_Call) Return(_a0 error) *MockSubResourceWriter_Create_Call
- func (_c *MockSubResourceWriter_Create_Call) Run(...) *MockSubResourceWriter_Create_Call
- func (_c *MockSubResourceWriter_Create_Call) RunAndReturn(run func(context.Context, client.Object, client.Object, ...) error) *MockSubResourceWriter_Create_Call
- type MockSubResourceWriter_Expecter
- func (_e *MockSubResourceWriter_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *MockSubResourceWriter_Apply_Call
- func (_e *MockSubResourceWriter_Expecter) Create(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *MockSubResourceWriter_Create_Call
- func (_e *MockSubResourceWriter_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockSubResourceWriter_Patch_Call
- func (_e *MockSubResourceWriter_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockSubResourceWriter_Update_Call
- type MockSubResourceWriter_Patch_Call
- func (_c *MockSubResourceWriter_Patch_Call) Return(_a0 error) *MockSubResourceWriter_Patch_Call
- func (_c *MockSubResourceWriter_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, ...)) *MockSubResourceWriter_Patch_Call
- func (_c *MockSubResourceWriter_Patch_Call) RunAndReturn(...) *MockSubResourceWriter_Patch_Call
- type MockSubResourceWriter_Update_Call
- type MockTenantAwareInventoryClient
- func (_m *MockTenantAwareInventoryClient) Close() error
- func (_m *MockTenantAwareInventoryClient) Create(ctx context.Context, tenantID string, res *inventoryv1.Resource) (*inventoryv1.Resource, error)
- func (_m *MockTenantAwareInventoryClient) Delete(ctx context.Context, tenantID string, id string) (*inventoryv1.DeleteResourceResponse, error)
- func (_m *MockTenantAwareInventoryClient) DeleteAllResources(ctx context.Context, tenantID string, kind inventoryv1.ResourceKind, ...) error
- func (_m *MockTenantAwareInventoryClient) EXPECT() *MockTenantAwareInventoryClient_Expecter
- func (_m *MockTenantAwareInventoryClient) Find(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) (*inventoryv1.FindResourcesResponse, error)
- func (_m *MockTenantAwareInventoryClient) FindAll(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) ([]*inventoryv1.FindResourcesResponse_ResourceTenantIDCarrier, error)
- func (_m *MockTenantAwareInventoryClient) Get(ctx context.Context, tenantID string, id string) (*inventoryv1.GetResourceResponse, error)
- func (_m *MockTenantAwareInventoryClient) GetHostByUUID(ctx context.Context, tenantID string, uuid string) (*computev1.HostResource, error)
- func (_m *MockTenantAwareInventoryClient) GetSitesPerRegion(_a0 context.Context, _a1 *inventoryv1.GetSitesPerRegionRequest) (*inventoryv1.GetSitesPerRegionResponse, error)
- func (_m *MockTenantAwareInventoryClient) GetTreeHierarchy(_a0 context.Context, _a1 *inventoryv1.GetTreeHierarchyRequest) ([]*inventoryv1.GetTreeHierarchyResponse_TreeNode, error)
- func (_m *MockTenantAwareInventoryClient) List(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) (*inventoryv1.ListResourcesResponse, error)
- func (_m *MockTenantAwareInventoryClient) ListAll(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) ([]*inventoryv1.Resource, error)
- func (_m *MockTenantAwareInventoryClient) ListInheritedTelemetryProfiles(ctx context.Context, tenantID string, ...) (*inventoryv1.ListInheritedTelemetryProfilesResponse, error)
- func (_m *MockTenantAwareInventoryClient) TestGetClientCache() *cache.InventoryCache
- func (_m *MockTenantAwareInventoryClient) TestGetClientCacheUUID() *cache.InventoryCache
- func (_m *MockTenantAwareInventoryClient) TestingOnlySetClient(_a0 inventoryv1.InventoryServiceClient)
- func (_m *MockTenantAwareInventoryClient) Update(ctx context.Context, tenantID string, id string, fm *fieldmaskpb.FieldMask, ...) (*inventoryv1.Resource, error)
- func (_m *MockTenantAwareInventoryClient) UpdateSubscriptions(ctx context.Context, tenantID string, kinds []inventoryv1.ResourceKind) error
- type MockTenantAwareInventoryClient_Close_Call
- func (_c *MockTenantAwareInventoryClient_Close_Call) Return(_a0 error) *MockTenantAwareInventoryClient_Close_Call
- func (_c *MockTenantAwareInventoryClient_Close_Call) Run(run func()) *MockTenantAwareInventoryClient_Close_Call
- func (_c *MockTenantAwareInventoryClient_Close_Call) RunAndReturn(run func() error) *MockTenantAwareInventoryClient_Close_Call
- type MockTenantAwareInventoryClient_Create_Call
- func (_c *MockTenantAwareInventoryClient_Create_Call) Return(_a0 *inventoryv1.Resource, _a1 error) *MockTenantAwareInventoryClient_Create_Call
- func (_c *MockTenantAwareInventoryClient_Create_Call) Run(run func(ctx context.Context, tenantID string, res *inventoryv1.Resource)) *MockTenantAwareInventoryClient_Create_Call
- func (_c *MockTenantAwareInventoryClient_Create_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_Create_Call
- type MockTenantAwareInventoryClient_DeleteAllResources_Call
- func (_c *MockTenantAwareInventoryClient_DeleteAllResources_Call) Return(_a0 error) *MockTenantAwareInventoryClient_DeleteAllResources_Call
- func (_c *MockTenantAwareInventoryClient_DeleteAllResources_Call) Run(...) *MockTenantAwareInventoryClient_DeleteAllResources_Call
- func (_c *MockTenantAwareInventoryClient_DeleteAllResources_Call) RunAndReturn(run func(context.Context, string, inventoryv1.ResourceKind, bool) error) *MockTenantAwareInventoryClient_DeleteAllResources_Call
- type MockTenantAwareInventoryClient_Delete_Call
- func (_c *MockTenantAwareInventoryClient_Delete_Call) Return(_a0 *inventoryv1.DeleteResourceResponse, _a1 error) *MockTenantAwareInventoryClient_Delete_Call
- func (_c *MockTenantAwareInventoryClient_Delete_Call) Run(run func(ctx context.Context, tenantID string, id string)) *MockTenantAwareInventoryClient_Delete_Call
- func (_c *MockTenantAwareInventoryClient_Delete_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_Delete_Call
- type MockTenantAwareInventoryClient_Expecter
- func (_e *MockTenantAwareInventoryClient_Expecter) Close() *MockTenantAwareInventoryClient_Close_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) Create(ctx interface{}, tenantID interface{}, res interface{}) *MockTenantAwareInventoryClient_Create_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) Delete(ctx interface{}, tenantID interface{}, id interface{}) *MockTenantAwareInventoryClient_Delete_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) DeleteAllResources(ctx interface{}, tenantID interface{}, kind interface{}, enforce interface{}) *MockTenantAwareInventoryClient_DeleteAllResources_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) Find(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_Find_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) FindAll(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_FindAll_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) Get(ctx interface{}, tenantID interface{}, id interface{}) *MockTenantAwareInventoryClient_Get_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) GetHostByUUID(ctx interface{}, tenantID interface{}, uuid interface{}) *MockTenantAwareInventoryClient_GetHostByUUID_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) GetSitesPerRegion(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) GetTreeHierarchy(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) List(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_List_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) ListAll(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_ListAll_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) ListInheritedTelemetryProfiles(ctx interface{}, tenantID interface{}, inheritBy interface{}, ...) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) TestGetClientCache() *MockTenantAwareInventoryClient_TestGetClientCache_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) TestGetClientCacheUUID() *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) TestingOnlySetClient(_a0 interface{}) *MockTenantAwareInventoryClient_TestingOnlySetClient_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) Update(ctx interface{}, tenantID interface{}, id interface{}, fm interface{}, ...) *MockTenantAwareInventoryClient_Update_Call
- func (_e *MockTenantAwareInventoryClient_Expecter) UpdateSubscriptions(ctx interface{}, tenantID interface{}, kinds interface{}) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
- type MockTenantAwareInventoryClient_FindAll_Call
- func (_c *MockTenantAwareInventoryClient_FindAll_Call) Return(_a0 []*inventoryv1.FindResourcesResponse_ResourceTenantIDCarrier, _a1 error) *MockTenantAwareInventoryClient_FindAll_Call
- func (_c *MockTenantAwareInventoryClient_FindAll_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_FindAll_Call
- func (_c *MockTenantAwareInventoryClient_FindAll_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_FindAll_Call
- type MockTenantAwareInventoryClient_Find_Call
- func (_c *MockTenantAwareInventoryClient_Find_Call) Return(_a0 *inventoryv1.FindResourcesResponse, _a1 error) *MockTenantAwareInventoryClient_Find_Call
- func (_c *MockTenantAwareInventoryClient_Find_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_Find_Call
- func (_c *MockTenantAwareInventoryClient_Find_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_Find_Call
- type MockTenantAwareInventoryClient_GetHostByUUID_Call
- func (_c *MockTenantAwareInventoryClient_GetHostByUUID_Call) Return(_a0 *computev1.HostResource, _a1 error) *MockTenantAwareInventoryClient_GetHostByUUID_Call
- func (_c *MockTenantAwareInventoryClient_GetHostByUUID_Call) Run(run func(ctx context.Context, tenantID string, uuid string)) *MockTenantAwareInventoryClient_GetHostByUUID_Call
- func (_c *MockTenantAwareInventoryClient_GetHostByUUID_Call) RunAndReturn(run func(context.Context, string, string) (*computev1.HostResource, error)) *MockTenantAwareInventoryClient_GetHostByUUID_Call
- type MockTenantAwareInventoryClient_GetSitesPerRegion_Call
- func (_c *MockTenantAwareInventoryClient_GetSitesPerRegion_Call) Return(_a0 *inventoryv1.GetSitesPerRegionResponse, _a1 error) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
- func (_c *MockTenantAwareInventoryClient_GetSitesPerRegion_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.GetSitesPerRegionRequest)) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
- func (_c *MockTenantAwareInventoryClient_GetSitesPerRegion_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
- type MockTenantAwareInventoryClient_GetTreeHierarchy_Call
- func (_c *MockTenantAwareInventoryClient_GetTreeHierarchy_Call) Return(_a0 []*inventoryv1.GetTreeHierarchyResponse_TreeNode, _a1 error) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
- func (_c *MockTenantAwareInventoryClient_GetTreeHierarchy_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.GetTreeHierarchyRequest)) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
- func (_c *MockTenantAwareInventoryClient_GetTreeHierarchy_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
- type MockTenantAwareInventoryClient_Get_Call
- func (_c *MockTenantAwareInventoryClient_Get_Call) Return(_a0 *inventoryv1.GetResourceResponse, _a1 error) *MockTenantAwareInventoryClient_Get_Call
- func (_c *MockTenantAwareInventoryClient_Get_Call) Run(run func(ctx context.Context, tenantID string, id string)) *MockTenantAwareInventoryClient_Get_Call
- func (_c *MockTenantAwareInventoryClient_Get_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_Get_Call
- type MockTenantAwareInventoryClient_ListAll_Call
- func (_c *MockTenantAwareInventoryClient_ListAll_Call) Return(_a0 []*inventoryv1.Resource, _a1 error) *MockTenantAwareInventoryClient_ListAll_Call
- func (_c *MockTenantAwareInventoryClient_ListAll_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_ListAll_Call
- func (_c *MockTenantAwareInventoryClient_ListAll_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_ListAll_Call
- type MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
- func (_c *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) Return(_a0 *inventoryv1.ListInheritedTelemetryProfilesResponse, _a1 error) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
- func (_c *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) Run(run func(ctx context.Context, tenantID string, ...)) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
- func (_c *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
- type MockTenantAwareInventoryClient_List_Call
- func (_c *MockTenantAwareInventoryClient_List_Call) Return(_a0 *inventoryv1.ListResourcesResponse, _a1 error) *MockTenantAwareInventoryClient_List_Call
- func (_c *MockTenantAwareInventoryClient_List_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_List_Call
- func (_c *MockTenantAwareInventoryClient_List_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_List_Call
- type MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
- func (_c *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) Return(_a0 *cache.InventoryCache) *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
- func (_c *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) Run(run func()) *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
- func (_c *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) RunAndReturn(run func() *cache.InventoryCache) *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
- type MockTenantAwareInventoryClient_TestGetClientCache_Call
- func (_c *MockTenantAwareInventoryClient_TestGetClientCache_Call) Return(_a0 *cache.InventoryCache) *MockTenantAwareInventoryClient_TestGetClientCache_Call
- func (_c *MockTenantAwareInventoryClient_TestGetClientCache_Call) Run(run func()) *MockTenantAwareInventoryClient_TestGetClientCache_Call
- func (_c *MockTenantAwareInventoryClient_TestGetClientCache_Call) RunAndReturn(run func() *cache.InventoryCache) *MockTenantAwareInventoryClient_TestGetClientCache_Call
- type MockTenantAwareInventoryClient_TestingOnlySetClient_Call
- func (_c *MockTenantAwareInventoryClient_TestingOnlySetClient_Call) Return() *MockTenantAwareInventoryClient_TestingOnlySetClient_Call
- func (_c *MockTenantAwareInventoryClient_TestingOnlySetClient_Call) Run(run func(_a0 inventoryv1.InventoryServiceClient)) *MockTenantAwareInventoryClient_TestingOnlySetClient_Call
- func (_c *MockTenantAwareInventoryClient_TestingOnlySetClient_Call) RunAndReturn(run func(inventoryv1.InventoryServiceClient)) *MockTenantAwareInventoryClient_TestingOnlySetClient_Call
- type MockTenantAwareInventoryClient_UpdateSubscriptions_Call
- func (_c *MockTenantAwareInventoryClient_UpdateSubscriptions_Call) Return(_a0 error) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
- func (_c *MockTenantAwareInventoryClient_UpdateSubscriptions_Call) Run(...) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
- func (_c *MockTenantAwareInventoryClient_UpdateSubscriptions_Call) RunAndReturn(run func(context.Context, string, []inventoryv1.ResourceKind) error) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
- type MockTenantAwareInventoryClient_Update_Call
- func (_c *MockTenantAwareInventoryClient_Update_Call) Return(_a0 *inventoryv1.Resource, _a1 error) *MockTenantAwareInventoryClient_Update_Call
- func (_c *MockTenantAwareInventoryClient_Update_Call) Run(...) *MockTenantAwareInventoryClient_Update_Call
- func (_c *MockTenantAwareInventoryClient_Update_Call) RunAndReturn(...) *MockTenantAwareInventoryClient_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockClient
NewMockClient creates a new instance of MockClient. 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 (*MockClient) Apply ¶
func (_m *MockClient) Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption) error
Apply provides a mock function with given fields: ctx, obj, opts
func (*MockClient) Create ¶
func (_m *MockClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
Create provides a mock function with given fields: ctx, obj, opts
func (*MockClient) Delete ¶
func (_m *MockClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
Delete provides a mock function with given fields: ctx, obj, opts
func (*MockClient) DeleteAllOf ¶
func (_m *MockClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: ctx, obj, opts
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) Get ¶
func (_m *MockClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*MockClient) GroupVersionKindFor ¶
func (_m *MockClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
GroupVersionKindFor provides a mock function with given fields: obj
func (*MockClient) IsObjectNamespaced ¶
func (_m *MockClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
IsObjectNamespaced provides a mock function with given fields: obj
func (*MockClient) List ¶
func (_m *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*MockClient) Patch ¶
func (_m *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*MockClient) RESTMapper ¶
func (_m *MockClient) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function with no fields
func (*MockClient) Scheme ¶
func (_m *MockClient) Scheme() *runtime.Scheme
Scheme provides a mock function with no fields
func (*MockClient) Status ¶
func (_m *MockClient) Status() client.SubResourceWriter
Status provides a mock function with no fields
func (*MockClient) SubResource ¶
func (_m *MockClient) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource
func (*MockClient) Update ¶
func (_m *MockClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts
type MockClient_Apply_Call ¶
MockClient_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockClient_Apply_Call) Return ¶
func (_c *MockClient_Apply_Call) Return(_a0 error) *MockClient_Apply_Call
func (*MockClient_Apply_Call) Run ¶
func (_c *MockClient_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption)) *MockClient_Apply_Call
func (*MockClient_Apply_Call) RunAndReturn ¶
func (_c *MockClient_Apply_Call) RunAndReturn(run func(context.Context, runtime.ApplyConfiguration, ...client.ApplyOption) error) *MockClient_Apply_Call
type MockClient_Create_Call ¶
MockClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockClient_Create_Call) Return ¶
func (_c *MockClient_Create_Call) Return(_a0 error) *MockClient_Create_Call
func (*MockClient_Create_Call) Run ¶
func (_c *MockClient_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *MockClient_Create_Call
func (*MockClient_Create_Call) RunAndReturn ¶
func (_c *MockClient_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *MockClient_Create_Call
type MockClient_DeleteAllOf_Call ¶
MockClient_DeleteAllOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllOf'
func (*MockClient_DeleteAllOf_Call) Return ¶
func (_c *MockClient_DeleteAllOf_Call) Return(_a0 error) *MockClient_DeleteAllOf_Call
func (*MockClient_DeleteAllOf_Call) Run ¶
func (_c *MockClient_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *MockClient_DeleteAllOf_Call
func (*MockClient_DeleteAllOf_Call) RunAndReturn ¶
func (_c *MockClient_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *MockClient_DeleteAllOf_Call
type MockClient_Delete_Call ¶
MockClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockClient_Delete_Call) Return ¶
func (_c *MockClient_Delete_Call) Return(_a0 error) *MockClient_Delete_Call
func (*MockClient_Delete_Call) Run ¶
func (_c *MockClient_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *MockClient_Delete_Call
func (*MockClient_Delete_Call) RunAndReturn ¶
func (_c *MockClient_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *MockClient_Delete_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) Apply ¶
func (_e *MockClient_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- obj runtime.ApplyConfiguration
- opts ...client.ApplyOption
func (*MockClient_Expecter) Create ¶
func (_e *MockClient_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.CreateOption
func (*MockClient_Expecter) Delete ¶
func (_e *MockClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteOption
func (*MockClient_Expecter) DeleteAllOf ¶
func (_e *MockClient_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_DeleteAllOf_Call
DeleteAllOf is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteAllOfOption
func (*MockClient_Expecter) Get ¶
func (_e *MockClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockClient_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- obj client.Object
- opts ...client.GetOption
func (*MockClient_Expecter) GroupVersionKindFor ¶
func (_e *MockClient_Expecter) GroupVersionKindFor(obj interface{}) *MockClient_GroupVersionKindFor_Call
GroupVersionKindFor is a helper method to define mock.On call
- obj runtime.Object
func (*MockClient_Expecter) IsObjectNamespaced ¶
func (_e *MockClient_Expecter) IsObjectNamespaced(obj interface{}) *MockClient_IsObjectNamespaced_Call
IsObjectNamespaced is a helper method to define mock.On call
- obj runtime.Object
func (*MockClient_Expecter) List ¶
func (_e *MockClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockClient_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*MockClient_Expecter) Patch ¶
func (_e *MockClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockClient_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.PatchOption
func (*MockClient_Expecter) RESTMapper ¶
func (_e *MockClient_Expecter) RESTMapper() *MockClient_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*MockClient_Expecter) Scheme ¶
func (_e *MockClient_Expecter) Scheme() *MockClient_Scheme_Call
Scheme is a helper method to define mock.On call
func (*MockClient_Expecter) Status ¶
func (_e *MockClient_Expecter) Status() *MockClient_Status_Call
Status is a helper method to define mock.On call
func (*MockClient_Expecter) SubResource ¶
func (_e *MockClient_Expecter) SubResource(subResource interface{}) *MockClient_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
func (*MockClient_Expecter) Update ¶
func (_e *MockClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.UpdateOption
type MockClient_Get_Call ¶
MockClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockClient_Get_Call) Return ¶
func (_c *MockClient_Get_Call) Return(_a0 error) *MockClient_Get_Call
func (*MockClient_Get_Call) Run ¶
func (_c *MockClient_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *MockClient_Get_Call
func (*MockClient_Get_Call) RunAndReturn ¶
func (_c *MockClient_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *MockClient_Get_Call
type MockClient_GroupVersionKindFor_Call ¶
MockClient_GroupVersionKindFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupVersionKindFor'
func (*MockClient_GroupVersionKindFor_Call) Return ¶
func (_c *MockClient_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *MockClient_GroupVersionKindFor_Call
func (*MockClient_GroupVersionKindFor_Call) Run ¶
func (_c *MockClient_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *MockClient_GroupVersionKindFor_Call
func (*MockClient_GroupVersionKindFor_Call) RunAndReturn ¶
func (_c *MockClient_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *MockClient_GroupVersionKindFor_Call
type MockClient_IsObjectNamespaced_Call ¶
MockClient_IsObjectNamespaced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjectNamespaced'
func (*MockClient_IsObjectNamespaced_Call) Return ¶
func (_c *MockClient_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *MockClient_IsObjectNamespaced_Call
func (*MockClient_IsObjectNamespaced_Call) Run ¶
func (_c *MockClient_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *MockClient_IsObjectNamespaced_Call
func (*MockClient_IsObjectNamespaced_Call) RunAndReturn ¶
func (_c *MockClient_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *MockClient_IsObjectNamespaced_Call
type MockClient_List_Call ¶
MockClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockClient_List_Call) Return ¶
func (_c *MockClient_List_Call) Return(_a0 error) *MockClient_List_Call
func (*MockClient_List_Call) Run ¶
func (_c *MockClient_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *MockClient_List_Call
func (*MockClient_List_Call) RunAndReturn ¶
func (_c *MockClient_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *MockClient_List_Call
type MockClient_Patch_Call ¶
MockClient_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*MockClient_Patch_Call) Return ¶
func (_c *MockClient_Patch_Call) Return(_a0 error) *MockClient_Patch_Call
func (*MockClient_Patch_Call) Run ¶
func (_c *MockClient_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *MockClient_Patch_Call
func (*MockClient_Patch_Call) RunAndReturn ¶
func (_c *MockClient_Patch_Call) RunAndReturn(run func(context.Context, client.Object, client.Patch, ...client.PatchOption) error) *MockClient_Patch_Call
type MockClient_RESTMapper_Call ¶
MockClient_RESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTMapper'
func (*MockClient_RESTMapper_Call) Return ¶
func (_c *MockClient_RESTMapper_Call) Return(_a0 meta.RESTMapper) *MockClient_RESTMapper_Call
func (*MockClient_RESTMapper_Call) Run ¶
func (_c *MockClient_RESTMapper_Call) Run(run func()) *MockClient_RESTMapper_Call
func (*MockClient_RESTMapper_Call) RunAndReturn ¶
func (_c *MockClient_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *MockClient_RESTMapper_Call
type MockClient_Scheme_Call ¶
MockClient_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*MockClient_Scheme_Call) Return ¶
func (_c *MockClient_Scheme_Call) Return(_a0 *runtime.Scheme) *MockClient_Scheme_Call
func (*MockClient_Scheme_Call) Run ¶
func (_c *MockClient_Scheme_Call) Run(run func()) *MockClient_Scheme_Call
func (*MockClient_Scheme_Call) RunAndReturn ¶
func (_c *MockClient_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *MockClient_Scheme_Call
type MockClient_Status_Call ¶
MockClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockClient_Status_Call) Return ¶
func (_c *MockClient_Status_Call) Return(_a0 client.SubResourceWriter) *MockClient_Status_Call
func (*MockClient_Status_Call) Run ¶
func (_c *MockClient_Status_Call) Run(run func()) *MockClient_Status_Call
func (*MockClient_Status_Call) RunAndReturn ¶
func (_c *MockClient_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *MockClient_Status_Call
type MockClient_SubResource_Call ¶
MockClient_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*MockClient_SubResource_Call) Return ¶
func (_c *MockClient_SubResource_Call) Return(_a0 client.SubResourceClient) *MockClient_SubResource_Call
func (*MockClient_SubResource_Call) Run ¶
func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call
func (*MockClient_SubResource_Call) RunAndReturn ¶
func (_c *MockClient_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *MockClient_SubResource_Call
type MockClient_Update_Call ¶
MockClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockClient_Update_Call) Return ¶
func (_c *MockClient_Update_Call) Return(_a0 error) *MockClient_Update_Call
func (*MockClient_Update_Call) Run ¶
func (_c *MockClient_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *MockClient_Update_Call
func (*MockClient_Update_Call) RunAndReturn ¶
func (_c *MockClient_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *MockClient_Update_Call
type MockSubResourceWriter ¶
MockSubResourceWriter is an autogenerated mock type for the SubResourceWriter type
func NewMockSubResourceWriter ¶
func NewMockSubResourceWriter(t interface {
mock.TestingT
Cleanup(func())
}) *MockSubResourceWriter
NewMockSubResourceWriter creates a new instance of MockSubResourceWriter. 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 (*MockSubResourceWriter) Apply ¶
func (_m *MockSubResourceWriter) Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.SubResourceApplyOption) error
Apply provides a mock function with given fields: ctx, obj, opts
func (*MockSubResourceWriter) Create ¶
func (_m *MockSubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
Create provides a mock function with given fields: ctx, obj, subResource, opts
func (*MockSubResourceWriter) EXPECT ¶
func (_m *MockSubResourceWriter) EXPECT() *MockSubResourceWriter_Expecter
func (*MockSubResourceWriter) Patch ¶
func (_m *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*MockSubResourceWriter) Update ¶
func (_m *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts
type MockSubResourceWriter_Apply_Call ¶
MockSubResourceWriter_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockSubResourceWriter_Apply_Call) Return ¶
func (_c *MockSubResourceWriter_Apply_Call) Return(_a0 error) *MockSubResourceWriter_Apply_Call
func (*MockSubResourceWriter_Apply_Call) Run ¶
func (_c *MockSubResourceWriter_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.SubResourceApplyOption)) *MockSubResourceWriter_Apply_Call
func (*MockSubResourceWriter_Apply_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Apply_Call) RunAndReturn(run func(context.Context, runtime.ApplyConfiguration, ...client.SubResourceApplyOption) error) *MockSubResourceWriter_Apply_Call
type MockSubResourceWriter_Create_Call ¶
MockSubResourceWriter_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockSubResourceWriter_Create_Call) Return ¶
func (_c *MockSubResourceWriter_Create_Call) Return(_a0 error) *MockSubResourceWriter_Create_Call
func (*MockSubResourceWriter_Create_Call) Run ¶
func (_c *MockSubResourceWriter_Create_Call) Run(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption)) *MockSubResourceWriter_Create_Call
func (*MockSubResourceWriter_Create_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Create_Call) RunAndReturn(run func(context.Context, client.Object, client.Object, ...client.SubResourceCreateOption) error) *MockSubResourceWriter_Create_Call
type MockSubResourceWriter_Expecter ¶
type MockSubResourceWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSubResourceWriter_Expecter) Apply ¶
func (_e *MockSubResourceWriter_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *MockSubResourceWriter_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- obj runtime.ApplyConfiguration
- opts ...client.SubResourceApplyOption
func (*MockSubResourceWriter_Expecter) Create ¶
func (_e *MockSubResourceWriter_Expecter) Create(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *MockSubResourceWriter_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- subResource client.Object
- opts ...client.SubResourceCreateOption
func (*MockSubResourceWriter_Expecter) Patch ¶
func (_e *MockSubResourceWriter_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockSubResourceWriter_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.SubResourcePatchOption
func (*MockSubResourceWriter_Expecter) Update ¶
func (_e *MockSubResourceWriter_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockSubResourceWriter_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.SubResourceUpdateOption
type MockSubResourceWriter_Patch_Call ¶
MockSubResourceWriter_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*MockSubResourceWriter_Patch_Call) Return ¶
func (_c *MockSubResourceWriter_Patch_Call) Return(_a0 error) *MockSubResourceWriter_Patch_Call
func (*MockSubResourceWriter_Patch_Call) Run ¶
func (_c *MockSubResourceWriter_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption)) *MockSubResourceWriter_Patch_Call
func (*MockSubResourceWriter_Patch_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Patch_Call) RunAndReturn(run func(context.Context, client.Object, client.Patch, ...client.SubResourcePatchOption) error) *MockSubResourceWriter_Patch_Call
type MockSubResourceWriter_Update_Call ¶
MockSubResourceWriter_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockSubResourceWriter_Update_Call) Return ¶
func (_c *MockSubResourceWriter_Update_Call) Return(_a0 error) *MockSubResourceWriter_Update_Call
func (*MockSubResourceWriter_Update_Call) Run ¶
func (_c *MockSubResourceWriter_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption)) *MockSubResourceWriter_Update_Call
func (*MockSubResourceWriter_Update_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.SubResourceUpdateOption) error) *MockSubResourceWriter_Update_Call
type MockTenantAwareInventoryClient ¶
MockTenantAwareInventoryClient is an autogenerated mock type for the TenantAwareInventoryClient type
func NewMockTenantAwareInventoryClient ¶
func NewMockTenantAwareInventoryClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockTenantAwareInventoryClient
NewMockTenantAwareInventoryClient creates a new instance of MockTenantAwareInventoryClient. 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 (*MockTenantAwareInventoryClient) Close ¶
func (_m *MockTenantAwareInventoryClient) Close() error
Close provides a mock function with no fields
func (*MockTenantAwareInventoryClient) Create ¶
func (_m *MockTenantAwareInventoryClient) Create(ctx context.Context, tenantID string, res *inventoryv1.Resource) (*inventoryv1.Resource, error)
Create provides a mock function with given fields: ctx, tenantID, res
func (*MockTenantAwareInventoryClient) Delete ¶
func (_m *MockTenantAwareInventoryClient) Delete(ctx context.Context, tenantID string, id string) (*inventoryv1.DeleteResourceResponse, error)
Delete provides a mock function with given fields: ctx, tenantID, id
func (*MockTenantAwareInventoryClient) DeleteAllResources ¶
func (_m *MockTenantAwareInventoryClient) DeleteAllResources(ctx context.Context, tenantID string, kind inventoryv1.ResourceKind, enforce bool) error
DeleteAllResources provides a mock function with given fields: ctx, tenantID, kind, enforce
func (*MockTenantAwareInventoryClient) EXPECT ¶
func (_m *MockTenantAwareInventoryClient) EXPECT() *MockTenantAwareInventoryClient_Expecter
func (*MockTenantAwareInventoryClient) Find ¶
func (_m *MockTenantAwareInventoryClient) Find(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) (*inventoryv1.FindResourcesResponse, error)
Find provides a mock function with given fields: _a0, _a1
func (*MockTenantAwareInventoryClient) FindAll ¶
func (_m *MockTenantAwareInventoryClient) FindAll(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) ([]*inventoryv1.FindResourcesResponse_ResourceTenantIDCarrier, error)
FindAll provides a mock function with given fields: _a0, _a1
func (*MockTenantAwareInventoryClient) Get ¶
func (_m *MockTenantAwareInventoryClient) Get(ctx context.Context, tenantID string, id string) (*inventoryv1.GetResourceResponse, error)
Get provides a mock function with given fields: ctx, tenantID, id
func (*MockTenantAwareInventoryClient) GetHostByUUID ¶
func (_m *MockTenantAwareInventoryClient) GetHostByUUID(ctx context.Context, tenantID string, uuid string) (*computev1.HostResource, error)
GetHostByUUID provides a mock function with given fields: ctx, tenantID, uuid
func (*MockTenantAwareInventoryClient) GetSitesPerRegion ¶
func (_m *MockTenantAwareInventoryClient) GetSitesPerRegion(_a0 context.Context, _a1 *inventoryv1.GetSitesPerRegionRequest) (*inventoryv1.GetSitesPerRegionResponse, error)
GetSitesPerRegion provides a mock function with given fields: _a0, _a1
func (*MockTenantAwareInventoryClient) GetTreeHierarchy ¶
func (_m *MockTenantAwareInventoryClient) GetTreeHierarchy(_a0 context.Context, _a1 *inventoryv1.GetTreeHierarchyRequest) ([]*inventoryv1.GetTreeHierarchyResponse_TreeNode, error)
GetTreeHierarchy provides a mock function with given fields: _a0, _a1
func (*MockTenantAwareInventoryClient) List ¶
func (_m *MockTenantAwareInventoryClient) List(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) (*inventoryv1.ListResourcesResponse, error)
List provides a mock function with given fields: _a0, _a1
func (*MockTenantAwareInventoryClient) ListAll ¶
func (_m *MockTenantAwareInventoryClient) ListAll(_a0 context.Context, _a1 *inventoryv1.ResourceFilter) ([]*inventoryv1.Resource, error)
ListAll provides a mock function with given fields: _a0, _a1
func (*MockTenantAwareInventoryClient) ListInheritedTelemetryProfiles ¶
func (_m *MockTenantAwareInventoryClient) ListInheritedTelemetryProfiles(ctx context.Context, tenantID string, inheritBy *inventoryv1.ListInheritedTelemetryProfilesRequest_InheritBy, filter string, orderBy string, limit uint32, offset uint32) (*inventoryv1.ListInheritedTelemetryProfilesResponse, error)
ListInheritedTelemetryProfiles provides a mock function with given fields: ctx, tenantID, inheritBy, filter, orderBy, limit, offset
func (*MockTenantAwareInventoryClient) TestGetClientCache ¶
func (_m *MockTenantAwareInventoryClient) TestGetClientCache() *cache.InventoryCache
TestGetClientCache provides a mock function with no fields
func (*MockTenantAwareInventoryClient) TestGetClientCacheUUID ¶
func (_m *MockTenantAwareInventoryClient) TestGetClientCacheUUID() *cache.InventoryCache
TestGetClientCacheUUID provides a mock function with no fields
func (*MockTenantAwareInventoryClient) TestingOnlySetClient ¶
func (_m *MockTenantAwareInventoryClient) TestingOnlySetClient(_a0 inventoryv1.InventoryServiceClient)
TestingOnlySetClient provides a mock function with given fields: _a0
func (*MockTenantAwareInventoryClient) Update ¶
func (_m *MockTenantAwareInventoryClient) Update(ctx context.Context, tenantID string, id string, fm *fieldmaskpb.FieldMask, res *inventoryv1.Resource) (*inventoryv1.Resource, error)
Update provides a mock function with given fields: ctx, tenantID, id, fm, res
func (*MockTenantAwareInventoryClient) UpdateSubscriptions ¶
func (_m *MockTenantAwareInventoryClient) UpdateSubscriptions(ctx context.Context, tenantID string, kinds []inventoryv1.ResourceKind) error
UpdateSubscriptions provides a mock function with given fields: ctx, tenantID, kinds
type MockTenantAwareInventoryClient_Close_Call ¶
MockTenantAwareInventoryClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockTenantAwareInventoryClient_Close_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_Close_Call) Return(_a0 error) *MockTenantAwareInventoryClient_Close_Call
func (*MockTenantAwareInventoryClient_Close_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_Close_Call) Run(run func()) *MockTenantAwareInventoryClient_Close_Call
func (*MockTenantAwareInventoryClient_Close_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_Close_Call) RunAndReturn(run func() error) *MockTenantAwareInventoryClient_Close_Call
type MockTenantAwareInventoryClient_Create_Call ¶
MockTenantAwareInventoryClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockTenantAwareInventoryClient_Create_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_Create_Call) Return(_a0 *inventoryv1.Resource, _a1 error) *MockTenantAwareInventoryClient_Create_Call
func (*MockTenantAwareInventoryClient_Create_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_Create_Call) Run(run func(ctx context.Context, tenantID string, res *inventoryv1.Resource)) *MockTenantAwareInventoryClient_Create_Call
func (*MockTenantAwareInventoryClient_Create_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_Create_Call) RunAndReturn(run func(context.Context, string, *inventoryv1.Resource) (*inventoryv1.Resource, error)) *MockTenantAwareInventoryClient_Create_Call
type MockTenantAwareInventoryClient_DeleteAllResources_Call ¶
MockTenantAwareInventoryClient_DeleteAllResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllResources'
func (*MockTenantAwareInventoryClient_DeleteAllResources_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_DeleteAllResources_Call) Run(run func(ctx context.Context, tenantID string, kind inventoryv1.ResourceKind, enforce bool)) *MockTenantAwareInventoryClient_DeleteAllResources_Call
func (*MockTenantAwareInventoryClient_DeleteAllResources_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_DeleteAllResources_Call) RunAndReturn(run func(context.Context, string, inventoryv1.ResourceKind, bool) error) *MockTenantAwareInventoryClient_DeleteAllResources_Call
type MockTenantAwareInventoryClient_Delete_Call ¶
MockTenantAwareInventoryClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockTenantAwareInventoryClient_Delete_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_Delete_Call) Return(_a0 *inventoryv1.DeleteResourceResponse, _a1 error) *MockTenantAwareInventoryClient_Delete_Call
func (*MockTenantAwareInventoryClient_Delete_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_Delete_Call) Run(run func(ctx context.Context, tenantID string, id string)) *MockTenantAwareInventoryClient_Delete_Call
func (*MockTenantAwareInventoryClient_Delete_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_Delete_Call) RunAndReturn(run func(context.Context, string, string) (*inventoryv1.DeleteResourceResponse, error)) *MockTenantAwareInventoryClient_Delete_Call
type MockTenantAwareInventoryClient_Expecter ¶
type MockTenantAwareInventoryClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTenantAwareInventoryClient_Expecter) Close ¶
func (_e *MockTenantAwareInventoryClient_Expecter) Close() *MockTenantAwareInventoryClient_Close_Call
Close is a helper method to define mock.On call
func (*MockTenantAwareInventoryClient_Expecter) Create ¶
func (_e *MockTenantAwareInventoryClient_Expecter) Create(ctx interface{}, tenantID interface{}, res interface{}) *MockTenantAwareInventoryClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- res *inventoryv1.Resource
func (*MockTenantAwareInventoryClient_Expecter) Delete ¶
func (_e *MockTenantAwareInventoryClient_Expecter) Delete(ctx interface{}, tenantID interface{}, id interface{}) *MockTenantAwareInventoryClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- id string
func (*MockTenantAwareInventoryClient_Expecter) DeleteAllResources ¶
func (_e *MockTenantAwareInventoryClient_Expecter) DeleteAllResources(ctx interface{}, tenantID interface{}, kind interface{}, enforce interface{}) *MockTenantAwareInventoryClient_DeleteAllResources_Call
DeleteAllResources is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- kind inventoryv1.ResourceKind
- enforce bool
func (*MockTenantAwareInventoryClient_Expecter) Find ¶
func (_e *MockTenantAwareInventoryClient_Expecter) Find(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 *inventoryv1.ResourceFilter
func (*MockTenantAwareInventoryClient_Expecter) FindAll ¶
func (_e *MockTenantAwareInventoryClient_Expecter) FindAll(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_FindAll_Call
FindAll is a helper method to define mock.On call
- _a0 context.Context
- _a1 *inventoryv1.ResourceFilter
func (*MockTenantAwareInventoryClient_Expecter) Get ¶
func (_e *MockTenantAwareInventoryClient_Expecter) Get(ctx interface{}, tenantID interface{}, id interface{}) *MockTenantAwareInventoryClient_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- id string
func (*MockTenantAwareInventoryClient_Expecter) GetHostByUUID ¶
func (_e *MockTenantAwareInventoryClient_Expecter) GetHostByUUID(ctx interface{}, tenantID interface{}, uuid interface{}) *MockTenantAwareInventoryClient_GetHostByUUID_Call
GetHostByUUID is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- uuid string
func (*MockTenantAwareInventoryClient_Expecter) GetSitesPerRegion ¶
func (_e *MockTenantAwareInventoryClient_Expecter) GetSitesPerRegion(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
GetSitesPerRegion is a helper method to define mock.On call
- _a0 context.Context
- _a1 *inventoryv1.GetSitesPerRegionRequest
func (*MockTenantAwareInventoryClient_Expecter) GetTreeHierarchy ¶
func (_e *MockTenantAwareInventoryClient_Expecter) GetTreeHierarchy(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
GetTreeHierarchy is a helper method to define mock.On call
- _a0 context.Context
- _a1 *inventoryv1.GetTreeHierarchyRequest
func (*MockTenantAwareInventoryClient_Expecter) List ¶
func (_e *MockTenantAwareInventoryClient_Expecter) List(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 *inventoryv1.ResourceFilter
func (*MockTenantAwareInventoryClient_Expecter) ListAll ¶
func (_e *MockTenantAwareInventoryClient_Expecter) ListAll(_a0 interface{}, _a1 interface{}) *MockTenantAwareInventoryClient_ListAll_Call
ListAll is a helper method to define mock.On call
- _a0 context.Context
- _a1 *inventoryv1.ResourceFilter
func (*MockTenantAwareInventoryClient_Expecter) ListInheritedTelemetryProfiles ¶
func (_e *MockTenantAwareInventoryClient_Expecter) ListInheritedTelemetryProfiles(ctx interface{}, tenantID interface{}, inheritBy interface{}, filter interface{}, orderBy interface{}, limit interface{}, offset interface{}) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
ListInheritedTelemetryProfiles is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- inheritBy *inventoryv1.ListInheritedTelemetryProfilesRequest_InheritBy
- filter string
- orderBy string
- limit uint32
- offset uint32
func (*MockTenantAwareInventoryClient_Expecter) TestGetClientCache ¶
func (_e *MockTenantAwareInventoryClient_Expecter) TestGetClientCache() *MockTenantAwareInventoryClient_TestGetClientCache_Call
TestGetClientCache is a helper method to define mock.On call
func (*MockTenantAwareInventoryClient_Expecter) TestGetClientCacheUUID ¶
func (_e *MockTenantAwareInventoryClient_Expecter) TestGetClientCacheUUID() *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
TestGetClientCacheUUID is a helper method to define mock.On call
func (*MockTenantAwareInventoryClient_Expecter) TestingOnlySetClient ¶
func (_e *MockTenantAwareInventoryClient_Expecter) TestingOnlySetClient(_a0 interface{}) *MockTenantAwareInventoryClient_TestingOnlySetClient_Call
TestingOnlySetClient is a helper method to define mock.On call
- _a0 inventoryv1.InventoryServiceClient
func (*MockTenantAwareInventoryClient_Expecter) Update ¶
func (_e *MockTenantAwareInventoryClient_Expecter) Update(ctx interface{}, tenantID interface{}, id interface{}, fm interface{}, res interface{}) *MockTenantAwareInventoryClient_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- id string
- fm *fieldmaskpb.FieldMask
- res *inventoryv1.Resource
func (*MockTenantAwareInventoryClient_Expecter) UpdateSubscriptions ¶
func (_e *MockTenantAwareInventoryClient_Expecter) UpdateSubscriptions(ctx interface{}, tenantID interface{}, kinds interface{}) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
UpdateSubscriptions is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- kinds []inventoryv1.ResourceKind
type MockTenantAwareInventoryClient_FindAll_Call ¶
MockTenantAwareInventoryClient_FindAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindAll'
func (*MockTenantAwareInventoryClient_FindAll_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_FindAll_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_FindAll_Call
func (*MockTenantAwareInventoryClient_FindAll_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_FindAll_Call) RunAndReturn(run func(context.Context, *inventoryv1.ResourceFilter) ([]*inventoryv1.FindResourcesResponse_ResourceTenantIDCarrier, error)) *MockTenantAwareInventoryClient_FindAll_Call
type MockTenantAwareInventoryClient_Find_Call ¶
MockTenantAwareInventoryClient_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockTenantAwareInventoryClient_Find_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_Find_Call) Return(_a0 *inventoryv1.FindResourcesResponse, _a1 error) *MockTenantAwareInventoryClient_Find_Call
func (*MockTenantAwareInventoryClient_Find_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_Find_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_Find_Call
func (*MockTenantAwareInventoryClient_Find_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_Find_Call) RunAndReturn(run func(context.Context, *inventoryv1.ResourceFilter) (*inventoryv1.FindResourcesResponse, error)) *MockTenantAwareInventoryClient_Find_Call
type MockTenantAwareInventoryClient_GetHostByUUID_Call ¶
MockTenantAwareInventoryClient_GetHostByUUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHostByUUID'
func (*MockTenantAwareInventoryClient_GetHostByUUID_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_GetHostByUUID_Call) Return(_a0 *computev1.HostResource, _a1 error) *MockTenantAwareInventoryClient_GetHostByUUID_Call
func (*MockTenantAwareInventoryClient_GetHostByUUID_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_GetHostByUUID_Call) Run(run func(ctx context.Context, tenantID string, uuid string)) *MockTenantAwareInventoryClient_GetHostByUUID_Call
func (*MockTenantAwareInventoryClient_GetHostByUUID_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_GetHostByUUID_Call) RunAndReturn(run func(context.Context, string, string) (*computev1.HostResource, error)) *MockTenantAwareInventoryClient_GetHostByUUID_Call
type MockTenantAwareInventoryClient_GetSitesPerRegion_Call ¶
MockTenantAwareInventoryClient_GetSitesPerRegion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSitesPerRegion'
func (*MockTenantAwareInventoryClient_GetSitesPerRegion_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_GetSitesPerRegion_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.GetSitesPerRegionRequest)) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
func (*MockTenantAwareInventoryClient_GetSitesPerRegion_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_GetSitesPerRegion_Call) RunAndReturn(run func(context.Context, *inventoryv1.GetSitesPerRegionRequest) (*inventoryv1.GetSitesPerRegionResponse, error)) *MockTenantAwareInventoryClient_GetSitesPerRegion_Call
type MockTenantAwareInventoryClient_GetTreeHierarchy_Call ¶
MockTenantAwareInventoryClient_GetTreeHierarchy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTreeHierarchy'
func (*MockTenantAwareInventoryClient_GetTreeHierarchy_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_GetTreeHierarchy_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.GetTreeHierarchyRequest)) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
func (*MockTenantAwareInventoryClient_GetTreeHierarchy_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_GetTreeHierarchy_Call) RunAndReturn(run func(context.Context, *inventoryv1.GetTreeHierarchyRequest) ([]*inventoryv1.GetTreeHierarchyResponse_TreeNode, error)) *MockTenantAwareInventoryClient_GetTreeHierarchy_Call
type MockTenantAwareInventoryClient_Get_Call ¶
MockTenantAwareInventoryClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockTenantAwareInventoryClient_Get_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_Get_Call) Return(_a0 *inventoryv1.GetResourceResponse, _a1 error) *MockTenantAwareInventoryClient_Get_Call
func (*MockTenantAwareInventoryClient_Get_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_Get_Call) Run(run func(ctx context.Context, tenantID string, id string)) *MockTenantAwareInventoryClient_Get_Call
func (*MockTenantAwareInventoryClient_Get_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_Get_Call) RunAndReturn(run func(context.Context, string, string) (*inventoryv1.GetResourceResponse, error)) *MockTenantAwareInventoryClient_Get_Call
type MockTenantAwareInventoryClient_ListAll_Call ¶
MockTenantAwareInventoryClient_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'
func (*MockTenantAwareInventoryClient_ListAll_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_ListAll_Call) Return(_a0 []*inventoryv1.Resource, _a1 error) *MockTenantAwareInventoryClient_ListAll_Call
func (*MockTenantAwareInventoryClient_ListAll_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_ListAll_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_ListAll_Call
func (*MockTenantAwareInventoryClient_ListAll_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_ListAll_Call) RunAndReturn(run func(context.Context, *inventoryv1.ResourceFilter) ([]*inventoryv1.Resource, error)) *MockTenantAwareInventoryClient_ListAll_Call
type MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call ¶
MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInheritedTelemetryProfiles'
func (*MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) Run(run func(ctx context.Context, tenantID string, inheritBy *inventoryv1.ListInheritedTelemetryProfilesRequest_InheritBy, filter string, orderBy string, limit uint32, offset uint32)) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
func (*MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call) RunAndReturn(run func(context.Context, string, *inventoryv1.ListInheritedTelemetryProfilesRequest_InheritBy, string, string, uint32, uint32) (*inventoryv1.ListInheritedTelemetryProfilesResponse, error)) *MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call
type MockTenantAwareInventoryClient_List_Call ¶
MockTenantAwareInventoryClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockTenantAwareInventoryClient_List_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_List_Call) Return(_a0 *inventoryv1.ListResourcesResponse, _a1 error) *MockTenantAwareInventoryClient_List_Call
func (*MockTenantAwareInventoryClient_List_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_List_Call) Run(run func(_a0 context.Context, _a1 *inventoryv1.ResourceFilter)) *MockTenantAwareInventoryClient_List_Call
func (*MockTenantAwareInventoryClient_List_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_List_Call) RunAndReturn(run func(context.Context, *inventoryv1.ResourceFilter) (*inventoryv1.ListResourcesResponse, error)) *MockTenantAwareInventoryClient_List_Call
type MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call ¶
MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestGetClientCacheUUID'
func (*MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) Run(run func()) *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
func (*MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) RunAndReturn(run func() *cache.InventoryCache) *MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call
type MockTenantAwareInventoryClient_TestGetClientCache_Call ¶
MockTenantAwareInventoryClient_TestGetClientCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestGetClientCache'
func (*MockTenantAwareInventoryClient_TestGetClientCache_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_TestGetClientCache_Call) Run(run func()) *MockTenantAwareInventoryClient_TestGetClientCache_Call
func (*MockTenantAwareInventoryClient_TestGetClientCache_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_TestGetClientCache_Call) RunAndReturn(run func() *cache.InventoryCache) *MockTenantAwareInventoryClient_TestGetClientCache_Call
type MockTenantAwareInventoryClient_TestingOnlySetClient_Call ¶
MockTenantAwareInventoryClient_TestingOnlySetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestingOnlySetClient'
func (*MockTenantAwareInventoryClient_TestingOnlySetClient_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_TestingOnlySetClient_Call) RunAndReturn(run func(inventoryv1.InventoryServiceClient)) *MockTenantAwareInventoryClient_TestingOnlySetClient_Call
type MockTenantAwareInventoryClient_UpdateSubscriptions_Call ¶
MockTenantAwareInventoryClient_UpdateSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSubscriptions'
func (*MockTenantAwareInventoryClient_UpdateSubscriptions_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_UpdateSubscriptions_Call) Run(run func(ctx context.Context, tenantID string, kinds []inventoryv1.ResourceKind)) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
func (*MockTenantAwareInventoryClient_UpdateSubscriptions_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_UpdateSubscriptions_Call) RunAndReturn(run func(context.Context, string, []inventoryv1.ResourceKind) error) *MockTenantAwareInventoryClient_UpdateSubscriptions_Call
type MockTenantAwareInventoryClient_Update_Call ¶
MockTenantAwareInventoryClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockTenantAwareInventoryClient_Update_Call) Return ¶
func (_c *MockTenantAwareInventoryClient_Update_Call) Return(_a0 *inventoryv1.Resource, _a1 error) *MockTenantAwareInventoryClient_Update_Call
func (*MockTenantAwareInventoryClient_Update_Call) Run ¶
func (_c *MockTenantAwareInventoryClient_Update_Call) Run(run func(ctx context.Context, tenantID string, id string, fm *fieldmaskpb.FieldMask, res *inventoryv1.Resource)) *MockTenantAwareInventoryClient_Update_Call
func (*MockTenantAwareInventoryClient_Update_Call) RunAndReturn ¶
func (_c *MockTenantAwareInventoryClient_Update_Call) RunAndReturn(run func(context.Context, string, string, *fieldmaskpb.FieldMask, *inventoryv1.Resource) (*inventoryv1.Resource, error)) *MockTenantAwareInventoryClient_Update_Call