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 AppConverter

type AppConverter struct {
	mock.Mock
}

AppConverter is an autogenerated mock type for the AppConverter type

func NewAppConverter

func NewAppConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppConverter

NewAppConverter creates a new instance of AppConverter. 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 (*AppConverter) CreateJSONInputGQLToJSON

func (_m *AppConverter) CreateJSONInputGQLToJSON(in *graphql.ApplicationJSONInput) (string, error)

CreateJSONInputGQLToJSON provides a mock function with given fields: 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) CreateInputFromGraphQL

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

func (*ApplicationConverter) CreateRegisterInputJSONToGQL

func (_m *ApplicationConverter) CreateRegisterInputJSONToGQL(in string) (graphql.ApplicationRegisterInput, error)

CreateRegisterInputJSONToGQL provides a mock function with given fields: in

func (*ApplicationConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type ApplicationRepository

type ApplicationRepository struct {
	mock.Mock
}

ApplicationRepository is an autogenerated mock type for the ApplicationRepository type

func NewApplicationRepository

func NewApplicationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationRepository

NewApplicationRepository creates a new instance of ApplicationRepository. 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 (*ApplicationRepository) ListAllByApplicationTemplateID

func (_m *ApplicationRepository) ListAllByApplicationTemplateID(ctx context.Context, applicationTemplateID string) ([]*model.Application, error)

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

type ApplicationService

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func NewApplicationService

func NewApplicationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationService

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

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

func (*ApplicationService) CreateFromTemplate

func (_m *ApplicationService) CreateFromTemplate(ctx context.Context, in model.ApplicationRegisterInput, appTemplateID *string, systemFieldDiscoveryLabelIsTrue bool) (string, error)

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

func (*ApplicationService) Get

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

type ApplicationTemplateConverter

type ApplicationTemplateConverter struct {
	mock.Mock
}

ApplicationTemplateConverter is an autogenerated mock type for the ApplicationTemplateConverter type

func NewApplicationTemplateConverter

func NewApplicationTemplateConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateConverter

NewApplicationTemplateConverter creates a new instance of ApplicationTemplateConverter. 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 (*ApplicationTemplateConverter) ApplicationFromTemplateInputFromGraphQL

ApplicationFromTemplateInputFromGraphQL provides a mock function with given fields: appTemplate, in

func (*ApplicationTemplateConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*ApplicationTemplateConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

func (*ApplicationTemplateConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

func (*ApplicationTemplateConverter) UpdateInputFromGraphQL

UpdateInputFromGraphQL provides a mock function with given fields: in

type ApplicationTemplateRepository

type ApplicationTemplateRepository struct {
	mock.Mock
}

ApplicationTemplateRepository is an autogenerated mock type for the ApplicationTemplateRepository type

func NewApplicationTemplateRepository

func NewApplicationTemplateRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateRepository

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

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

func (*ApplicationTemplateRepository) Delete

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

func (*ApplicationTemplateRepository) Exists

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

func (*ApplicationTemplateRepository) Get

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

func (*ApplicationTemplateRepository) GetByFilters

GetByFilters provides a mock function with given fields: ctx, filter

func (*ApplicationTemplateRepository) List

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

func (*ApplicationTemplateRepository) ListByFilters

ListByFilters provides a mock function with given fields: ctx, filter

func (*ApplicationTemplateRepository) ListByName

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

func (*ApplicationTemplateRepository) Update

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

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

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

func (*ApplicationTemplateService) CreateWithLabels

func (_m *ApplicationTemplateService) CreateWithLabels(ctx context.Context, in model.ApplicationTemplateInput, labels map[string]interface{}) (string, error)

CreateWithLabels provides a mock function with given fields: ctx, in, labels

func (*ApplicationTemplateService) Delete

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

func (*ApplicationTemplateService) Get

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

func (*ApplicationTemplateService) GetByFilters

GetByFilters provides a mock function with given fields: ctx, filter

func (*ApplicationTemplateService) GetByNameAndRegion

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

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

func (*ApplicationTemplateService) GetLabel

func (_m *ApplicationTemplateService) GetLabel(ctx context.Context, appTemplateID string, key string) (*model.Label, error)

GetLabel provides a mock function with given fields: ctx, appTemplateID, key

func (*ApplicationTemplateService) List

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

func (*ApplicationTemplateService) ListByFilters

ListByFilters provides a mock function with given fields: ctx, filter

func (*ApplicationTemplateService) ListByName

ListByName provides a mock function with given fields: ctx, name

func (*ApplicationTemplateService) ListLabels

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

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

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

func (*ApplicationTemplateService) Update

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

type CertSubjectMappingService

type CertSubjectMappingService struct {
	mock.Mock
}

CertSubjectMappingService is an autogenerated mock type for the CertSubjectMappingService type

func NewCertSubjectMappingService

func NewCertSubjectMappingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertSubjectMappingService

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

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

func (*CertSubjectMappingService) DeleteByConsumerID

func (_m *CertSubjectMappingService) DeleteByConsumerID(ctx context.Context, consumerID string) error

DeleteByConsumerID provides a mock function with given fields: ctx, consumerID

func (*CertSubjectMappingService) ListAll

ListAll provides a mock function with given fields: ctx

type EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func NewEntityConverter

func NewEntityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityConverter

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

func (_m *EntityConverter) FromEntity(entity *apptemplate.Entity) (*model.ApplicationTemplate, error)

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

ToEntity provides a mock function with given fields: in

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

func (_m *LabelRepository) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key

func (*LabelRepository) ListForGlobalObject

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

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

type LabelService

type LabelService struct {
	mock.Mock
}

LabelService is an autogenerated mock type for the LabelService type

func NewLabelService

func NewLabelService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelService

NewLabelService creates a new instance of LabelService. 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 (*LabelService) GetByKey

func (_m *LabelService) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key

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

func (_m *LabelUpsertService) UpsertLabelGlobal(ctx context.Context, labelInput *model.LabelInput) error

UpsertLabelGlobal provides a mock function with given fields: ctx, labelInput

func (*LabelUpsertService) UpsertMultipleLabels

func (_m *LabelUpsertService) UpsertMultipleLabels(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, labels map[string]interface{}) error

UpsertMultipleLabels provides a mock function with given fields: ctx, tenant, objectType, objectID, labels

type SelfRegisterManager

type SelfRegisterManager struct {
	mock.Mock
}

SelfRegisterManager is an autogenerated mock type for the SelfRegisterManager type

func NewSelfRegisterManager

func NewSelfRegisterManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *SelfRegisterManager

NewSelfRegisterManager creates a new instance of SelfRegisterManager. 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 (*SelfRegisterManager) CleanupSelfRegistration

func (_m *SelfRegisterManager) CleanupSelfRegistration(ctx context.Context, selfRegisterLabelValue string, region string) error

CleanupSelfRegistration provides a mock function with given fields: ctx, selfRegisterLabelValue, region

func (*SelfRegisterManager) GetSelfRegDistinguishingLabelKey

func (_m *SelfRegisterManager) GetSelfRegDistinguishingLabelKey() string

GetSelfRegDistinguishingLabelKey provides a mock function with given fields:

func (*SelfRegisterManager) IsSelfRegistrationFlow

func (_m *SelfRegisterManager) IsSelfRegistrationFlow(ctx context.Context, labels map[string]interface{}) (bool, error)

IsSelfRegistrationFlow provides a mock function with given fields: ctx, labels

func (*SelfRegisterManager) PrepareForSelfRegistration

func (_m *SelfRegisterManager) PrepareForSelfRegistration(ctx context.Context, resourceType resource.Type, labels map[string]interface{}, id string, validate func() error) (map[string]interface{}, error)

PrepareForSelfRegistration provides a mock function with given fields: ctx, resourceType, labels, id, validate

type TimeService

type TimeService struct {
	mock.Mock
}

TimeService is an autogenerated mock type for the TimeService type

func NewTimeService

func NewTimeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeService

NewTimeService creates a new instance of TimeService. 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 (*TimeService) Now

func (_m *TimeService) Now() time.Time

Now provides a mock function with given fields:

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:

type WebhookConverter

type WebhookConverter struct {
	mock.Mock
}

WebhookConverter is an autogenerated mock type for the WebhookConverter type

func NewWebhookConverter

func NewWebhookConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookConverter

NewWebhookConverter creates a new instance of WebhookConverter. 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 (*WebhookConverter) MultipleInputFromGraphQL

func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.WebhookInput) ([]*model.WebhookInput, error)

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleToGraphQL

func (_m *WebhookConverter) MultipleToGraphQL(in []*model.Webhook) ([]*graphql.Webhook, error)

MultipleToGraphQL provides a mock function with given fields: in

type WebhookRepository

type WebhookRepository struct {
	mock.Mock
}

WebhookRepository is an autogenerated mock type for the WebhookRepository type

func NewWebhookRepository

func NewWebhookRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookRepository

NewWebhookRepository creates a new instance of WebhookRepository. 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 (*WebhookRepository) CreateMany

func (_m *WebhookRepository) CreateMany(ctx context.Context, tenant string, items []*model.Webhook) error

CreateMany provides a mock function with given fields: ctx, tenant, items

func (*WebhookRepository) DeleteAllByApplicationTemplateID

func (_m *WebhookRepository) DeleteAllByApplicationTemplateID(ctx context.Context, applicationTemplateID string) error

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

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

func (_m *WebhookService) EnrichWebhooksWithTenantMappingWebhooks(in []*graphql.WebhookInput) ([]*graphql.WebhookInput, error)

EnrichWebhooksWithTenantMappingWebhooks provides a mock function with given fields: in

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

Jump to

Keyboard shortcuts

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