automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	mock.Mock
}

APIClient is an autogenerated mock type for the APIClient type

func NewAPIClient

func NewAPIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIClient

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

func (_m *APIClient) Do(_a0 *http.Request, _a1 string) (*http.Response, error)

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

type AppTmplService

type AppTmplService struct {
	mock.Mock
}

AppTmplService is an autogenerated mock type for the appTmplService type

func NewAppTmplService

func NewAppTmplService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppTmplService

NewAppTmplService creates a new instance of AppTmplService. 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 (*AppTmplService) Create

Create provides a mock function with given fields: ctx, in

func (*AppTmplService) GetByNameAndRegion

func (_m *AppTmplService) GetByNameAndRegion(ctx context.Context, name string, region interface{}) (*model.ApplicationTemplate, error)

GetByNameAndRegion provides a mock function with given fields: ctx, name, region

func (*AppTmplService) Update

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

type ApplicationConverter

type ApplicationConverter struct {
	mock.Mock
}

ApplicationConverter is an autogenerated mock type for the applicationConverter type

func NewApplicationConverter

func NewApplicationConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationConverter

NewApplicationConverter creates a new instance of ApplicationConverter. 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 (*ApplicationConverter) CreateInputJSONToModel

func (_m *ApplicationConverter) CreateInputJSONToModel(ctx context.Context, in string) (model.ApplicationRegisterInput, error)

CreateInputJSONToModel provides a mock function with given fields: ctx, in

type ApplicationTemplateService

type ApplicationTemplateService struct {
	mock.Mock
}

ApplicationTemplateService is an autogenerated mock type for the applicationTemplateService type

func NewApplicationTemplateService

func NewApplicationTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateService

NewApplicationTemplateService creates a new instance of ApplicationTemplateService. 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 (*ApplicationTemplateService) Get

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

func (*ApplicationTemplateService) PrepareApplicationCreateInputJSON

func (_m *ApplicationTemplateService) PrepareApplicationCreateInputJSON(appTemplate *model.ApplicationTemplate, values model.ApplicationFromTemplateInputValues) (string, error)

PrepareApplicationCreateInputJSON provides a mock function with given fields: appTemplate, values

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) GetTenantByExternalID

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

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

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

type DirectorClient

type DirectorClient struct {
	mock.Mock
}

DirectorClient is an autogenerated mock type for the directorClient type

func NewDirectorClient

func NewDirectorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirectorClient

NewDirectorClient creates a new instance of DirectorClient. 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 (*DirectorClient) DeleteSystemAsync

func (_m *DirectorClient) DeleteSystemAsync(ctx context.Context, id string, tenant string) error

DeleteSystemAsync provides a mock function with given fields: ctx, id, tenant

type IntSysSvc

type IntSysSvc struct {
	mock.Mock
}

IntSysSvc is an autogenerated mock type for the intSysSvc type

func NewIntSysSvc

