automock

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusinessTenantMappingConverter

type BusinessTenantMappingConverter struct {
	mock.Mock
}

BusinessTenantMappingConverter is an autogenerated mock type for the BusinessTenantMappingConverter type

func NewBusinessTenantMappingConverter

func NewBusinessTenantMappingConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BusinessTenantMappingConverter

NewBusinessTenantMappingConverter creates a new instance of BusinessTenantMappingConverter. 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 (*BusinessTenantMappingConverter) InputFromGraphQL

func (_m *BusinessTenantMappingConverter) InputFromGraphQL(ctx context.Context, tnt graphql.BusinessTenantMappingInput, externalTenantToType map[string]string, retrieveTenantTypeFn func(context.Context, string) (string, error)) (model.BusinessTenantMappingInput, error)

InputFromGraphQL provides a mock function with given fields: ctx, tnt, externalTenantToType, retrieveTenantTypeFn

func (*BusinessTenantMappingConverter) MultipleInputFromGraphQL

func (_m *BusinessTenantMappingConverter) MultipleInputFromGraphQL(ctx context.Context, in []*graphql.BusinessTenantMappingInput, retrieveTenantTypeFn func(context.Context, string) (string, error)) ([]model.BusinessTenantMappingInput, error)

MultipleInputFromGraphQL provides a mock function with given fields: ctx, in, retrieveTenantTypeFn

func (*BusinessTenantMappingConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

func (*BusinessTenantMappingConverter) TenantAccessFromEntity

func (_m *BusinessTenantMappingConverter) TenantAccessFromEntity(in *repo.TenantAccess) *model.TenantAccess

TenantAccessFromEntity provides a mock function with given fields: in

func (*BusinessTenantMappingConverter) TenantAccessInputFromGraphQL

func (_m *BusinessTenantMappingConverter) TenantAccessInputFromGraphQL(in graphql.TenantAccessInput) (*model.TenantAccess, error)

TenantAccessInputFromGraphQL provides a mock function with given fields: in

func (*BusinessTenantMappingConverter) TenantAccessToEntity

func (_m *BusinessTenantMappingConverter) TenantAccessToEntity(in *model.TenantAccess) *repo.TenantAccess

TenantAccessToEntity provides a mock function with given fields: in

func (*BusinessTenantMappingConverter) TenantAccessToGraphQL

func (_m *BusinessTenantMappingConverter) TenantAccessToGraphQL(in *model.TenantAccess) (*graphql.TenantAccess, error)

TenantAccessToGraphQL provides a mock function with given fields: in

func (*BusinessTenantMappingConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type BusinessTenantMappingService

type BusinessTenantMappingService struct {
	mock.Mock
}

BusinessTenantMappingService is an autogenerated mock type for the BusinessTenantMappingService type

func NewBusinessTenantMappingService

func NewBusinessTenantMappingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BusinessTenantMappingService

NewBusinessTenantMappingService creates a new instance of BusinessTenantMappingService. 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 (*BusinessTenantMappingService) CreateTenantAccessForResourceRecursively

func (_m *BusinessTenantMappingService) CreateTenantAccessForResourceRecursively(ctx context.Context, tenantAccess *model.TenantAccess) error

CreateTenantAccessForResourceRecursively provides a mock function with given fields: ctx, tenantAccess

func (*BusinessTenantMappingService) DeleteMany

func (_m *BusinessTenantMappingService) DeleteMany(ctx context.Context, externalTenantIDs []string) error

DeleteMany provides a mock function with given fields: ctx, externalTenantIDs

func (*BusinessTenantMappingService) DeleteTenantAccessForResourceRecursively

func (_m *BusinessTenantMappingService) DeleteTenantAccessForResourceRecursively(ctx context.Context, tenantAccess *model.TenantAccess) error

DeleteTenantAccessForResourceRecursively provides a mock function with given fields: ctx, tenantAccess

func (*BusinessTenantMappingService) GetInternalTenant

func (_m *BusinessTenantMappingService) GetInternalTenant(ctx context.Context, externalTenant string) (string, error)

GetInternalTenant provides a mock function with given fields: ctx, externalTenant

func (*BusinessTenantMappingService) GetLowestOwnerForResource

func (_m *BusinessTenantMappingService) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)

GetLowestOwnerForResource provides a mock function with given fields: ctx, resourceType, objectID

func (*BusinessTenantMappingService) GetParentsRecursivelyByExternalTenant

func (_m *BusinessTenantMappingService) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)

