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

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

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

func (*ApplicationRepository) ListByScenariosNoPaging

func (_m *ApplicationRepository) ListByScenariosNoPaging(ctx context.Context, tenant string, scenarios []string) ([]*model.Application, error)

ListByScenariosNoPaging provides a mock function with given fields: ctx, tenant, scenarios

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

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

func (*ApplicationTemplateRepository) ListByIDs

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

type CertSubjectInputBuilder

type CertSubjectInputBuilder struct {
	mock.Mock
}

CertSubjectInputBuilder is an autogenerated mock type for the certSubjectInputBuilder type

func NewCertSubjectInputBuilder

func NewCertSubjectInputBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertSubjectInputBuilder

NewCertSubjectInputBuilder creates a new instance of CertSubjectInputBuilder. 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 (*CertSubjectInputBuilder) GetTrustDetailsForObject

func (_m *CertSubjectInputBuilder) GetTrustDetailsForObject(ctx context.Context, objectID string) (*webhook.TrustDetails, error)

GetTrustDetailsForObject provides a mock function with given fields: ctx, objectID

func (*CertSubjectInputBuilder) GetTrustDetailsForObjects

func (_m *CertSubjectInputBuilder) GetTrustDetailsForObjects(ctx context.Context, objectIDs []string) (map[string]*webhook.TrustDetails, error)

GetTrustDetailsForObjects provides a mock function with given fields: ctx, objectIDs

type CertSubjectRepository

type CertSubjectRepository struct {
	mock.Mock
}

CertSubjectRepository is an autogenerated mock type for the certSubjectRepository type

func NewCertSubjectRepository

func NewCertSubjectRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertSubjectRepository

NewCertSubjectRepository creates a new instance of CertSubjectRepository. 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 (*CertSubjectRepository) ListByConsumerID

func (_m *CertSubjectRepository) ListByConsumerID(ctx context.Context, consumerID string) ([]*model.CertSubjectMapping, error)

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

type DataInputBuilder

type DataInputBuilder struct {
	mock.Mock
}

DataInputBuilder is an autogenerated mock type for the DataInputBuilder type

func NewDataInputBuilder

func NewDataInputBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataInputBuilder

NewDataInputBuilder creates a new instance of DataInputBuilder. 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 (*DataInputBuilder) PrepareApplicationAndAppTemplateWithLabels

func (_m *DataInputBuilder) PrepareApplicationAndAppTemplateWithLabels(ctx context.Context, tenant string, appID string) (*webhook.ApplicationWithLabels, *webhook.ApplicationTemplateWithLabels, error)

PrepareApplicationAndAppTemplateWithLabels provides a mock function with given fields: ctx, tenant, appID

func (*DataInputBuilder) PrepareApplicationMappingsInFormation

func (_m *DataInputBuilder) PrepareApplicationMappingsInFormation(ctx context.Context, tenant string, scenario string) (map[string]*webhook.ApplicationWithLabels, map[string]*webhook.ApplicationTemplateWithLabels, error)

PrepareApplicationMappingsInFormation provides a mock function with given fields: ctx, tenant, scenario

func (*DataInputBuilder) PrepareRuntimeAndRuntimeContextWithLabels

func (_m *DataInputBuilder) PrepareRuntimeAndRuntimeContextWithLabels(ctx context.Context, tenant string, runtimeID string) (*webhook.RuntimeWithLabels, *webhook.RuntimeContextWithLabels, error)

PrepareRuntimeAndRuntimeContextWithLabels provides a mock function with given fields: ctx, tenant, runtimeID

func (*DataInputBuilder) PrepareRuntimeContextWithLabels

func (_m *DataInputBuilder) PrepareRuntimeContextWithLabels(ctx context.Context, tenant string, runtimeCtxID string) (*webhook.RuntimeContextWithLabels, error)

PrepareRuntimeContextWithLabels provides a mock function with given fields: ctx, tenant, runtimeCtxID

func (*DataInputBuilder) PrepareRuntimeWithLabels

func (_m *DataInputBuilder) PrepareRuntimeWithLabels(ctx context.Context, tenant string, runtimeID string) (*webhook.RuntimeWithLabels, error)

PrepareRuntimeWithLabels provides a mock function with given fields: ctx, tenant, runtimeID

func (*DataInputBuilder) PrepareRuntimesAndRuntimeContextsMappingsInFormation

func (_m *DataInputBuilder) PrepareRuntimesAndRuntimeContextsMappingsInFormation(ctx context.Context, tenant string, scenario string) (map[string]*webhook.RuntimeWithLabels, map[string]*webhook.RuntimeContextWithLabels, error)