func NewIntSysSvc(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntSysSvc

NewIntSysSvc creates a new instance of IntSysSvc. 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 (*IntSysSvc) Create

Create provides a mock function with given fields: ctx, in

func (*IntSysSvc) List

func (_m *IntSysSvc) List(ctx context.Context, pageSize int, cursor string) (model.IntegrationSystemPage, error)

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

type OperationMaintainer

type OperationMaintainer struct {
	mock.Mock
}

OperationMaintainer is an autogenerated mock type for the OperationMaintainer type

func NewOperationMaintainer

func NewOperationMaintainer(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationMaintainer

NewOperationMaintainer creates a new instance of OperationMaintainer. 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 (*OperationMaintainer) Maintain

func (_m *OperationMaintainer) Maintain(ctx context.Context) error

Maintain provides a mock function with given fields: ctx

type OperationService

type OperationService struct {
	mock.Mock
}

OperationService is an autogenerated mock type for the OperationService type

func NewOperationService

func NewOperationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationService

NewOperationService creates a new instance of OperationService. 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 (*OperationService) CreateMultiple

func (_m *OperationService) CreateMultiple(ctx context.Context, in []*model.OperationInput) error

CreateMultiple provides a mock function with given fields: ctx, in

func (*OperationService) DeleteMultiple

func (_m *OperationService) DeleteMultiple(ctx context.Context, ids []string) error

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

func (*OperationService) ListAllByType

func (_m *OperationService) ListAllByType(ctx context.Context, opType model.OperationType) ([]*model.Operation, error)

ListAllByType provides a mock function with given fields: ctx, opType

type OperationsManager

type OperationsManager struct {
	mock.Mock
}

OperationsManager is an autogenerated mock type for the OperationsManager type

func NewOperationsManager

func NewOperationsManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationsManager

NewOperationsManager creates a new instance of OperationsManager. 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 (*OperationsManager) CreateOperation

func (_m *OperationsManager) CreateOperation(ctx context.Context, in *model.OperationInput) (string, error)

CreateOperation provides a mock function with given fields: ctx, in

func (*OperationsManager) FindOperationByData

func (_m *OperationsManager) FindOperationByData(ctx context.Context, data interface{}) (*model.Operation, error)

FindOperationByData provides a mock function with given fields: ctx, data

func (*OperationsManager) RescheduleOperation

func (_m *OperationsManager) RescheduleOperation(ctx context.Context, operationID string) error

RescheduleOperation provides a mock function with given fields: ctx, operationID

type SystemFetcherService

type SystemFetcherService struct {
	mock.Mock
}

SystemFetcherService is an autogenerated mock type for the SystemFetcherService type

func NewSystemFetcherService

func NewSystemFetcherService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemFetcherService

NewSystemFetcherService creates a new instance of SystemFetcherService. 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 (*SystemFetcherService) ProcessTenant

func (_m *SystemFetcherService) ProcessTenant(ctx context.Context, tenantID string) error

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

func (*SystemFetcherService) SetTemplateRenderer

func (_m *SystemFetcherService) SetTemplateRenderer(templateRenderer systemfetcher.TemplateRenderer)

SetTemplateRenderer provides a mock function with given fields: templateRenderer

type SystemsAPIClient

type SystemsAPIClient struct {
	mock.Mock
}

SystemsAPIClient is an autogenerated mock type for the systemsAPIClient type

func NewSystemsAPIClient

func NewSystemsAPIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemsAPIClient

NewSystemsAPIClient creates a new instance of SystemsAPIClient. 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 (*SystemsAPIClient) FetchSystemsForTenant

func (_m *SystemsAPIClient) FetchSystemsForTenant(ctx context.Context, tenant *model.BusinessTenantMapping, systemSynchronizationTimestamps map[string]systemfetcher.SystemSynchronizationTimestamp) ([]systemfetcher.System, error)

FetchSystemsForTenant provides a mock function with given fields: ctx, tenant, systemSynchronizationTimestamps

type SystemsService

type SystemsService struct {
	mock.Mock
}

SystemsService is an autogenerated mock type for the systemsService type

func NewSystemsService

func NewSystemsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemsService

NewSystemsService creates a new instance of SystemsService. 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 (*SystemsService) GetBySystemNumber

func (_m *SystemsService) GetBySystemNumber(ctx context.Context, systemNumber string) (*model.Application, error)

GetBySystemNumber provides a mock function with given fields: ctx, systemNumber

func (*SystemsService) TrustedUpsert

TrustedUpsert provides a mock function with given fields: ctx, in

func (*SystemsService) TrustedUpsertFromTemplate

func (_m *SystemsService) TrustedUpsertFromTemplate(ctx context.Context, in model.ApplicationRegisterInput, appTemplateID *string) error

TrustedUpsertFromTemplate provides a mock function with given fields: ctx, in, appTemplateID

type SystemsSyncService

type SystemsSyncService struct {
	mock.Mock
}

SystemsSyncService is an autogenerated mock type for the SystemsSyncService type

func NewSystemsSyncService

func NewSystemsSyncService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemsSyncService

NewSystemsSyncService creates a new instance of SystemsSyncService. 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 (*SystemsSyncService) ListByTenant

ListByTenant provides a mock function with given fields: ctx, tenant

func (*SystemsSyncService) Upsert

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

type TemplateRenderer

type TemplateRenderer struct {
	mock.Mock
}

TemplateRenderer is an autogenerated mock type for the TemplateRenderer type

func NewTemplateRenderer

func NewTemplateRenderer(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateRenderer

NewTemplateRenderer creates a new instance of TemplateRenderer. 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 (*TemplateRenderer) ApplicationRegisterInputFromTemplate

func (_m *TemplateRenderer) ApplicationRegisterInputFromTemplate(ctx context.Context, sc systemfetcher.System) (*model.ApplicationRegisterInput, error)

ApplicationRegisterInputFromTemplate provides a mock function with given fields: ctx, sc

func (*TemplateRenderer) GenerateAppRegisterInput

func (_m *TemplateRenderer) GenerateAppRegisterInput(ctx context.Context, sc systemfetcher.System, appTemplate *model.ApplicationTemplate, overridePlaceholders bool) (*model.ApplicationRegisterInput, error)

GenerateAppRegisterInput provides a mock function with given fields: ctx, sc, appTemplate, overridePlaceholders

type TenantService

type TenantService struct {
	mock.Mock
}

TenantService is an autogenerated mock type for the tenantService type

func NewTenantService

func NewTenantService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantService

NewTenantService creates a new instance of TenantService. 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 (*TenantService) GetTenantByExternalID

func (_m *TenantService) GetTenantByExternalID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)

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

func (*TenantService) GetTenantByID

func (_m *TenantService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)

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

type WebhookService

type WebhookService struct {
	mock.Mock
}

WebhookService is an autogenerated mock type for the webhookService type

func NewWebhookService

func NewWebhookService(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookService

NewWebhookService creates a new instance of WebhookService. 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 (*WebhookService) Create

func (_m *WebhookService) Create(ctx context.Context, owningResourceID string, in model.WebhookInput, objectType model.WebhookReferenceObjectType) (string, error)

Create provides a mock function with given fields: ctx, owningResourceID, in, objectType

func (*WebhookService) Delete

func (_m *WebhookService) Delete(ctx context.Context, id string, objectType model.WebhookReferenceObjectType) error

Delete provides a mock function with given fields: ctx, id, objectType

func (*WebhookService) ListForApplicationTemplate

func (_m *WebhookService) ListForApplicationTemplate(ctx context.Context, applicationTemplateID string) ([]*model.Webhook, error)

ListForApplicationTemplate provides a mock function with given fields: ctx, applicationTemplateID

func (*WebhookService) Update

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

Jump to

Keyboard shortcuts

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