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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleRepo

type BundleRepo struct {
	mock.Mock
}

BundleRepo is an autogenerated mock type for the BundleRepo type

func NewBundleRepo

func NewBundleRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleRepo

NewBundleRepo creates a new instance of BundleRepo. 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 (*BundleRepo) ListByApplicationAndCorrelationIDs

func (_m *BundleRepo) ListByApplicationAndCorrelationIDs(ctx context.Context, tenantID string, appID string, correlationIDs string) ([]*model.Bundle, error)

ListByApplicationAndCorrelationIDs provides a mock function with given fields: ctx, tenantID, appID, correlationIDs

func (*BundleRepo) ListByDestination

func (_m *BundleRepo) ListByDestination(ctx context.Context, tenantID string, destination model.DestinationInput) ([]*model.Bundle, error)

ListByDestination provides a mock function with given fields: ctx, tenantID, destination

type DestinationManager

type DestinationManager struct {
	mock.Mock
}

DestinationManager is an autogenerated mock type for the DestinationManager type

func NewDestinationManager

func NewDestinationManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *DestinationManager

NewDestinationManager creates a new instance of DestinationManager. 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 (*DestinationManager) FetchDestinationsSensitiveData

func (_m *DestinationManager) FetchDestinationsSensitiveData(ctx context.Context, tenantID string, destinationNames []string) ([]byte, error)

FetchDestinationsSensitiveData provides a mock function with given fields: ctx, tenantID, destinationNames

func (*DestinationManager) GetSubscribedTenantIDs

func (_m *DestinationManager) GetSubscribedTenantIDs(ctx context.Context) ([]string, error)

GetSubscribedTenantIDs provides a mock function with given fields: ctx

func (*DestinationManager) IsTenantSubscribed

func (_m *DestinationManager) IsTenantSubscribed(ctx context.Context, tenantID string) (bool, error)

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

func (*DestinationManager) SyncTenantDestinations

func (_m *DestinationManager) SyncTenantDestinations(ctx context.Context, tenantID string) error

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

type DestinationRepo

type DestinationRepo struct {
	mock.Mock
}

DestinationRepo is an autogenerated mock type for the DestinationRepo type

func NewDestinationRepo

func NewDestinationRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *DestinationRepo

NewDestinationRepo creates a new instance of DestinationRepo. 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 (*DestinationRepo) DeleteOld

func (_m *DestinationRepo) DeleteOld(ctx context.Context, latestRevision string, tenantID string) error

DeleteOld provides a mock function with given fields: ctx, latestRevision, tenantID

func (*DestinationRepo) GetDestinationByNameAndTenant

func (_m *DestinationRepo) GetDestinationByNameAndTenant(ctx context.Context, destinationName string, tenantID string) (*model.Destination, error)

GetDestinationByNameAndTenant provides a mock function with given fields: ctx, destinationName, tenantID

func (*DestinationRepo) Upsert

func (_m *DestinationRepo) Upsert(ctx context.Context, in model.DestinationInput, id string, tenantID string, bundleID string, revision string) error

Upsert provides a mock function with given fields: ctx, in, id, tenantID, bundleID, revision

type DestinationSyncer

type DestinationSyncer struct {
	mock.Mock
}

DestinationSyncer is an autogenerated mock type for the DestinationSyncer type

func NewDestinationSyncer

func NewDestinationSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *DestinationSyncer

NewDestinationSyncer creates a new instance of DestinationSyncer. 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 (*DestinationSyncer) GetSubscribedTenantIDs

func (_m *DestinationSyncer) GetSubscribedTenantIDs(ctx context.Context) ([]string, error)

GetSubscribedTenantIDs provides a mock function with given fields: ctx

func (*DestinationSyncer) SyncTenantDestinations

func (_m *DestinationSyncer) SyncTenantDestinations(ctx context.Context, tenantID string) error

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

type FormationAssignmentRepository

type FormationAssignmentRepository struct {
	mock.Mock
}

FormationAssignmentRepository is an autogenerated mock type for the FormationAssignmentRepository type

func NewFormationAssignmentRepository

func NewFormationAssignmentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationAssignmentRepository

NewFormationAssignmentRepository creates a new instance of FormationAssignmentRepository. 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 (*FormationAssignmentRepository) GetGlobalByID

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

type LabelRepo

type LabelRepo struct {
	mock.Mock
}

LabelRepo is an autogenerated mock type for the LabelRepo type

func NewLabelRepo

func NewLabelRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelRepo

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

func (_m *LabelRepo) 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 (*LabelRepo) GetSubdomainLabelForSubscribedRuntime

func (_m *LabelRepo) GetSubdomainLabelForSubscribedRuntime(ctx context.Context, tenantID string) (*model.Label, error)

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

type TenantRepo

type TenantRepo struct {
	mock.Mock
}

TenantRepo is an autogenerated mock type for the TenantRepo type

func NewTenantRepo

func NewTenantRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantRepo

NewTenantRepo creates a new instance of TenantRepo. 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 (*TenantRepo) ExistsSubscribed

func (_m *TenantRepo) ExistsSubscribed(ctx context.Context, id string, selfDistinguishLabel string) (bool, error)

ExistsSubscribed provides a mock function with given fields: ctx, id, selfDistinguishLabel

func (*TenantRepo) ListBySubscribedRuntimesAndApplicationTemplates

func (_m *TenantRepo) ListBySubscribedRuntimesAndApplicationTemplates(ctx context.Context, selfRegDistinguishLabel string) ([]*model.BusinessTenantMapping, error)

ListBySubscribedRuntimesAndApplicationTemplates provides a mock function with given fields: ctx, selfRegDistinguishLabel

type UUIDService

type UUIDService struct {
	mock.Mock
}

UUIDService is an autogenerated mock type for the UUIDService type

func NewUUIDService

func NewUUIDService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UUIDService

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

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