PrepareRuntimesAndRuntimeContextsMappingsInFormation provides a mock function with given fields: ctx, tenant, scenario

type LabelInputBuilder

type LabelInputBuilder struct {
	mock.Mock
}

LabelInputBuilder is an autogenerated mock type for the labelInputBuilder type

func NewLabelInputBuilder

func NewLabelInputBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelInputBuilder

NewLabelInputBuilder creates a new instance of LabelInputBuilder. 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 (*LabelInputBuilder) GetLabelsForObject

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

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

func (*LabelInputBuilder) GetLabelsForObjects

func (_m *LabelInputBuilder) GetLabelsForObjects(ctx context.Context, tenant string, objectIDs []string, objectType model.LabelableObject) (map[string]map[string]string, error)

GetLabelsForObjects provides a mock function with given fields: ctx, tenant, objectIDs, objectType

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, tenant string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)

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

func (*LabelRepository) ListForObjectIDs

func (_m *LabelRepository) ListForObjectIDs(ctx context.Context, tenant string, objectType model.LabelableObject, objectIDs []string) (map[string]map[string]interface{}, error)

ListForObjectIDs provides a mock function with given fields: ctx, tenant, objectType, objectIDs

type RuntimeContextRepository

type RuntimeContextRepository struct {
	mock.Mock
}

RuntimeContextRepository is an autogenerated mock type for the runtimeContextRepository type

func NewRuntimeContextRepository

func NewRuntimeContextRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextRepository

NewRuntimeContextRepository creates a new instance of RuntimeContextRepository. 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 (*RuntimeContextRepository) GetByID

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

func (*RuntimeContextRepository) GetByRuntimeID

func (_m *RuntimeContextRepository) GetByRuntimeID(ctx context.Context, tenant string, runtimeID string) (*model.RuntimeContext, error)

GetByRuntimeID provides a mock function with given fields: ctx, tenant, runtimeID

func (*RuntimeContextRepository) ListByScenarios

func (_m *RuntimeContextRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.RuntimeContext, error)

ListByScenarios provides a mock function with given fields: ctx, tenant, scenarios

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

func (_m *RuntimeRepository) ListByIDs(ctx context.Context, tenant string, ids []string) ([]*model.Runtime, error)

ListByIDs provides a mock function with given fields: ctx, tenant, ids

func (*RuntimeRepository) ListByScenarios

func (_m *RuntimeRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.Runtime, error)

ListByScenarios provides a mock function with given fields: ctx, tenant, scenarios

type TenantInputBuilder

type TenantInputBuilder struct {
	mock.Mock
}

TenantInputBuilder is an autogenerated mock type for the tenantInputBuilder type

func NewTenantInputBuilder

func NewTenantInputBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantInputBuilder

NewTenantInputBuilder creates a new instance of TenantInputBuilder. 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 (*TenantInputBuilder) GetTenantForApplicationTemplate

func (_m *TenantInputBuilder) GetTenantForApplicationTemplate(ctx context.Context, tenant string, labels map[string]string) (*webhook.TenantWithLabels, error)

GetTenantForApplicationTemplate provides a mock function with given fields: ctx, tenant, labels

func (*TenantInputBuilder) GetTenantForObject

func (_m *TenantInputBuilder) GetTenantForObject(ctx context.Context, objectID string, resourceType resource.Type) (*webhook.TenantWithLabels, error)

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

func (*TenantInputBuilder) GetTenantsForApplicationTemplates

func (_m *TenantInputBuilder) GetTenantsForApplicationTemplates(ctx context.Context, tenant string, labels map[string]map[string]string, objectIDs []string) (map[string]*webhook.TenantWithLabels, error)

GetTenantsForApplicationTemplates provides a mock function with given fields: ctx, tenant, labels, objectIDs

func (*TenantInputBuilder) GetTenantsForObjects

func (_m *TenantInputBuilder) GetTenantsForObjects(ctx context.Context, tenant string, objectIDs []string, resourceType resource.Type) (map[string]*webhook.TenantWithLabels, error)

GetTenantsForObjects provides a mock function with given fields: ctx, tenant, objectIDs, resourceType

type TenantRepository

type TenantRepository struct {
	mock.Mock
}

TenantRepository is an autogenerated mock type for the tenantRepository type

func NewTenantRepository

func NewTenantRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantRepository

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

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

func (*TenantRepository) GetByExternalTenant

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

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

func (*TenantRepository) GetLowestOwnerForResource

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

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

Jump to

Keyboard shortcuts

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