client

package
v2.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTenantAwareInventoryClient

type MockTenantAwareInventoryClient struct {
	mock.Mock
}

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

Close provides a mock function with no fields

func (*MockTenantAwareInventoryClient) Create

Create provides a mock function with given fields: ctx, tenantID, res

func (*MockTenantAwareInventoryClient) Delete

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 (*MockTenantAwareInventoryClient) Find

Find provides a mock function with given fields: _a0, _a1

func (*MockTenantAwareInventoryClient) FindAll

FindAll provides a mock function with given fields: _a0, _a1

func (*MockTenantAwareInventoryClient) Get

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

GetSitesPerRegion provides a mock function with given fields: _a0, _a1

func (*MockTenantAwareInventoryClient) GetTreeHierarchy

GetTreeHierarchy provides a mock function with given fields: _a0, _a1

func (*MockTenantAwareInventoryClient) List

List provides a mock function with given fields: _a0, _a1

func (*MockTenantAwareInventoryClient) ListAll

ListAll provides a mock function with given fields: _a0, _a1

func (*MockTenantAwareInventoryClient) ListInheritedTelemetryProfiles

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

TestingOnlySetClient provides a mock function with given fields: _a0

func (*MockTenantAwareInventoryClient) Update

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

type MockTenantAwareInventoryClient_Close_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_Close_Call) Run

func (*MockTenantAwareInventoryClient_Close_Call) RunAndReturn

type MockTenantAwareInventoryClient_Create_Call

type MockTenantAwareInventoryClient_Create_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_Create_Call) Run

type MockTenantAwareInventoryClient_DeleteAllResources_Call

type MockTenantAwareInventoryClient_DeleteAllResources_Call struct {
	*mock.Call
}

MockTenantAwareInventoryClient_DeleteAllResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllResources'

func (*MockTenantAwareInventoryClient_DeleteAllResources_Call) Return

func (*MockTenantAwareInventoryClient_DeleteAllResources_Call) Run

type MockTenantAwareInventoryClient_Delete_Call

type MockTenantAwareInventoryClient_Delete_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_Delete_Call) Run

type MockTenantAwareInventoryClient_Expecter

type MockTenantAwareInventoryClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockTenantAwareInventoryClient_Expecter) Close

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

TestGetClientCache is a helper method to define mock.On call

func (*MockTenantAwareInventoryClient_Expecter) TestGetClientCacheUUID

TestGetClientCacheUUID is a helper method to define mock.On call

func (*MockTenantAwareInventoryClient_Expecter) TestingOnlySetClient

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

type MockTenantAwareInventoryClient_FindAll_Call struct {
	*mock.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

type MockTenantAwareInventoryClient_Find_Call

type MockTenantAwareInventoryClient_Find_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_Find_Call) Run

type MockTenantAwareInventoryClient_GetHostByUUID_Call

type MockTenantAwareInventoryClient_GetHostByUUID_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_GetHostByUUID_Call) Run

func (*MockTenantAwareInventoryClient_GetHostByUUID_Call) RunAndReturn

type MockTenantAwareInventoryClient_GetSitesPerRegion_Call

type MockTenantAwareInventoryClient_GetSitesPerRegion_Call struct {
	*mock.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

type MockTenantAwareInventoryClient_GetTreeHierarchy_Call

type MockTenantAwareInventoryClient_GetTreeHierarchy_Call struct {
	*mock.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

type MockTenantAwareInventoryClient_Get_Call

type MockTenantAwareInventoryClient_Get_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_Get_Call) Run

func (*MockTenantAwareInventoryClient_Get_Call) RunAndReturn

type MockTenantAwareInventoryClient_ListAll_Call

type MockTenantAwareInventoryClient_ListAll_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_ListAll_Call) Run

type MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call

type MockTenantAwareInventoryClient_ListInheritedTelemetryProfiles_Call struct {
	*mock.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

type MockTenantAwareInventoryClient_List_Call

type MockTenantAwareInventoryClient_List_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_List_Call) Run

type MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call

type MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call struct {
	*mock.Call
}

MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestGetClientCacheUUID'

func (*MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) Return

func (*MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) Run

func (*MockTenantAwareInventoryClient_TestGetClientCacheUUID_Call) RunAndReturn

type MockTenantAwareInventoryClient_TestGetClientCache_Call

type MockTenantAwareInventoryClient_TestGetClientCache_Call struct {
	*mock.Call
}

MockTenantAwareInventoryClient_TestGetClientCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestGetClientCache'

func (*MockTenantAwareInventoryClient_TestGetClientCache_Call) Return

func (*MockTenantAwareInventoryClient_TestGetClientCache_Call) Run

func (*MockTenantAwareInventoryClient_TestGetClientCache_Call) RunAndReturn

type MockTenantAwareInventoryClient_TestingOnlySetClient_Call

type MockTenantAwareInventoryClient_TestingOnlySetClient_Call struct {
	*mock.Call
}

MockTenantAwareInventoryClient_TestingOnlySetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestingOnlySetClient'

func (*MockTenantAwareInventoryClient_TestingOnlySetClient_Call) Return

func (*MockTenantAwareInventoryClient_TestingOnlySetClient_Call) Run

func (*MockTenantAwareInventoryClient_TestingOnlySetClient_Call) RunAndReturn

type MockTenantAwareInventoryClient_UpdateSubscriptions_Call

type MockTenantAwareInventoryClient_UpdateSubscriptions_Call struct {
	*mock.Call
}

MockTenantAwareInventoryClient_UpdateSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSubscriptions'

func (*MockTenantAwareInventoryClient_UpdateSubscriptions_Call) Return

func (*MockTenantAwareInventoryClient_UpdateSubscriptions_Call) Run

func (*MockTenantAwareInventoryClient_UpdateSubscriptions_Call) RunAndReturn

type MockTenantAwareInventoryClient_Update_Call

type MockTenantAwareInventoryClient_Update_Call struct {
	*mock.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 (*MockTenantAwareInventoryClient_Update_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL