Documentation ¶
Index ¶
- type ApplicationRepository
- type ApplicationTemplateRepository
- type CertSubjectInputBuilder
- type CertSubjectRepository
- type DataInputBuilder
- func (_m *DataInputBuilder) PrepareApplicationAndAppTemplateWithLabels(ctx context.Context, tenant string, appID string) (*webhook.ApplicationWithLabels, *webhook.ApplicationTemplateWithLabels, error)
- func (_m *DataInputBuilder) PrepareApplicationMappingsInFormation(ctx context.Context, tenant string, scenario string) (map[string]*webhook.ApplicationWithLabels, ...)
- func (_m *DataInputBuilder) PrepareRuntimeAndRuntimeContextWithLabels(ctx context.Context, tenant string, runtimeID string) (*webhook.RuntimeWithLabels, *webhook.RuntimeContextWithLabels, error)
- func (_m *DataInputBuilder) PrepareRuntimeContextWithLabels(ctx context.Context, tenant string, runtimeCtxID string) (*webhook.RuntimeContextWithLabels, error)
- func (_m *DataInputBuilder) PrepareRuntimeWithLabels(ctx context.Context, tenant string, runtimeID string) (*webhook.RuntimeWithLabels, error)
- func (_m *DataInputBuilder) PrepareRuntimesAndRuntimeContextsMappingsInFormation(ctx context.Context, tenant string, scenario string) (map[string]*webhook.RuntimeWithLabels, ...)
- type LabelInputBuilder
- type LabelRepository
- func (_m *LabelRepository) ListForObject(ctx context.Context, tenant string, objectType model.LabelableObject, ...) (map[string]*model.Label, error)
- func (_m *LabelRepository) ListForObjectIDs(ctx context.Context, tenant string, objectType model.LabelableObject, ...) (map[string]map[string]interface{}, error)
- type RuntimeContextRepository
- func (_m *RuntimeContextRepository) GetByID(ctx context.Context, tenant string, id string) (*model.RuntimeContext, error)
- func (_m *RuntimeContextRepository) GetByRuntimeID(ctx context.Context, tenant string, runtimeID string) (*model.RuntimeContext, error)
- func (_m *RuntimeContextRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.RuntimeContext, error)
- type RuntimeRepository
- func (_m *RuntimeRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Runtime, error)
- func (_m *RuntimeRepository) ListByIDs(ctx context.Context, tenant string, ids []string) ([]*model.Runtime, error)
- func (_m *RuntimeRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.Runtime, error)
- type TenantInputBuilder
- func (_m *TenantInputBuilder) GetTenantForApplicationTemplate(ctx context.Context, tenant string, labels map[string]string) (*webhook.TenantWithLabels, error)
- func (_m *TenantInputBuilder) GetTenantForObject(ctx context.Context, objectID string, resourceType resource.Type) (*webhook.TenantWithLabels, error)
- func (_m *TenantInputBuilder) GetTenantsForApplicationTemplates(ctx context.Context, tenant string, labels map[string]map[string]string, ...) (map[string]*webhook.TenantWithLabels, error)
- func (_m *TenantInputBuilder) GetTenantsForObjects(ctx context.Context, tenant string, objectIDs []string, ...) (map[string]*webhook.TenantWithLabels, error)
- type TenantRepository
- func (_m *TenantRepository) Get(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
- func (_m *TenantRepository) GetByExternalTenant(ctx context.Context, externalTenant string) (*model.BusinessTenantMapping, error)
- func (_m *TenantRepository) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationRepository ¶
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 ¶
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 ¶
func (_m *ApplicationTemplateRepository) Get(ctx context.Context, id string) (*model.ApplicationTemplate, error)
Get provides a mock function with given fields: ctx, id
func (*ApplicationTemplateRepository) ListByIDs ¶
func (_m *ApplicationTemplateRepository) ListByIDs(ctx context.Context, ids []string) ([]*model.ApplicationTemplate, error)
ListByIDs provides a mock function with given fields: ctx, ids
type CertSubjectInputBuilder ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_m *RuntimeContextRepository) GetByID(ctx context.Context, tenant string, id string) (*model.RuntimeContext, error)
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 ¶
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 ¶
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 ¶
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 ¶
func (_m *TenantRepository) Get(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
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