Documentation ¶
Index ¶
- type ApplicationConverter
- func (_m *ApplicationConverter) CreateInputFromGraphQL(ctx context.Context, in graphql.ApplicationRegisterInput) (model.ApplicationRegisterInput, error)
- func (_m *ApplicationConverter) CreateRegisterInputJSONToGQL(in string) (graphql.ApplicationRegisterInput, error)
- func (_m *ApplicationConverter) ToGraphQL(in *model.Application) *graphql.Application
- type ApplicationService
- func (_m *ApplicationService) CreateFromTemplate(ctx context.Context, in model.ApplicationRegisterInput, appTemplateID *string, ...) (string, error)
- func (_m *ApplicationService) Delete(ctx context.Context, id string) error
- func (_m *ApplicationService) ListAll(ctx context.Context) ([]*model.Application, error)
- type ApplicationTemplateConverter
- type ApplicationTemplateService
- func (_m *ApplicationTemplateService) Exists(ctx context.Context, id string) (bool, error)
- func (_m *ApplicationTemplateService) GetByFilters(ctx context.Context, filter []*labelfilter.LabelFilter) (*model.ApplicationTemplate, error)
- func (_m *ApplicationTemplateService) GetLabel(ctx context.Context, appTemplateID string, key string) (*model.Label, error)
- func (_m *ApplicationTemplateService) PrepareApplicationCreateInputJSON(appTemplate *model.ApplicationTemplate, ...) (string, error)
- type LabelService
- func (_m *LabelService) CreateLabel(ctx context.Context, tenant string, id string, labelInput *model.LabelInput) error
- func (_m *LabelService) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, ...) (*model.Label, error)
- func (_m *LabelService) GetLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) (*model.Label, error)
- func (_m *LabelService) UpdateLabel(ctx context.Context, tenant string, id string, labelInput *model.LabelInput) error
- func (_m *LabelService) UpsertLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) error
- type RuntimeCtxService
- func (_m *RuntimeCtxService) Create(ctx context.Context, in model.RuntimeContextInput) (string, error)
- func (_m *RuntimeCtxService) Delete(ctx context.Context, id string) error
- func (_m *RuntimeCtxService) ListByFilter(ctx context.Context, runtimeID string, filter []*labelfilter.LabelFilter, ...) (*model.RuntimeContextPage, error)
- type RuntimeService
- type SubscriptionService
- func (_m *SubscriptionService) DetermineSubscriptionFlow(ctx context.Context, providerID string, region string) (resource.Type, error)
- func (_m *SubscriptionService) SubscribeTenantToApplication(ctx context.Context, providerID string, subaccountTenantID string, ...) (bool, bool, string, string, error)
- func (_m *SubscriptionService) SubscribeTenantToRuntime(ctx context.Context, providerID string, subaccountTenantID string, ...) (bool, error)
- func (_m *SubscriptionService) UnsubscribeTenantFromApplication(ctx context.Context, providerID string, subaccountTenantID string, ...) (bool, error)
- func (_m *SubscriptionService) UnsubscribeTenantFromRuntime(ctx context.Context, providerID string, subaccountTenantID string, ...) (bool, error)
- type TenantService
- func (_m *TenantService) GetInternalTenant(ctx context.Context, externalTenant string) (string, error)
- func (_m *TenantService) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
- func (_m *TenantService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
- type UidService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConverter ¶
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 ¶
func (_m *ApplicationConverter) CreateInputFromGraphQL(ctx context.Context, in graphql.ApplicationRegisterInput) (model.ApplicationRegisterInput, error)
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 ¶
func (_m *ApplicationConverter) ToGraphQL(in *model.Application) *graphql.Application
ToGraphQL provides a mock function with given fields: in
type ApplicationService ¶
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) CreateFromTemplate ¶
func (_m *ApplicationService) CreateFromTemplate(ctx context.Context, in model.ApplicationRegisterInput, appTemplateID *string, systemFieldDiscoveryValue bool) (string, error)
CreateFromTemplate provides a mock function with given fields: ctx, in, appTemplateID, systemFieldDiscoveryValue
func (*ApplicationService) Delete ¶
func (_m *ApplicationService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*ApplicationService) ListAll ¶
func (_m *ApplicationService) ListAll(ctx context.Context) ([]*model.Application, error)
ListAll provides a mock function with given fields: ctx
type ApplicationTemplateConverter ¶
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 ¶
func (_m *ApplicationTemplateConverter) ApplicationFromTemplateInputFromGraphQL(appTemplate *model.ApplicationTemplate, in graphql.ApplicationFromTemplateInput) (model.ApplicationFromTemplateInput, error)
ApplicationFromTemplateInputFromGraphQL provides a mock function with given fields: appTemplate, in
type ApplicationTemplateService ¶
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) Exists ¶
Exists provides a mock function with given fields: ctx, id
func (*ApplicationTemplateService) GetByFilters ¶
func (_m *ApplicationTemplateService) GetByFilters(ctx context.Context, filter []*labelfilter.LabelFilter) (*model.ApplicationTemplate, error)
GetByFilters provides a mock function with given fields: ctx, filter
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) PrepareApplicationCreateInputJSON ¶
func (_m *ApplicationTemplateService) PrepareApplicationCreateInputJSON(appTemplate *model.ApplicationTemplate, values model.ApplicationFromTemplateInputValues) (string, error)
PrepareApplicationCreateInputJSON provides a mock function with given fields: appTemplate, values
type LabelService ¶
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) CreateLabel ¶
func (_m *LabelService) CreateLabel(ctx context.Context, tenant string, id string, labelInput *model.LabelInput) error
CreateLabel provides a mock function with given fields: ctx, tenant, id, labelInput
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) GetLabel ¶
func (_m *LabelService) GetLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) (*model.Label, error)
GetLabel provides a mock function with given fields: ctx, tenant, labelInput
func (*LabelService) UpdateLabel ¶
func (_m *LabelService) UpdateLabel(ctx context.Context, tenant string, id string, labelInput *model.LabelInput) error
UpdateLabel provides a mock function with given fields: ctx, tenant, id, labelInput
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
type RuntimeCtxService ¶
RuntimeCtxService is an autogenerated mock type for the RuntimeCtxService type
func NewRuntimeCtxService ¶
func NewRuntimeCtxService(t interface { mock.TestingT Cleanup(func()) }) *RuntimeCtxService
NewRuntimeCtxService creates a new instance of RuntimeCtxService. 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 (*RuntimeCtxService) Create ¶
func (_m *RuntimeCtxService) Create(ctx context.Context, in model.RuntimeContextInput) (string, error)
Create provides a mock function with given fields: ctx, in
func (*RuntimeCtxService) Delete ¶
func (_m *RuntimeCtxService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*RuntimeCtxService) ListByFilter ¶
func (_m *RuntimeCtxService) ListByFilter(ctx context.Context, runtimeID string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimeContextPage, error)
ListByFilter provides a mock function with given fields: ctx, runtimeID, filter, pageSize, cursor
type RuntimeService ¶
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) 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) GetByFiltersGlobal ¶
func (_m *RuntimeService) GetByFiltersGlobal(ctx context.Context, filters []*labelfilter.LabelFilter) (*model.Runtime, error)
GetByFiltersGlobal provides a mock function with given fields: ctx, filters
type SubscriptionService ¶
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) DetermineSubscriptionFlow ¶
func (_m *SubscriptionService) DetermineSubscriptionFlow(ctx context.Context, providerID string, region string) (resource.Type, error)
DetermineSubscriptionFlow provides a mock function with given fields: ctx, providerID, region
func (*SubscriptionService) SubscribeTenantToApplication ¶
func (_m *SubscriptionService) SubscribeTenantToApplication(ctx context.Context, providerID string, subaccountTenantID string, consumerTenantID string, providerSubaccountID string, region string, subscribedAppName string, subscriptionID string, subscriptionPayload string) (bool, bool, string, string, error)
SubscribeTenantToApplication provides a mock function with given fields: ctx, providerID, subaccountTenantID, consumerTenantID, providerSubaccountID, region, subscribedAppName, subscriptionID, subscriptionPayload
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) UnsubscribeTenantFromApplication ¶
func (_m *SubscriptionService) UnsubscribeTenantFromApplication(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionID string) (bool, error)
UnsubscribeTenantFromApplication provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, 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 TenantService ¶
TenantService is an autogenerated mock type for the TenantService type
func NewTenantService ¶
func NewTenantService(t mockConstructorTestingTNewTenantService) *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.
func (*TenantService) GetInternalTenant ¶
func (_m *TenantService) GetInternalTenant(ctx context.Context, externalTenant string) (string, error)
GetInternalTenant provides a mock function with given fields: ctx, externalTenant
func (*TenantService) GetLowestOwnerForResource ¶
func (_m *TenantService) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
GetLowestOwnerForResource provides a mock function with given fields: ctx, resourceType, objectID
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 UidService ¶
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: