automock

package
v0.0.0-...-aca56db Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleInstanceAuthService

type BundleInstanceAuthService struct {
	mock.Mock
}

BundleInstanceAuthService is an autogenerated mock type for the BundleInstanceAuthService type

func NewBundleInstanceAuthService

func NewBundleInstanceAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleInstanceAuthService

NewBundleInstanceAuthService creates a new instance of BundleInstanceAuthService. 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 (*BundleInstanceAuthService) ListByRuntimeID

func (_m *BundleInstanceAuthService) ListByRuntimeID(ctx context.Context, runtimeID string) ([]*model.BundleInstanceAuth, error)

ListByRuntimeID provides a mock function with given fields: ctx, runtimeID

func (*BundleInstanceAuthService) Update

func (_m *BundleInstanceAuthService) Update(ctx context.Context, instanceAuth *model.BundleInstanceAuth) error

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

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 *runtime.Runtime) *model.Runtime

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Runtime) (*runtime.Runtime, error)

ToEntity provides a mock function with given fields: in

type EventingService

type EventingService struct {
	mock.Mock
}

EventingService is an autogenerated mock type for the EventingService type

func NewEventingService

func NewEventingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventingService

NewEventingService creates a new instance of EventingService. 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 (*EventingService) GetForRuntime

func (_m *EventingService) GetForRuntime(ctx context.Context, runtimeID uuid.UUID) (*model.RuntimeEventingConfiguration, error)

GetForRuntime provides a mock function with given fields: ctx, runtimeID

type FormationService

type FormationService struct {
	mock.Mock
}

FormationService is an autogenerated mock type for the formationService type

func NewFormationService

func NewFormationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationService

NewFormationService creates a new instance of FormationService. 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 (*FormationService) AssignFormation

func (_m *FormationService) AssignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)

AssignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation

func (*FormationService) DeleteAutomaticScenarioAssignment

func (_m *FormationService) DeleteAutomaticScenarioAssignment(ctx context.Context, in *model.AutomaticScenarioAssignment) error

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

func (*FormationService) MergeScenariosFromInputLabelsAndAssignments

func (_m *FormationService) MergeScenariosFromInputLabelsAndAssignments(ctx context.Context, inputLabels map[string]interface{}, runtimeID string) ([]interface{}, error)

MergeScenariosFromInputLabelsAndAssignments provides a mock function with given fields: ctx, inputLabels, runtimeID

func (*FormationService) UnassignFormation

func (_m *FormationService) UnassignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)

UnassignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation

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

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

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

func (*LabelRepository) DeleteAll

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

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

func (*LabelRepository) DeleteByKeyNegationPattern

func (_m *LabelRepository) DeleteByKeyNegationPattern(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, labelKeyPattern string) error

DeleteByKeyNegationPattern provides a mock function with given fields: ctx, tenant, objectType, objectID, labelKeyPattern

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

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

ListForObject provides a mock function with given fields: ctx, tenant, 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

func (*LabelService) UpsertLabel

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

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

func (*LabelService) UpsertMultipleLabels

func (_m *LabelService) 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 OAuth20Service

type OAuth20Service struct {
	mock.Mock
}

OAuth20Service is an autogenerated mock type for the OAuth20Service type

func NewOAuth20Service

func NewOAuth20Service(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuth20Service

NewOAuth20Service creates a new instance of OAuth20Service. 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 (*OAuth20Service) DeleteMultipleClientCredentials

func (_m *OAuth20Service) DeleteMultipleClientCredentials(ctx context.Context, auths []model.SystemAuth) error

DeleteMultipleClientCredentials provides a mock function with given fields: ctx, auths

type RuntimeContextConverter

type RuntimeContextConverter struct {
	mock.Mock
}

RuntimeContextConverter is an autogenerated mock type for the RuntimeContextConverter type

func NewRuntimeContextConverter

func NewRuntimeContextConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextConverter

NewRuntimeContextConverter creates a new instance of RuntimeContextConverter. 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 (*RuntimeContextConverter) MultipleToGraphQL

func (_m *RuntimeContextConverter) MultipleToGraphQL(in []*model.RuntimeContext) []*graphql.RuntimeContext

MultipleToGraphQL provides a mock function with given fields: in

func (*RuntimeContextConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type RuntimeContextService

type RuntimeContextService struct {
	mock.Mock
}

RuntimeContextService is an autogenerated mock type for the RuntimeContextService type

func NewRuntimeContextService

func NewRuntimeContextService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextService

NewRuntimeContextService creates a new instance of RuntimeContextService. 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 (*RuntimeContextService) Delete

func (_m *RuntimeContextService) Delete(ctx context.Context, id string) error

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

func (*RuntimeContextService) GetForRuntime

func (_m *RuntimeContextService) GetForRuntime(ctx context.Context, id string, runtimeID string) (*model.RuntimeContext, error)

GetForRuntime provides a mock function with given fields: ctx, id, runtimeID

func (*RuntimeContextService) ListAllForRuntime

func (_m *RuntimeContextService) ListAllForRuntime(ctx context.Context, runtimeID string) ([]*model.RuntimeContext, error)

ListAllForRuntime provides a mock function with given fields: ctx, runtimeID

func (*RuntimeContextService) ListByRuntimeIDs

func (_m *RuntimeContextService) ListByRuntimeIDs(ctx context.Context, runtimeIDs []string, pageSize int, cursor string) ([]*model.RuntimeContextPage, error)

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

type RuntimeConverter

type RuntimeConverter struct {
	mock.Mock
}

RuntimeConverter is an autogenerated mock type for the RuntimeConverter type

func NewRuntimeConverter

func NewRuntimeConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeConverter

NewRuntimeConverter creates a new instance of RuntimeConverter. 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 (*RuntimeConverter) MultipleToGraphQL

func (_m *RuntimeConverter) MultipleToGraphQL(in []*model.Runtime) []*graphql.Runtime

MultipleToGraphQL provides a mock function with given fields: in

func (*RuntimeConverter) RegisterInputFromGraphQL

func (_m *RuntimeConverter) RegisterInputFromGraphQL(in graphql.RuntimeRegisterInput) (model.RuntimeRegisterInput, error)

RegisterInputFromGraphQL provides a mock function with given fields: in

func (*RuntimeConverter) ToGraphQL

func (_m *RuntimeConverter) ToGraphQL(in *model.Runtime) *graphql.Runtime

ToGraphQL provides a mock function with given fields: in

func (*RuntimeConverter) UpdateInputFromGraphQL

func (_m *RuntimeConverter) UpdateInputFromGraphQL(in graphql.RuntimeUpdateInput) model.RuntimeUpdateInput

UpdateInputFromGraphQL provides a mock function with given fields: in

type RuntimeRepository

type RuntimeRepository struct {
	mock.Mock
}

RuntimeRepository is an autogenerated mock type for the runtimeRepository type

func NewRuntimeRepository

func NewRuntimeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeRepository

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

func (_m *RuntimeRepository) Create(ctx context.Context, tenant string, item *model.Runtime) error

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

func (*RuntimeRepository) Delete

func (_m *RuntimeRepository) Delete(ctx context.Context, tenant string, id string) error

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

func (*RuntimeRepository) Exists

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

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

func (*RuntimeRepository) GetByFilters

func (_m *RuntimeRepository) GetByFilters(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter) (*model.Runtime, error)

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

func (*RuntimeRepository) GetByFiltersGlobal

func (_m *RuntimeRepository) GetByFiltersGlobal(ctx context.Context, filter []*labelfilter.LabelFilter) (*model.Runtime, error)

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

func (*RuntimeRepository) GetByID

func (_m *RuntimeRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Runtime, error)

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

func (*RuntimeRepository) List

func (_m *RuntimeRepository) List(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimePage, error)

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

func (*RuntimeRepository) ListAll

func (_m *RuntimeRepository) ListAll(_a0 context.Context, _a1 string, _a2 []*labelfilter.LabelFilter) ([]*model.Runtime, error)

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

func (*RuntimeRepository) ListByFiltersGlobal

func (_m *RuntimeRepository) ListByFiltersGlobal(_a0 context.Context, _a1 []*labelfilter.LabelFilter) ([]*model.Runtime, error)

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

func (*RuntimeRepository) Update

func (_m *RuntimeRepository) Update(ctx context.Context, tenant string, item *model.Runtime) error

Update provides a mock function with given fields: ctx, tenant, item

type RuntimeService

type RuntimeService struct {
	mock.Mock
}

RuntimeService is an autogenerated mock type for the RuntimeService type

func NewRuntimeService

func NewRuntimeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeService

NewRuntimeService creates a new instance of RuntimeService. 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 (*RuntimeService) CreateWithMandatoryLabels

func (_m *RuntimeService) CreateWithMandatoryLabels(ctx context.Context, in model.RuntimeRegisterInput, id string, mandatoryLabels map[string]interface{}) error

CreateWithMandatoryLabels provides a mock function with given fields: ctx, in, id, mandatoryLabels

func (*RuntimeService) Delete

func (_m *RuntimeService) Delete(ctx context.Context, id string) error

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

func (*RuntimeService) DeleteLabel

func (_m *RuntimeService) DeleteLabel(ctx context.Context, runtimeID string, key string) error

DeleteLabel provides a mock function with given fields: ctx, runtimeID, key

func (*RuntimeService) Get

func (_m *RuntimeService) Get(ctx context.Context, id string) (*model.Runtime, error)

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

func (*RuntimeService) GetByFilters

func (_m *RuntimeService) GetByFilters(ctx context.Context, filters []*labelfilter.LabelFilter) (*model.Runtime, error)

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

func (*RuntimeService) GetByTokenIssuer

func (_m *RuntimeService) GetByTokenIssuer(ctx context.Context, issuer string) (*model.Runtime, error)

GetByTokenIssuer provides a mock function with given fields: ctx, issuer

func (*RuntimeService) GetLabel

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

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

func (*RuntimeService) List

func (_m *RuntimeService) List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimePage, error)

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

func (*RuntimeService) ListLabels

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

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

func (*RuntimeService) SetLabel

func (_m *RuntimeService) SetLabel(ctx context.Context, label *model.LabelInput) error

SetLabel provides a mock function with given fields: ctx, label

func (*RuntimeService) UnsafeExtractModifiableLabels

func (_m *RuntimeService) UnsafeExtractModifiableLabels(labels map[string]interface{}) (map[string]interface{}, error)

UnsafeExtractModifiableLabels provides a mock function with given fields: labels

func (*RuntimeService) Update

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

type ScenarioAssignmentService

type ScenarioAssignmentService struct {
	mock.Mock
}

ScenarioAssignmentService is an autogenerated mock type for the ScenarioAssignmentService type

func NewScenarioAssignmentService

func NewScenarioAssignmentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScenarioAssignmentService

NewScenarioAssignmentService creates a new instance of ScenarioAssignmentService. 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 (*ScenarioAssignmentService) GetForScenarioName

func (_m *ScenarioAssignmentService) GetForScenarioName(ctx context.Context, scenarioName string) (*model.AutomaticScenarioAssignment, error)

GetForScenarioName provides a mock function with given fields: ctx, scenarioName

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

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionService

NewSubscriptionService creates a new instance of SubscriptionService. 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 (*SubscriptionService) SubscribeTenantToRuntime

func (_m *SubscriptionService) SubscribeTenantToRuntime(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionAppName string, subscriptionID string) (bool, error)

SubscribeTenantToRuntime provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionAppName, subscriptionID

func (*SubscriptionService) UnsubscribeTenantFromRuntime

func (_m *SubscriptionService) UnsubscribeTenantFromRuntime(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionID string) (bool, error)

UnsubscribeTenantFromRuntime provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionID

type SystemAuthConverter

type SystemAuthConverter struct {
	mock.Mock
}

SystemAuthConverter is an autogenerated mock type for the SystemAuthConverter type

func NewSystemAuthConverter

func NewSystemAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemAuthConverter

NewSystemAuthConverter creates a new instance of SystemAuthConverter. 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 (*SystemAuthConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type SystemAuthService

type SystemAuthService struct {
	mock.Mock
}

SystemAuthService is an autogenerated mock type for the SystemAuthService type

func NewSystemAuthService

func NewSystemAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemAuthService

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

func (_m *SystemAuthService) ListForObject(ctx context.Context, objectType model.SystemAuthReferenceObjectType, objectID string) ([]model.SystemAuth, error)

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

type TenantFetcher

type TenantFetcher struct {
	mock.Mock
}

TenantFetcher is an autogenerated mock type for the TenantFetcher type

func NewTenantFetcher

func NewTenantFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantFetcher

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

func (_m *TenantFetcher) FetchOnDemand(ctx context.Context, tenant string, parentTenant string) error

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

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 TenantSvc

type TenantSvc struct {
	mock.Mock
}

TenantSvc is an autogenerated mock type for the tenantSvc type

func NewTenantSvc

func NewTenantSvc(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantSvc

NewTenantSvc creates a new instance of TenantSvc. 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 (*TenantSvc) GetTenantByID

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

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

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

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

ListForRuntime provides a mock function with given fields: ctx, runtimeID

Jump to

Keyboard shortcuts

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