GetParentsRecursivelyByExternalTenant provides a mock function with given fields: ctx, externalTenant

func (*BusinessTenantMappingService) GetTenantAccessForResource

func (_m *BusinessTenantMappingService) GetTenantAccessForResource(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) (*model.TenantAccess, error)

GetTenantAccessForResource provides a mock function with given fields: ctx, tenantID, resourceID, resourceType

func (*BusinessTenantMappingService) GetTenantByExternalID

func (_m *BusinessTenantMappingService) GetTenantByExternalID(ctx context.Context, externalID string) (*model.BusinessTenantMapping, error)

GetTenantByExternalID provides a mock function with given fields: ctx, externalID

func (*BusinessTenantMappingService) GetTenantByID

GetTenantByID provides a mock function with given fields: ctx, id

func (*BusinessTenantMappingService) List

List provides a mock function with given fields: ctx

func (*BusinessTenantMappingService) ListLabels

func (_m *BusinessTenantMappingService) ListLabels(ctx context.Context, tenantID string) (map[string]*model.Label, error)

ListLabels provides a mock function with given fields: ctx, tenantID

func (*BusinessTenantMappingService) ListPageBySearchTerm

func (_m *BusinessTenantMappingService) ListPageBySearchTerm(ctx context.Context, searchTerm string, pageSize int, cursor string) (*model.BusinessTenantMappingPage, error)

ListPageBySearchTerm provides a mock function with given fields: ctx, searchTerm, pageSize, cursor

func (*BusinessTenantMappingService) Update

Update provides a mock function with given fields: ctx, id, tenantInput

func (*BusinessTenantMappingService) UpsertLabel

func (_m *BusinessTenantMappingService) UpsertLabel(ctx context.Context, tenantID string, key string, value interface{}) error

UpsertLabel provides a mock function with given fields: ctx, tenantID, key, value

func (*BusinessTenantMappingService) UpsertMany

UpsertMany provides a mock function with given fields: ctx, tenantInputs

func (*BusinessTenantMappingService) UpsertSingle

UpsertSingle provides a mock function with given fields: ctx, tenantInput

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) Do

func (_m *Client) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type Converter

type Converter struct {
	mock.Mock
}

Converter is an autogenerated mock type for the Converter type

func NewConverter

func NewConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Converter

NewConverter creates a new instance of Converter. 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 (*Converter) FromEntity

func (_m *Converter) FromEntity(in *tenant.Entity) *model.BusinessTenantMapping

FromEntity provides a mock function with given fields: in

func (*Converter) ToEntity

func (_m *Converter) ToEntity(in *model.BusinessTenantMapping) *tenant.Entity

ToEntity provides a mock function with given fields: in

type Fetcher

type Fetcher struct {
	mock.Mock
}

Fetcher is an autogenerated mock type for the Fetcher type

func NewFetcher

func NewFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Fetcher

NewFetcher creates a new instance of Fetcher. 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 (*Fetcher) FetchOnDemand

func (_m *Fetcher) FetchOnDemand(ctx context.Context, _a1 string, parentTenant string) error

FetchOnDemand provides a mock function with given fields: ctx, _a1, parentTenant

type LabelRepository

type LabelRepository struct {
	mock.Mock
}

LabelRepository is an autogenerated mock type for the LabelRepository type

func NewLabelRepository

func NewLabelRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelRepository

NewLabelRepository creates a new instance of LabelRepository. 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 (*LabelRepository) ListForObject

func (_m *LabelRepository) ListForObject(ctx context.Context, _a1 string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)

ListForObject provides a mock function with given fields: ctx, _a1, objectType, objectID

type LabelUpsertService

type LabelUpsertService struct {
	mock.Mock
}

LabelUpsertService is an autogenerated mock type for the LabelUpsertService type

func NewLabelUpsertService

func NewLabelUpsertService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelUpsertService

NewLabelUpsertService creates a new instance of LabelUpsertService. 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 (*LabelUpsertService) UpsertLabel

func (_m *LabelUpsertService) UpsertLabel(ctx context.Context, _a1 string, labelInput *model.LabelInput) error

UpsertLabel provides a mock function with given fields: ctx, _a1, labelInput

type TenantMappingRepository

type TenantMappingRepository struct {
	mock.Mock
}

TenantMappingRepository is an autogenerated mock type for the TenantMappingRepository type

func NewTenantMappingRepository

func NewTenantMappingRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantMappingRepository

NewTenantMappingRepository creates a new instance of TenantMappingRepository. 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 (*TenantMappingRepository) DeleteByExternalTenant

func (_m *TenantMappingRepository) DeleteByExternalTenant(ctx context.Context, externalTenant string) error

DeleteByExternalTenant provides a mock function with given fields: ctx, externalTenant

func (*TenantMappingRepository) Exists

func (_m *TenantMappingRepository) Exists(ctx context.Context, id string) (bool, error)

Exists provides a mock function with given fields: ctx, id

func (*TenantMappingRepository) ExistsByExternalTenant

func (_m *TenantMappingRepository) ExistsByExternalTenant(ctx context.Context, externalTenant string) (bool, error)

ExistsByExternalTenant provides a mock function with given fields: ctx, externalTenant

func (*TenantMappingRepository) Get

Get provides a mock function with given fields: ctx, id

func (*TenantMappingRepository) GetByExternalTenant

func (_m *TenantMappingRepository) GetByExternalTenant(ctx context.Context, externalTenant string) (*model.BusinessTenantMapping, error)

GetByExternalTenant provides a mock function with given fields: ctx, externalTenant

func (*TenantMappingRepository) GetLowestOwnerForResource

func (_m *TenantMappingRepository) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)

GetLowestOwnerForResource provides a mock function with given fields: ctx, resourceType, objectID

func (*TenantMappingRepository) GetParentsRecursivelyByExternalTenant

func (_m *TenantMappingRepository) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)

GetParentsRecursivelyByExternalTenant provides a mock function with given fields: ctx, externalTenant

func (*TenantMappingRepository) List

List provides a mock function with given fields: ctx

func (*TenantMappingRepository) ListByExternalTenants

func (_m *TenantMappingRepository) ListByExternalTenants(ctx context.Context, externalTenant []string) ([]*model.BusinessTenantMapping, error)

ListByExternalTenants provides a mock function with given fields: ctx, externalTenant

func (*TenantMappingRepository) ListByIds

ListByIds provides a mock function with given fields: ctx, ids

func (*TenantMappingRepository) ListByIdsAndType

func (_m *TenantMappingRepository) ListByIdsAndType(ctx context.Context, ids []string, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)

ListByIdsAndType provides a mock function with given fields: ctx, ids, tenantType

func (*TenantMappingRepository) ListByParentAndType

func (_m *TenantMappingRepository) ListByParentAndType(ctx context.Context, parentID string, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)

ListByParentAndType provides a mock function with given fields: ctx, parentID, tenantType

func (*TenantMappingRepository) ListByType

func (_m *TenantMappingRepository) ListByType(ctx context.Context, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)

ListByType provides a mock function with given fields: ctx, tenantType

func (*TenantMappingRepository) ListPageBySearchTerm

func (_m *TenantMappingRepository) ListPageBySearchTerm(ctx context.Context, searchTerm string, pageSize int, cursor string) (*model.BusinessTenantMappingPage, error)

ListPageBySearchTerm provides a mock function with given fields: ctx, searchTerm, pageSize, cursor

func (*TenantMappingRepository) UnsafeCreate

UnsafeCreate provides a mock function with given fields: ctx, item

func (*TenantMappingRepository) Update

Update provides a mock function with given fields: ctx, _a1

func (*TenantMappingRepository) Upsert

Upsert provides a mock function with given fields: ctx, item

type UIDService

type UIDService struct {
	mock.Mock
}

UIDService is an autogenerated mock type for the UIDService type

func NewUIDService

func NewUIDService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UIDService

NewUIDService creates a new instance of UIDService. 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 (*UIDService) Generate

func (_m *UIDService) Generate() string

Generate provides a mock function with given fields:

Jump to

Keyboard shortcuts

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