Documentation ¶
Index ¶
- type AuditService
- func (_m *AuditService) Create(ctx context.Context, log *audit.Log) error
- func (_m *AuditService) EXPECT() *AuditService_Expecter
- func (_m *AuditService) GetByID(ctx context.Context, id string) (audit.Log, error)
- func (_m *AuditService) List(ctx context.Context, filter audit.Filter) ([]audit.Log, error)
- type AuditService_Create_Call
- func (_c *AuditService_Create_Call) Return(_a0 error) *AuditService_Create_Call
- func (_c *AuditService_Create_Call) Run(run func(ctx context.Context, log *audit.Log)) *AuditService_Create_Call
- func (_c *AuditService_Create_Call) RunAndReturn(run func(context.Context, *audit.Log) error) *AuditService_Create_Call
- type AuditService_Expecter
- type AuditService_GetByID_Call
- func (_c *AuditService_GetByID_Call) Return(_a0 audit.Log, _a1 error) *AuditService_GetByID_Call
- func (_c *AuditService_GetByID_Call) Run(run func(ctx context.Context, id string)) *AuditService_GetByID_Call
- func (_c *AuditService_GetByID_Call) RunAndReturn(run func(context.Context, string) (audit.Log, error)) *AuditService_GetByID_Call
- type AuditService_List_Call
- func (_c *AuditService_List_Call) Return(_a0 []audit.Log, _a1 error) *AuditService_List_Call
- func (_c *AuditService_List_Call) Run(run func(ctx context.Context, filter audit.Filter)) *AuditService_List_Call
- func (_c *AuditService_List_Call) RunAndReturn(run func(context.Context, audit.Filter) ([]audit.Log, error)) *AuditService_List_Call
- type AuthnService
- func (_m *AuthnService) BuildToken(ctx context.Context, principalID string, metadata map[string]string) ([]byte, error)
- func (_m *AuthnService) EXPECT() *AuthnService_Expecter
- func (_m *AuthnService) FinishFlow(ctx context.Context, request authenticate.RegistrationFinishRequest) (*authenticate.RegistrationFinishResponse, error)
- func (_m *AuthnService) GetPrincipal(ctx context.Context, via ...authenticate.ClientAssertion) (authenticate.Principal, error)
- func (_m *AuthnService) InitFlows(ctx context.Context) error
- func (_m *AuthnService) JWKs(ctx context.Context) jwk.Set
- func (_m *AuthnService) SanitizeCallbackURL(url string) string
- func (_m *AuthnService) SanitizeReturnToURL(url string) string
- func (_m *AuthnService) StartFlow(ctx context.Context, request authenticate.RegistrationStartRequest) (*authenticate.RegistrationStartResponse, error)
- func (_m *AuthnService) SupportedStrategies() []string
- type AuthnService_BuildToken_Call
- func (_c *AuthnService_BuildToken_Call) Return(_a0 []byte, _a1 error) *AuthnService_BuildToken_Call
- func (_c *AuthnService_BuildToken_Call) Run(run func(ctx context.Context, principalID string, metadata map[string]string)) *AuthnService_BuildToken_Call
- func (_c *AuthnService_BuildToken_Call) RunAndReturn(run func(context.Context, string, map[string]string) ([]byte, error)) *AuthnService_BuildToken_Call
- type AuthnService_Expecter
- func (_e *AuthnService_Expecter) BuildToken(ctx interface{}, principalID interface{}, metadata interface{}) *AuthnService_BuildToken_Call
- func (_e *AuthnService_Expecter) FinishFlow(ctx interface{}, request interface{}) *AuthnService_FinishFlow_Call
- func (_e *AuthnService_Expecter) GetPrincipal(ctx interface{}, via ...interface{}) *AuthnService_GetPrincipal_Call
- func (_e *AuthnService_Expecter) InitFlows(ctx interface{}) *AuthnService_InitFlows_Call
- func (_e *AuthnService_Expecter) JWKs(ctx interface{}) *AuthnService_JWKs_Call
- func (_e *AuthnService_Expecter) SanitizeCallbackURL(url interface{}) *AuthnService_SanitizeCallbackURL_Call
- func (_e *AuthnService_Expecter) SanitizeReturnToURL(url interface{}) *AuthnService_SanitizeReturnToURL_Call
- func (_e *AuthnService_Expecter) StartFlow(ctx interface{}, request interface{}) *AuthnService_StartFlow_Call
- func (_e *AuthnService_Expecter) SupportedStrategies() *AuthnService_SupportedStrategies_Call
- type AuthnService_FinishFlow_Call
- func (_c *AuthnService_FinishFlow_Call) Return(_a0 *authenticate.RegistrationFinishResponse, _a1 error) *AuthnService_FinishFlow_Call
- func (_c *AuthnService_FinishFlow_Call) Run(run func(ctx context.Context, request authenticate.RegistrationFinishRequest)) *AuthnService_FinishFlow_Call
- func (_c *AuthnService_FinishFlow_Call) RunAndReturn(...) *AuthnService_FinishFlow_Call
- type AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) Return(_a0 authenticate.Principal, _a1 error) *AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) Run(run func(ctx context.Context, via ...authenticate.ClientAssertion)) *AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) RunAndReturn(...) *AuthnService_GetPrincipal_Call
- type AuthnService_InitFlows_Call
- func (_c *AuthnService_InitFlows_Call) Return(_a0 error) *AuthnService_InitFlows_Call
- func (_c *AuthnService_InitFlows_Call) Run(run func(ctx context.Context)) *AuthnService_InitFlows_Call
- func (_c *AuthnService_InitFlows_Call) RunAndReturn(run func(context.Context) error) *AuthnService_InitFlows_Call
- type AuthnService_JWKs_Call
- type AuthnService_SanitizeCallbackURL_Call
- func (_c *AuthnService_SanitizeCallbackURL_Call) Return(_a0 string) *AuthnService_SanitizeCallbackURL_Call
- func (_c *AuthnService_SanitizeCallbackURL_Call) Run(run func(url string)) *AuthnService_SanitizeCallbackURL_Call
- func (_c *AuthnService_SanitizeCallbackURL_Call) RunAndReturn(run func(string) string) *AuthnService_SanitizeCallbackURL_Call
- type AuthnService_SanitizeReturnToURL_Call
- func (_c *AuthnService_SanitizeReturnToURL_Call) Return(_a0 string) *AuthnService_SanitizeReturnToURL_Call
- func (_c *AuthnService_SanitizeReturnToURL_Call) Run(run func(url string)) *AuthnService_SanitizeReturnToURL_Call
- func (_c *AuthnService_SanitizeReturnToURL_Call) RunAndReturn(run func(string) string) *AuthnService_SanitizeReturnToURL_Call
- type AuthnService_StartFlow_Call
- func (_c *AuthnService_StartFlow_Call) Return(_a0 *authenticate.RegistrationStartResponse, _a1 error) *AuthnService_StartFlow_Call
- func (_c *AuthnService_StartFlow_Call) Run(run func(ctx context.Context, request authenticate.RegistrationStartRequest)) *AuthnService_StartFlow_Call
- func (_c *AuthnService_StartFlow_Call) RunAndReturn(...) *AuthnService_StartFlow_Call
- type AuthnService_SupportedStrategies_Call
- func (_c *AuthnService_SupportedStrategies_Call) Return(_a0 []string) *AuthnService_SupportedStrategies_Call
- func (_c *AuthnService_SupportedStrategies_Call) Run(run func()) *AuthnService_SupportedStrategies_Call
- func (_c *AuthnService_SupportedStrategies_Call) RunAndReturn(run func() []string) *AuthnService_SupportedStrategies_Call
- type BootstrapService
- type BootstrapService_AppendSchema_Call
- func (_c *BootstrapService_AppendSchema_Call) Return(_a0 error) *BootstrapService_AppendSchema_Call
- func (_c *BootstrapService_AppendSchema_Call) Run(run func(ctx context.Context, definition schema.ServiceDefinition)) *BootstrapService_AppendSchema_Call
- func (_c *BootstrapService_AppendSchema_Call) RunAndReturn(run func(context.Context, schema.ServiceDefinition) error) *BootstrapService_AppendSchema_Call
- type BootstrapService_Expecter
- type CascadeDeleter
- func (_m *CascadeDeleter) DeleteOrganization(ctx context.Context, id string) error
- func (_m *CascadeDeleter) DeleteProject(ctx context.Context, id string) error
- func (_m *CascadeDeleter) DeleteUser(ctx context.Context, userID string) error
- func (_m *CascadeDeleter) EXPECT() *CascadeDeleter_Expecter
- func (_m *CascadeDeleter) RemoveUsersFromOrg(ctx context.Context, orgID string, userIDs []string) error
- type CascadeDeleter_DeleteOrganization_Call
- func (_c *CascadeDeleter_DeleteOrganization_Call) Return(_a0 error) *CascadeDeleter_DeleteOrganization_Call
- func (_c *CascadeDeleter_DeleteOrganization_Call) Run(run func(ctx context.Context, id string)) *CascadeDeleter_DeleteOrganization_Call
- func (_c *CascadeDeleter_DeleteOrganization_Call) RunAndReturn(run func(context.Context, string) error) *CascadeDeleter_DeleteOrganization_Call
- type CascadeDeleter_DeleteProject_Call
- func (_c *CascadeDeleter_DeleteProject_Call) Return(_a0 error) *CascadeDeleter_DeleteProject_Call
- func (_c *CascadeDeleter_DeleteProject_Call) Run(run func(ctx context.Context, id string)) *CascadeDeleter_DeleteProject_Call
- func (_c *CascadeDeleter_DeleteProject_Call) RunAndReturn(run func(context.Context, string) error) *CascadeDeleter_DeleteProject_Call
- type CascadeDeleter_DeleteUser_Call
- func (_c *CascadeDeleter_DeleteUser_Call) Return(_a0 error) *CascadeDeleter_DeleteUser_Call
- func (_c *CascadeDeleter_DeleteUser_Call) Run(run func(ctx context.Context, userID string)) *CascadeDeleter_DeleteUser_Call
- func (_c *CascadeDeleter_DeleteUser_Call) RunAndReturn(run func(context.Context, string) error) *CascadeDeleter_DeleteUser_Call
- type CascadeDeleter_Expecter
- func (_e *CascadeDeleter_Expecter) DeleteOrganization(ctx interface{}, id interface{}) *CascadeDeleter_DeleteOrganization_Call
- func (_e *CascadeDeleter_Expecter) DeleteProject(ctx interface{}, id interface{}) *CascadeDeleter_DeleteProject_Call
- func (_e *CascadeDeleter_Expecter) DeleteUser(ctx interface{}, userID interface{}) *CascadeDeleter_DeleteUser_Call
- func (_e *CascadeDeleter_Expecter) RemoveUsersFromOrg(ctx interface{}, orgID interface{}, userIDs interface{}) *CascadeDeleter_RemoveUsersFromOrg_Call
- type CascadeDeleter_RemoveUsersFromOrg_Call
- func (_c *CascadeDeleter_RemoveUsersFromOrg_Call) Return(_a0 error) *CascadeDeleter_RemoveUsersFromOrg_Call
- func (_c *CascadeDeleter_RemoveUsersFromOrg_Call) Run(run func(ctx context.Context, orgID string, userIDs []string)) *CascadeDeleter_RemoveUsersFromOrg_Call
- func (_c *CascadeDeleter_RemoveUsersFromOrg_Call) RunAndReturn(run func(context.Context, string, []string) error) *CascadeDeleter_RemoveUsersFromOrg_Call
- type CheckoutService
- func (_m *CheckoutService) Apply(ctx context.Context, ch checkout.Checkout) (*subscription.Subscription, *product.Product, error)
- func (_m *CheckoutService) Create(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
- func (_m *CheckoutService) CreateSessionForCustomerPortal(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
- func (_m *CheckoutService) CreateSessionForPaymentMethod(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
- func (_m *CheckoutService) EXPECT() *CheckoutService_Expecter
- func (_m *CheckoutService) GetByID(ctx context.Context, id string) (checkout.Checkout, error)
- func (_m *CheckoutService) List(ctx context.Context, filter checkout.Filter) ([]checkout.Checkout, error)
- type CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) Return(_a0 *subscription.Subscription, _a1 *product.Product, _a2 error) *CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Apply_Call
- func (_c *CheckoutService_Apply_Call) RunAndReturn(...) *CheckoutService_Apply_Call
- type CheckoutService_CreateSessionForCustomerPortal_Call
- func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForCustomerPortal_Call
- func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForCustomerPortal_Call
- func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForCustomerPortal_Call
- type CheckoutService_CreateSessionForPaymentMethod_Call
- func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForPaymentMethod_Call
- func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForPaymentMethod_Call
- func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForPaymentMethod_Call
- type CheckoutService_Create_Call
- func (_c *CheckoutService_Create_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_Create_Call
- func (_c *CheckoutService_Create_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Create_Call
- func (_c *CheckoutService_Create_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_Create_Call
- type CheckoutService_Expecter
- func (_e *CheckoutService_Expecter) Apply(ctx interface{}, ch interface{}) *CheckoutService_Apply_Call
- func (_e *CheckoutService_Expecter) Create(ctx interface{}, ch interface{}) *CheckoutService_Create_Call
- func (_e *CheckoutService_Expecter) CreateSessionForCustomerPortal(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForCustomerPortal_Call
- func (_e *CheckoutService_Expecter) CreateSessionForPaymentMethod(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForPaymentMethod_Call
- func (_e *CheckoutService_Expecter) GetByID(ctx interface{}, id interface{}) *CheckoutService_GetByID_Call
- func (_e *CheckoutService_Expecter) List(ctx interface{}, filter interface{}) *CheckoutService_List_Call
- type CheckoutService_GetByID_Call
- func (_c *CheckoutService_GetByID_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_GetByID_Call
- func (_c *CheckoutService_GetByID_Call) Run(run func(ctx context.Context, id string)) *CheckoutService_GetByID_Call
- func (_c *CheckoutService_GetByID_Call) RunAndReturn(run func(context.Context, string) (checkout.Checkout, error)) *CheckoutService_GetByID_Call
- type CheckoutService_List_Call
- func (_c *CheckoutService_List_Call) Return(_a0 []checkout.Checkout, _a1 error) *CheckoutService_List_Call
- func (_c *CheckoutService_List_Call) Run(run func(ctx context.Context, filter checkout.Filter)) *CheckoutService_List_Call
- func (_c *CheckoutService_List_Call) RunAndReturn(run func(context.Context, checkout.Filter) ([]checkout.Checkout, error)) *CheckoutService_List_Call
- type CreditService
- type CreditService_Expecter
- type CreditService_GetBalance_Call
- func (_c *CreditService_GetBalance_Call) Return(_a0 int64, _a1 error) *CreditService_GetBalance_Call
- func (_c *CreditService_GetBalance_Call) Run(run func(ctx context.Context, accountID string)) *CreditService_GetBalance_Call
- func (_c *CreditService_GetBalance_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *CreditService_GetBalance_Call
- type CreditService_List_Call
- func (_c *CreditService_List_Call) Return(_a0 []credit.Transaction, _a1 error) *CreditService_List_Call
- func (_c *CreditService_List_Call) Run(run func(ctx context.Context, filter credit.Filter)) *CreditService_List_Call
- func (_c *CreditService_List_Call) RunAndReturn(run func(context.Context, credit.Filter) ([]credit.Transaction, error)) *CreditService_List_Call
- type CustomerService
- func (_m *CustomerService) Create(ctx context.Context, _a1 customer.Customer, offline bool) (customer.Customer, error)
- func (_m *CustomerService) Delete(ctx context.Context, id string) error
- func (_m *CustomerService) Disable(ctx context.Context, id string) error
- func (_m *CustomerService) EXPECT() *CustomerService_Expecter
- func (_m *CustomerService) Enable(ctx context.Context, id string) error
- func (_m *CustomerService) GetByID(ctx context.Context, id string) (customer.Customer, error)
- func (_m *CustomerService) List(ctx context.Context, filter customer.Filter) ([]customer.Customer, error)
- func (_m *CustomerService) ListPaymentMethods(ctx context.Context, id string) ([]customer.PaymentMethod, error)
- func (_m *CustomerService) RegisterToProviderIfRequired(ctx context.Context, customerID string) (customer.Customer, error)
- func (_m *CustomerService) Update(ctx context.Context, _a1 customer.Customer) (customer.Customer, error)
- func (_m *CustomerService) UpdateCreditMinByID(ctx context.Context, customerID string, limit int64) (customer.Customer, error)
- type CustomerService_Create_Call
- func (_c *CustomerService_Create_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_Create_Call
- func (_c *CustomerService_Create_Call) Run(run func(ctx context.Context, _a1 customer.Customer, offline bool)) *CustomerService_Create_Call
- func (_c *CustomerService_Create_Call) RunAndReturn(run func(context.Context, customer.Customer, bool) (customer.Customer, error)) *CustomerService_Create_Call
- type CustomerService_Delete_Call
- func (_c *CustomerService_Delete_Call) Return(_a0 error) *CustomerService_Delete_Call
- func (_c *CustomerService_Delete_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Delete_Call
- func (_c *CustomerService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Delete_Call
- type CustomerService_Disable_Call
- func (_c *CustomerService_Disable_Call) Return(_a0 error) *CustomerService_Disable_Call
- func (_c *CustomerService_Disable_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Disable_Call
- func (_c *CustomerService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Disable_Call
- type CustomerService_Enable_Call
- func (_c *CustomerService_Enable_Call) Return(_a0 error) *CustomerService_Enable_Call
- func (_c *CustomerService_Enable_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Enable_Call
- func (_c *CustomerService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Enable_Call
- type CustomerService_Expecter
- func (_e *CustomerService_Expecter) Create(ctx interface{}, _a1 interface{}, offline interface{}) *CustomerService_Create_Call
- func (_e *CustomerService_Expecter) Delete(ctx interface{}, id interface{}) *CustomerService_Delete_Call
- func (_e *CustomerService_Expecter) Disable(ctx interface{}, id interface{}) *CustomerService_Disable_Call
- func (_e *CustomerService_Expecter) Enable(ctx interface{}, id interface{}) *CustomerService_Enable_Call
- func (_e *CustomerService_Expecter) GetByID(ctx interface{}, id interface{}) *CustomerService_GetByID_Call
- func (_e *CustomerService_Expecter) List(ctx interface{}, filter interface{}) *CustomerService_List_Call
- func (_e *CustomerService_Expecter) ListPaymentMethods(ctx interface{}, id interface{}) *CustomerService_ListPaymentMethods_Call
- func (_e *CustomerService_Expecter) RegisterToProviderIfRequired(ctx interface{}, customerID interface{}) *CustomerService_RegisterToProviderIfRequired_Call
- func (_e *CustomerService_Expecter) Update(ctx interface{}, _a1 interface{}) *CustomerService_Update_Call
- func (_e *CustomerService_Expecter) UpdateCreditMinByID(ctx interface{}, customerID interface{}, limit interface{}) *CustomerService_UpdateCreditMinByID_Call
- type CustomerService_GetByID_Call
- func (_c *CustomerService_GetByID_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_GetByID_Call
- func (_c *CustomerService_GetByID_Call) Run(run func(ctx context.Context, id string)) *CustomerService_GetByID_Call
- func (_c *CustomerService_GetByID_Call) RunAndReturn(run func(context.Context, string) (customer.Customer, error)) *CustomerService_GetByID_Call
- type CustomerService_ListPaymentMethods_Call
- func (_c *CustomerService_ListPaymentMethods_Call) Return(_a0 []customer.PaymentMethod, _a1 error) *CustomerService_ListPaymentMethods_Call
- func (_c *CustomerService_ListPaymentMethods_Call) Run(run func(ctx context.Context, id string)) *CustomerService_ListPaymentMethods_Call
- func (_c *CustomerService_ListPaymentMethods_Call) RunAndReturn(run func(context.Context, string) ([]customer.PaymentMethod, error)) *CustomerService_ListPaymentMethods_Call
- type CustomerService_List_Call
- func (_c *CustomerService_List_Call) Return(_a0 []customer.Customer, _a1 error) *CustomerService_List_Call
- func (_c *CustomerService_List_Call) Run(run func(ctx context.Context, filter customer.Filter)) *CustomerService_List_Call
- func (_c *CustomerService_List_Call) RunAndReturn(run func(context.Context, customer.Filter) ([]customer.Customer, error)) *CustomerService_List_Call
- type CustomerService_RegisterToProviderIfRequired_Call
- func (_c *CustomerService_RegisterToProviderIfRequired_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_RegisterToProviderIfRequired_Call
- func (_c *CustomerService_RegisterToProviderIfRequired_Call) Run(run func(ctx context.Context, customerID string)) *CustomerService_RegisterToProviderIfRequired_Call
- func (_c *CustomerService_RegisterToProviderIfRequired_Call) RunAndReturn(run func(context.Context, string) (customer.Customer, error)) *CustomerService_RegisterToProviderIfRequired_Call
- type CustomerService_UpdateCreditMinByID_Call
- func (_c *CustomerService_UpdateCreditMinByID_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_UpdateCreditMinByID_Call
- func (_c *CustomerService_UpdateCreditMinByID_Call) Run(run func(ctx context.Context, customerID string, limit int64)) *CustomerService_UpdateCreditMinByID_Call
- func (_c *CustomerService_UpdateCreditMinByID_Call) RunAndReturn(run func(context.Context, string, int64) (customer.Customer, error)) *CustomerService_UpdateCreditMinByID_Call
- type CustomerService_Update_Call
- func (_c *CustomerService_Update_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_Update_Call
- func (_c *CustomerService_Update_Call) Run(run func(ctx context.Context, _a1 customer.Customer)) *CustomerService_Update_Call
- func (_c *CustomerService_Update_Call) RunAndReturn(run func(context.Context, customer.Customer) (customer.Customer, error)) *CustomerService_Update_Call
- type DomainService
- func (_m *DomainService) Create(ctx context.Context, toCreate domain.Domain) (domain.Domain, error)
- func (_m *DomainService) Delete(ctx context.Context, id string) error
- func (_m *DomainService) EXPECT() *DomainService_Expecter
- func (_m *DomainService) Get(ctx context.Context, id string) (domain.Domain, error)
- func (_m *DomainService) Join(ctx context.Context, orgID string, userID string) error
- func (_m *DomainService) List(ctx context.Context, flt domain.Filter) ([]domain.Domain, error)
- func (_m *DomainService) ListJoinableOrgsByDomain(ctx context.Context, email string) ([]string, error)
- func (_m *DomainService) VerifyDomain(ctx context.Context, id string) (domain.Domain, error)
- type DomainService_Create_Call
- func (_c *DomainService_Create_Call) Return(_a0 domain.Domain, _a1 error) *DomainService_Create_Call
- func (_c *DomainService_Create_Call) Run(run func(ctx context.Context, toCreate domain.Domain)) *DomainService_Create_Call
- func (_c *DomainService_Create_Call) RunAndReturn(run func(context.Context, domain.Domain) (domain.Domain, error)) *DomainService_Create_Call
- type DomainService_Delete_Call
- func (_c *DomainService_Delete_Call) Return(_a0 error) *DomainService_Delete_Call
- func (_c *DomainService_Delete_Call) Run(run func(ctx context.Context, id string)) *DomainService_Delete_Call
- func (_c *DomainService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *DomainService_Delete_Call
- type DomainService_Expecter
- func (_e *DomainService_Expecter) Create(ctx interface{}, toCreate interface{}) *DomainService_Create_Call
- func (_e *DomainService_Expecter) Delete(ctx interface{}, id interface{}) *DomainService_Delete_Call
- func (_e *DomainService_Expecter) Get(ctx interface{}, id interface{}) *DomainService_Get_Call
- func (_e *DomainService_Expecter) Join(ctx interface{}, orgID interface{}, userID interface{}) *DomainService_Join_Call
- func (_e *DomainService_Expecter) List(ctx interface{}, flt interface{}) *DomainService_List_Call
- func (_e *DomainService_Expecter) ListJoinableOrgsByDomain(ctx interface{}, email interface{}) *DomainService_ListJoinableOrgsByDomain_Call
- func (_e *DomainService_Expecter) VerifyDomain(ctx interface{}, id interface{}) *DomainService_VerifyDomain_Call
- type DomainService_Get_Call
- func (_c *DomainService_Get_Call) Return(_a0 domain.Domain, _a1 error) *DomainService_Get_Call
- func (_c *DomainService_Get_Call) Run(run func(ctx context.Context, id string)) *DomainService_Get_Call
- func (_c *DomainService_Get_Call) RunAndReturn(run func(context.Context, string) (domain.Domain, error)) *DomainService_Get_Call
- type DomainService_Join_Call
- func (_c *DomainService_Join_Call) Return(_a0 error) *DomainService_Join_Call
- func (_c *DomainService_Join_Call) Run(run func(ctx context.Context, orgID string, userID string)) *DomainService_Join_Call
- func (_c *DomainService_Join_Call) RunAndReturn(run func(context.Context, string, string) error) *DomainService_Join_Call
- type DomainService_ListJoinableOrgsByDomain_Call
- func (_c *DomainService_ListJoinableOrgsByDomain_Call) Return(_a0 []string, _a1 error) *DomainService_ListJoinableOrgsByDomain_Call
- func (_c *DomainService_ListJoinableOrgsByDomain_Call) Run(run func(ctx context.Context, email string)) *DomainService_ListJoinableOrgsByDomain_Call
- func (_c *DomainService_ListJoinableOrgsByDomain_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *DomainService_ListJoinableOrgsByDomain_Call
- type DomainService_List_Call
- func (_c *DomainService_List_Call) Return(_a0 []domain.Domain, _a1 error) *DomainService_List_Call
- func (_c *DomainService_List_Call) Run(run func(ctx context.Context, flt domain.Filter)) *DomainService_List_Call
- func (_c *DomainService_List_Call) RunAndReturn(run func(context.Context, domain.Filter) ([]domain.Domain, error)) *DomainService_List_Call
- type DomainService_VerifyDomain_Call
- func (_c *DomainService_VerifyDomain_Call) Return(_a0 domain.Domain, _a1 error) *DomainService_VerifyDomain_Call
- func (_c *DomainService_VerifyDomain_Call) Run(run func(ctx context.Context, id string)) *DomainService_VerifyDomain_Call
- func (_c *DomainService_VerifyDomain_Call) RunAndReturn(run func(context.Context, string) (domain.Domain, error)) *DomainService_VerifyDomain_Call
- type EntitlementService
- type EntitlementService_CheckPlanEligibility_Call
- func (_c *EntitlementService_CheckPlanEligibility_Call) Return(_a0 error) *EntitlementService_CheckPlanEligibility_Call
- func (_c *EntitlementService_CheckPlanEligibility_Call) Run(run func(ctx context.Context, customerID string)) *EntitlementService_CheckPlanEligibility_Call
- func (_c *EntitlementService_CheckPlanEligibility_Call) RunAndReturn(run func(context.Context, string) error) *EntitlementService_CheckPlanEligibility_Call
- type EntitlementService_Check_Call
- func (_c *EntitlementService_Check_Call) Return(_a0 bool, _a1 error) *EntitlementService_Check_Call
- func (_c *EntitlementService_Check_Call) Run(run func(ctx context.Context, customerID string, featureID string)) *EntitlementService_Check_Call
- func (_c *EntitlementService_Check_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *EntitlementService_Check_Call
- type EntitlementService_Expecter
- type EventService
- type EventService_BillingWebhook_Call
- func (_c *EventService_BillingWebhook_Call) Return(_a0 error) *EventService_BillingWebhook_Call
- func (_c *EventService_BillingWebhook_Call) Run(run func(ctx context.Context, _a1 event.ProviderWebhookEvent)) *EventService_BillingWebhook_Call
- func (_c *EventService_BillingWebhook_Call) RunAndReturn(run func(context.Context, event.ProviderWebhookEvent) error) *EventService_BillingWebhook_Call
- type EventService_Expecter
- type GroupService
- func (_m *GroupService) AddUsers(ctx context.Context, groupID string, userID []string) error
- func (_m *GroupService) Create(ctx context.Context, grp group.Group) (group.Group, error)
- func (_m *GroupService) Delete(ctx context.Context, id string) error
- func (_m *GroupService) Disable(ctx context.Context, id string) error
- func (_m *GroupService) EXPECT() *GroupService_Expecter
- func (_m *GroupService) Enable(ctx context.Context, id string) error
- func (_m *GroupService) Get(ctx context.Context, id string) (group.Group, error)
- func (_m *GroupService) List(ctx context.Context, flt group.Filter) ([]group.Group, error)
- func (_m *GroupService) ListByUser(ctx context.Context, principalId string, principalType string, ...) ([]group.Group, error)
- func (_m *GroupService) RemoveUsers(ctx context.Context, groupID string, userID []string) error
- func (_m *GroupService) Update(ctx context.Context, grp group.Group) (group.Group, error)
- type GroupService_AddUsers_Call
- func (_c *GroupService_AddUsers_Call) Return(_a0 error) *GroupService_AddUsers_Call
- func (_c *GroupService_AddUsers_Call) Run(run func(ctx context.Context, groupID string, userID []string)) *GroupService_AddUsers_Call
- func (_c *GroupService_AddUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *GroupService_AddUsers_Call
- type GroupService_Create_Call
- func (_c *GroupService_Create_Call) Return(_a0 group.Group, _a1 error) *GroupService_Create_Call
- func (_c *GroupService_Create_Call) Run(run func(ctx context.Context, grp group.Group)) *GroupService_Create_Call
- func (_c *GroupService_Create_Call) RunAndReturn(run func(context.Context, group.Group) (group.Group, error)) *GroupService_Create_Call
- type GroupService_Delete_Call
- func (_c *GroupService_Delete_Call) Return(_a0 error) *GroupService_Delete_Call
- func (_c *GroupService_Delete_Call) Run(run func(ctx context.Context, id string)) *GroupService_Delete_Call
- func (_c *GroupService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Delete_Call
- type GroupService_Disable_Call
- func (_c *GroupService_Disable_Call) Return(_a0 error) *GroupService_Disable_Call
- func (_c *GroupService_Disable_Call) Run(run func(ctx context.Context, id string)) *GroupService_Disable_Call
- func (_c *GroupService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Disable_Call
- type GroupService_Enable_Call
- func (_c *GroupService_Enable_Call) Return(_a0 error) *GroupService_Enable_Call
- func (_c *GroupService_Enable_Call) Run(run func(ctx context.Context, id string)) *GroupService_Enable_Call
- func (_c *GroupService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Enable_Call
- type GroupService_Expecter
- func (_e *GroupService_Expecter) AddUsers(ctx interface{}, groupID interface{}, userID interface{}) *GroupService_AddUsers_Call
- func (_e *GroupService_Expecter) Create(ctx interface{}, grp interface{}) *GroupService_Create_Call
- func (_e *GroupService_Expecter) Delete(ctx interface{}, id interface{}) *GroupService_Delete_Call
- func (_e *GroupService_Expecter) Disable(ctx interface{}, id interface{}) *GroupService_Disable_Call
- func (_e *GroupService_Expecter) Enable(ctx interface{}, id interface{}) *GroupService_Enable_Call
- func (_e *GroupService_Expecter) Get(ctx interface{}, id interface{}) *GroupService_Get_Call
- func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call
- func (_e *GroupService_Expecter) ListByUser(ctx interface{}, principalId interface{}, principalType interface{}, ...) *GroupService_ListByUser_Call
- func (_e *GroupService_Expecter) RemoveUsers(ctx interface{}, groupID interface{}, userID interface{}) *GroupService_RemoveUsers_Call
- func (_e *GroupService_Expecter) Update(ctx interface{}, grp interface{}) *GroupService_Update_Call
- type GroupService_Get_Call
- func (_c *GroupService_Get_Call) Return(_a0 group.Group, _a1 error) *GroupService_Get_Call
- func (_c *GroupService_Get_Call) Run(run func(ctx context.Context, id string)) *GroupService_Get_Call
- func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
- type GroupService_ListByUser_Call
- func (_c *GroupService_ListByUser_Call) Return(_a0 []group.Group, _a1 error) *GroupService_ListByUser_Call
- func (_c *GroupService_ListByUser_Call) Run(run func(ctx context.Context, principalId string, principalType string, ...)) *GroupService_ListByUser_Call
- func (_c *GroupService_ListByUser_Call) RunAndReturn(run func(context.Context, string, string, group.Filter) ([]group.Group, error)) *GroupService_ListByUser_Call
- type GroupService_List_Call
- func (_c *GroupService_List_Call) Return(_a0 []group.Group, _a1 error) *GroupService_List_Call
- func (_c *GroupService_List_Call) Run(run func(ctx context.Context, flt group.Filter)) *GroupService_List_Call
- func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_Call
- type GroupService_RemoveUsers_Call
- func (_c *GroupService_RemoveUsers_Call) Return(_a0 error) *GroupService_RemoveUsers_Call
- func (_c *GroupService_RemoveUsers_Call) Run(run func(ctx context.Context, groupID string, userID []string)) *GroupService_RemoveUsers_Call
- func (_c *GroupService_RemoveUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *GroupService_RemoveUsers_Call
- type GroupService_Update_Call
- func (_c *GroupService_Update_Call) Return(_a0 group.Group, _a1 error) *GroupService_Update_Call
- func (_c *GroupService_Update_Call) Run(run func(ctx context.Context, grp group.Group)) *GroupService_Update_Call
- func (_c *GroupService_Update_Call) RunAndReturn(run func(context.Context, group.Group) (group.Group, error)) *GroupService_Update_Call
- type InvitationService
- func (_m *InvitationService) Accept(ctx context.Context, id uuid.UUID) error
- func (_m *InvitationService) Create(ctx context.Context, inv invitation.Invitation) (invitation.Invitation, error)
- func (_m *InvitationService) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *InvitationService) EXPECT() *InvitationService_Expecter
- func (_m *InvitationService) Get(ctx context.Context, id uuid.UUID) (invitation.Invitation, error)
- func (_m *InvitationService) List(ctx context.Context, filter invitation.Filter) ([]invitation.Invitation, error)
- func (_m *InvitationService) ListByUser(ctx context.Context, userID string) ([]invitation.Invitation, error)
- type InvitationService_Accept_Call
- func (_c *InvitationService_Accept_Call) Return(_a0 error) *InvitationService_Accept_Call
- func (_c *InvitationService_Accept_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Accept_Call
- func (_c *InvitationService_Accept_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *InvitationService_Accept_Call
- type InvitationService_Create_Call
- func (_c *InvitationService_Create_Call) Return(_a0 invitation.Invitation, _a1 error) *InvitationService_Create_Call
- func (_c *InvitationService_Create_Call) Run(run func(ctx context.Context, inv invitation.Invitation)) *InvitationService_Create_Call
- func (_c *InvitationService_Create_Call) RunAndReturn(...) *InvitationService_Create_Call
- type InvitationService_Delete_Call
- func (_c *InvitationService_Delete_Call) Return(_a0 error) *InvitationService_Delete_Call
- func (_c *InvitationService_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Delete_Call
- func (_c *InvitationService_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *InvitationService_Delete_Call
- type InvitationService_Expecter
- func (_e *InvitationService_Expecter) Accept(ctx interface{}, id interface{}) *InvitationService_Accept_Call
- func (_e *InvitationService_Expecter) Create(ctx interface{}, inv interface{}) *InvitationService_Create_Call
- func (_e *InvitationService_Expecter) Delete(ctx interface{}, id interface{}) *InvitationService_Delete_Call
- func (_e *InvitationService_Expecter) Get(ctx interface{}, id interface{}) *InvitationService_Get_Call
- func (_e *InvitationService_Expecter) List(ctx interface{}, filter interface{}) *InvitationService_List_Call
- func (_e *InvitationService_Expecter) ListByUser(ctx interface{}, userID interface{}) *InvitationService_ListByUser_Call
- type InvitationService_Get_Call
- func (_c *InvitationService_Get_Call) Return(_a0 invitation.Invitation, _a1 error) *InvitationService_Get_Call
- func (_c *InvitationService_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Get_Call
- func (_c *InvitationService_Get_Call) RunAndReturn(run func(context.Context, uuid.UUID) (invitation.Invitation, error)) *InvitationService_Get_Call
- type InvitationService_ListByUser_Call
- func (_c *InvitationService_ListByUser_Call) Return(_a0 []invitation.Invitation, _a1 error) *InvitationService_ListByUser_Call
- func (_c *InvitationService_ListByUser_Call) Run(run func(ctx context.Context, userID string)) *InvitationService_ListByUser_Call
- func (_c *InvitationService_ListByUser_Call) RunAndReturn(run func(context.Context, string) ([]invitation.Invitation, error)) *InvitationService_ListByUser_Call
- type InvitationService_List_Call
- func (_c *InvitationService_List_Call) Return(_a0 []invitation.Invitation, _a1 error) *InvitationService_List_Call
- func (_c *InvitationService_List_Call) Run(run func(ctx context.Context, filter invitation.Filter)) *InvitationService_List_Call
- func (_c *InvitationService_List_Call) RunAndReturn(run func(context.Context, invitation.Filter) ([]invitation.Invitation, error)) *InvitationService_List_Call
- type InvoiceService
- func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
- func (_m *InvoiceService) GetUpcoming(ctx context.Context, customerID string) (invoice.Invoice, error)
- func (_m *InvoiceService) List(ctx context.Context, filter invoice.Filter) ([]invoice.Invoice, error)
- func (_m *InvoiceService) ListAll(ctx context.Context, filter invoice.Filter) ([]invoice.Invoice, error)
- type InvoiceService_Expecter
- func (_e *InvoiceService_Expecter) GetUpcoming(ctx interface{}, customerID interface{}) *InvoiceService_GetUpcoming_Call
- func (_e *InvoiceService_Expecter) List(ctx interface{}, filter interface{}) *InvoiceService_List_Call
- func (_e *InvoiceService_Expecter) ListAll(ctx interface{}, filter interface{}) *InvoiceService_ListAll_Call
- type InvoiceService_GetUpcoming_Call
- func (_c *InvoiceService_GetUpcoming_Call) Return(_a0 invoice.Invoice, _a1 error) *InvoiceService_GetUpcoming_Call
- func (_c *InvoiceService_GetUpcoming_Call) Run(run func(ctx context.Context, customerID string)) *InvoiceService_GetUpcoming_Call
- func (_c *InvoiceService_GetUpcoming_Call) RunAndReturn(run func(context.Context, string) (invoice.Invoice, error)) *InvoiceService_GetUpcoming_Call
- type InvoiceService_ListAll_Call
- func (_c *InvoiceService_ListAll_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_ListAll_Call
- func (_c *InvoiceService_ListAll_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_ListAll_Call
- func (_c *InvoiceService_ListAll_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_ListAll_Call
- type InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_List_Call
- func (_c *InvoiceService_List_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_List_Call
- type MetaSchemaService
- func (_m *MetaSchemaService) Create(ctx context.Context, toCreate metaschema.MetaSchema) (metaschema.MetaSchema, error)
- func (_m *MetaSchemaService) Delete(ctx context.Context, id string) error
- func (_m *MetaSchemaService) EXPECT() *MetaSchemaService_Expecter
- func (_m *MetaSchemaService) Get(ctx context.Context, id string) (metaschema.MetaSchema, error)
- func (_m *MetaSchemaService) List(ctx context.Context) ([]metaschema.MetaSchema, error)
- func (_m *MetaSchemaService) Update(ctx context.Context, id string, toUpdate metaschema.MetaSchema) (metaschema.MetaSchema, error)
- func (_m *MetaSchemaService) Validate(schema metadata.Metadata, data string) error
- type MetaSchemaService_Create_Call
- func (_c *MetaSchemaService_Create_Call) Return(_a0 metaschema.MetaSchema, _a1 error) *MetaSchemaService_Create_Call
- func (_c *MetaSchemaService_Create_Call) Run(run func(ctx context.Context, toCreate metaschema.MetaSchema)) *MetaSchemaService_Create_Call
- func (_c *MetaSchemaService_Create_Call) RunAndReturn(...) *MetaSchemaService_Create_Call
- type MetaSchemaService_Delete_Call
- func (_c *MetaSchemaService_Delete_Call) Return(_a0 error) *MetaSchemaService_Delete_Call
- func (_c *MetaSchemaService_Delete_Call) Run(run func(ctx context.Context, id string)) *MetaSchemaService_Delete_Call
- func (_c *MetaSchemaService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MetaSchemaService_Delete_Call
- type MetaSchemaService_Expecter
- func (_e *MetaSchemaService_Expecter) Create(ctx interface{}, toCreate interface{}) *MetaSchemaService_Create_Call
- func (_e *MetaSchemaService_Expecter) Delete(ctx interface{}, id interface{}) *MetaSchemaService_Delete_Call
- func (_e *MetaSchemaService_Expecter) Get(ctx interface{}, id interface{}) *MetaSchemaService_Get_Call
- func (_e *MetaSchemaService_Expecter) List(ctx interface{}) *MetaSchemaService_List_Call
- func (_e *MetaSchemaService_Expecter) Update(ctx interface{}, id interface{}, toUpdate interface{}) *MetaSchemaService_Update_Call
- func (_e *MetaSchemaService_Expecter) Validate(schema interface{}, data interface{}) *MetaSchemaService_Validate_Call
- type MetaSchemaService_Get_Call
- func (_c *MetaSchemaService_Get_Call) Return(_a0 metaschema.MetaSchema, _a1 error) *MetaSchemaService_Get_Call
- func (_c *MetaSchemaService_Get_Call) Run(run func(ctx context.Context, id string)) *MetaSchemaService_Get_Call
- func (_c *MetaSchemaService_Get_Call) RunAndReturn(run func(context.Context, string) (metaschema.MetaSchema, error)) *MetaSchemaService_Get_Call
- type MetaSchemaService_List_Call
- func (_c *MetaSchemaService_List_Call) Return(_a0 []metaschema.MetaSchema, _a1 error) *MetaSchemaService_List_Call
- func (_c *MetaSchemaService_List_Call) Run(run func(ctx context.Context)) *MetaSchemaService_List_Call
- func (_c *MetaSchemaService_List_Call) RunAndReturn(run func(context.Context) ([]metaschema.MetaSchema, error)) *MetaSchemaService_List_Call
- type MetaSchemaService_Update_Call
- func (_c *MetaSchemaService_Update_Call) Return(_a0 metaschema.MetaSchema, _a1 error) *MetaSchemaService_Update_Call
- func (_c *MetaSchemaService_Update_Call) Run(run func(ctx context.Context, id string, toUpdate metaschema.MetaSchema)) *MetaSchemaService_Update_Call
- func (_c *MetaSchemaService_Update_Call) RunAndReturn(...) *MetaSchemaService_Update_Call
- type MetaSchemaService_Validate_Call
- func (_c *MetaSchemaService_Validate_Call) Return(_a0 error) *MetaSchemaService_Validate_Call
- func (_c *MetaSchemaService_Validate_Call) Run(run func(schema metadata.Metadata, data string)) *MetaSchemaService_Validate_Call
- func (_c *MetaSchemaService_Validate_Call) RunAndReturn(run func(metadata.Metadata, string) error) *MetaSchemaService_Validate_Call
- type NamespaceService
- func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
- func (_m *NamespaceService) Get(ctx context.Context, id string) (namespace.Namespace, error)
- func (_m *NamespaceService) List(ctx context.Context) ([]namespace.Namespace, error)
- func (_m *NamespaceService) Update(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- func (_m *NamespaceService) Upsert(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- type NamespaceService_Expecter
- func (_e *NamespaceService_Expecter) Get(ctx interface{}, id interface{}) *NamespaceService_Get_Call
- func (_e *NamespaceService_Expecter) List(ctx interface{}) *NamespaceService_List_Call
- func (_e *NamespaceService_Expecter) Update(ctx interface{}, ns interface{}) *NamespaceService_Update_Call
- func (_e *NamespaceService_Expecter) Upsert(ctx interface{}, ns interface{}) *NamespaceService_Upsert_Call
- type NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) Run(run func(ctx context.Context, id string)) *NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) RunAndReturn(run func(context.Context, string) (namespace.Namespace, error)) *NamespaceService_Get_Call
- type NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) Run(run func(ctx context.Context)) *NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) RunAndReturn(run func(context.Context) ([]namespace.Namespace, error)) *NamespaceService_List_Call
- type NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) Run(run func(ctx context.Context, ns namespace.Namespace)) *NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Update_Call
- type NamespaceService_Upsert_Call
- func (_c *NamespaceService_Upsert_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Upsert_Call
- func (_c *NamespaceService_Upsert_Call) Run(run func(ctx context.Context, ns namespace.Namespace)) *NamespaceService_Upsert_Call
- func (_c *NamespaceService_Upsert_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Upsert_Call
- type OrganizationService
- func (_m *OrganizationService) AddUsers(ctx context.Context, orgID string, userID []string) error
- func (_m *OrganizationService) Create(ctx context.Context, org organization.Organization) (organization.Organization, error)
- func (_m *OrganizationService) Disable(ctx context.Context, id string) error
- func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
- func (_m *OrganizationService) Enable(ctx context.Context, id string) error
- func (_m *OrganizationService) Get(ctx context.Context, idOrSlug string) (organization.Organization, error)
- func (_m *OrganizationService) GetRaw(ctx context.Context, idOrSlug string) (organization.Organization, error)
- func (_m *OrganizationService) List(ctx context.Context, f organization.Filter) ([]organization.Organization, error)
- func (_m *OrganizationService) ListByUser(ctx context.Context, principal authenticate.Principal, flt organization.Filter) ([]organization.Organization, error)
- func (_m *OrganizationService) Update(ctx context.Context, toUpdate organization.Organization) (organization.Organization, error)
- type OrganizationService_AddUsers_Call
- func (_c *OrganizationService_AddUsers_Call) Return(_a0 error) *OrganizationService_AddUsers_Call
- func (_c *OrganizationService_AddUsers_Call) Run(run func(ctx context.Context, orgID string, userID []string)) *OrganizationService_AddUsers_Call
- func (_c *OrganizationService_AddUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *OrganizationService_AddUsers_Call
- type OrganizationService_Create_Call
- func (_c *OrganizationService_Create_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Create_Call
- func (_c *OrganizationService_Create_Call) Run(run func(ctx context.Context, org organization.Organization)) *OrganizationService_Create_Call
- func (_c *OrganizationService_Create_Call) RunAndReturn(...) *OrganizationService_Create_Call
- type OrganizationService_Disable_Call
- func (_c *OrganizationService_Disable_Call) Return(_a0 error) *OrganizationService_Disable_Call
- func (_c *OrganizationService_Disable_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Disable_Call
- func (_c *OrganizationService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *OrganizationService_Disable_Call
- type OrganizationService_Enable_Call
- func (_c *OrganizationService_Enable_Call) Return(_a0 error) *OrganizationService_Enable_Call
- func (_c *OrganizationService_Enable_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Enable_Call
- func (_c *OrganizationService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *OrganizationService_Enable_Call
- type OrganizationService_Expecter
- func (_e *OrganizationService_Expecter) AddUsers(ctx interface{}, orgID interface{}, userID interface{}) *OrganizationService_AddUsers_Call
- func (_e *OrganizationService_Expecter) Create(ctx interface{}, org interface{}) *OrganizationService_Create_Call
- func (_e *OrganizationService_Expecter) Disable(ctx interface{}, id interface{}) *OrganizationService_Disable_Call
- func (_e *OrganizationService_Expecter) Enable(ctx interface{}, id interface{}) *OrganizationService_Enable_Call
- func (_e *OrganizationService_Expecter) Get(ctx interface{}, idOrSlug interface{}) *OrganizationService_Get_Call
- func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, idOrSlug interface{}) *OrganizationService_GetRaw_Call
- func (_e *OrganizationService_Expecter) List(ctx interface{}, f interface{}) *OrganizationService_List_Call
- func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, principal interface{}, flt interface{}) *OrganizationService_ListByUser_Call
- func (_e *OrganizationService_Expecter) Update(ctx interface{}, toUpdate interface{}) *OrganizationService_Update_Call
- type OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, idOrSlug string)) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
- type OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) Run(run func(ctx context.Context, idOrSlug string)) *OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
- type OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) Run(...) *OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) RunAndReturn(...) *OrganizationService_ListByUser_Call
- type OrganizationService_List_Call
- func (_c *OrganizationService_List_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_List_Call
- func (_c *OrganizationService_List_Call) Run(run func(ctx context.Context, f organization.Filter)) *OrganizationService_List_Call
- func (_c *OrganizationService_List_Call) RunAndReturn(...) *OrganizationService_List_Call
- type OrganizationService_Update_Call
- func (_c *OrganizationService_Update_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Update_Call
- func (_c *OrganizationService_Update_Call) Run(run func(ctx context.Context, toUpdate organization.Organization)) *OrganizationService_Update_Call
- func (_c *OrganizationService_Update_Call) RunAndReturn(...) *OrganizationService_Update_Call
- type PermissionService
- func (_m *PermissionService) EXPECT() *PermissionService_Expecter
- func (_m *PermissionService) Get(ctx context.Context, id string) (permission.Permission, error)
- func (_m *PermissionService) List(ctx context.Context, filter permission.Filter) ([]permission.Permission, error)
- func (_m *PermissionService) Update(ctx context.Context, perm permission.Permission) (permission.Permission, error)
- func (_m *PermissionService) Upsert(ctx context.Context, perm permission.Permission) (permission.Permission, error)
- type PermissionService_Expecter
- func (_e *PermissionService_Expecter) Get(ctx interface{}, id interface{}) *PermissionService_Get_Call
- func (_e *PermissionService_Expecter) List(ctx interface{}, filter interface{}) *PermissionService_List_Call
- func (_e *PermissionService_Expecter) Update(ctx interface{}, perm interface{}) *PermissionService_Update_Call
- func (_e *PermissionService_Expecter) Upsert(ctx interface{}, perm interface{}) *PermissionService_Upsert_Call
- type PermissionService_Get_Call
- func (_c *PermissionService_Get_Call) Return(_a0 permission.Permission, _a1 error) *PermissionService_Get_Call
- func (_c *PermissionService_Get_Call) Run(run func(ctx context.Context, id string)) *PermissionService_Get_Call
- func (_c *PermissionService_Get_Call) RunAndReturn(run func(context.Context, string) (permission.Permission, error)) *PermissionService_Get_Call
- type PermissionService_List_Call
- func (_c *PermissionService_List_Call) Return(_a0 []permission.Permission, _a1 error) *PermissionService_List_Call
- func (_c *PermissionService_List_Call) Run(run func(ctx context.Context, filter permission.Filter)) *PermissionService_List_Call
- func (_c *PermissionService_List_Call) RunAndReturn(run func(context.Context, permission.Filter) ([]permission.Permission, error)) *PermissionService_List_Call
- type PermissionService_Update_Call
- func (_c *PermissionService_Update_Call) Return(_a0 permission.Permission, _a1 error) *PermissionService_Update_Call
- func (_c *PermissionService_Update_Call) Run(run func(ctx context.Context, perm permission.Permission)) *PermissionService_Update_Call
- func (_c *PermissionService_Update_Call) RunAndReturn(...) *PermissionService_Update_Call
- type PermissionService_Upsert_Call
- func (_c *PermissionService_Upsert_Call) Return(_a0 permission.Permission, _a1 error) *PermissionService_Upsert_Call
- func (_c *PermissionService_Upsert_Call) Run(run func(ctx context.Context, perm permission.Permission)) *PermissionService_Upsert_Call
- func (_c *PermissionService_Upsert_Call) RunAndReturn(...) *PermissionService_Upsert_Call
- type PlanService
- func (_m *PlanService) Create(ctx context.Context, _a1 plan.Plan) (plan.Plan, error)
- func (_m *PlanService) EXPECT() *PlanService_Expecter
- func (_m *PlanService) GetByID(ctx context.Context, id string) (plan.Plan, error)
- func (_m *PlanService) List(ctx context.Context, filter plan.Filter) ([]plan.Plan, error)
- func (_m *PlanService) UpsertPlans(ctx context.Context, planFile plan.File) error
- type PlanService_Create_Call
- func (_c *PlanService_Create_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_Create_Call
- func (_c *PlanService_Create_Call) Run(run func(ctx context.Context, _a1 plan.Plan)) *PlanService_Create_Call
- func (_c *PlanService_Create_Call) RunAndReturn(run func(context.Context, plan.Plan) (plan.Plan, error)) *PlanService_Create_Call
- type PlanService_Expecter
- func (_e *PlanService_Expecter) Create(ctx interface{}, _a1 interface{}) *PlanService_Create_Call
- func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call
- func (_e *PlanService_Expecter) List(ctx interface{}, filter interface{}) *PlanService_List_Call
- func (_e *PlanService_Expecter) UpsertPlans(ctx interface{}, planFile interface{}) *PlanService_UpsertPlans_Call
- type PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
- type PlanService_List_Call
- func (_c *PlanService_List_Call) Return(_a0 []plan.Plan, _a1 error) *PlanService_List_Call
- func (_c *PlanService_List_Call) Run(run func(ctx context.Context, filter plan.Filter)) *PlanService_List_Call
- func (_c *PlanService_List_Call) RunAndReturn(run func(context.Context, plan.Filter) ([]plan.Plan, error)) *PlanService_List_Call
- type PlanService_UpsertPlans_Call
- func (_c *PlanService_UpsertPlans_Call) Return(_a0 error) *PlanService_UpsertPlans_Call
- func (_c *PlanService_UpsertPlans_Call) Run(run func(ctx context.Context, planFile plan.File)) *PlanService_UpsertPlans_Call
- func (_c *PlanService_UpsertPlans_Call) RunAndReturn(run func(context.Context, plan.File) error) *PlanService_UpsertPlans_Call
- type PolicyService
- func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) (policy.Policy, error)
- func (_m *PolicyService) Delete(ctx context.Context, id string) error
- func (_m *PolicyService) EXPECT() *PolicyService_Expecter
- func (_m *PolicyService) Get(ctx context.Context, id string) (policy.Policy, error)
- func (_m *PolicyService) List(ctx context.Context, f policy.Filter) ([]policy.Policy, error)
- func (_m *PolicyService) ListRoles(ctx context.Context, principalType string, principalID string, ...) ([]role.Role, error)
- type PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
- type PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
- type PolicyService_Expecter
- func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
- func (_e *PolicyService_Expecter) Get(ctx interface{}, id interface{}) *PolicyService_Get_Call
- func (_e *PolicyService_Expecter) List(ctx interface{}, f interface{}) *PolicyService_List_Call
- func (_e *PolicyService_Expecter) ListRoles(ctx interface{}, principalType interface{}, principalID interface{}, ...) *PolicyService_ListRoles_Call
- type PolicyService_Get_Call
- func (_c *PolicyService_Get_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Get_Call
- func (_c *PolicyService_Get_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Get_Call
- func (_c *PolicyService_Get_Call) RunAndReturn(run func(context.Context, string) (policy.Policy, error)) *PolicyService_Get_Call
- type PolicyService_ListRoles_Call
- func (_c *PolicyService_ListRoles_Call) Return(_a0 []role.Role, _a1 error) *PolicyService_ListRoles_Call
- func (_c *PolicyService_ListRoles_Call) Run(run func(ctx context.Context, principalType string, principalID string, ...)) *PolicyService_ListRoles_Call
- func (_c *PolicyService_ListRoles_Call) RunAndReturn(run func(context.Context, string, string, string, string) ([]role.Role, error)) *PolicyService_ListRoles_Call
- type PolicyService_List_Call
- func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, f policy.Filter)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
- type PreferenceService
- func (_m *PreferenceService) Create(ctx context.Context, _a1 preference.Preference) (preference.Preference, error)
- func (_m *PreferenceService) Describe(ctx context.Context) []preference.Trait
- func (_m *PreferenceService) EXPECT() *PreferenceService_Expecter
- func (_m *PreferenceService) List(ctx context.Context, filter preference.Filter) ([]preference.Preference, error)
- func (_m *PreferenceService) LoadPlatformPreferences(ctx context.Context) (map[string]string, error)
- type PreferenceService_Create_Call
- func (_c *PreferenceService_Create_Call) Return(_a0 preference.Preference, _a1 error) *PreferenceService_Create_Call
- func (_c *PreferenceService_Create_Call) Run(run func(ctx context.Context, _a1 preference.Preference)) *PreferenceService_Create_Call
- func (_c *PreferenceService_Create_Call) RunAndReturn(...) *PreferenceService_Create_Call
- type PreferenceService_Describe_Call
- func (_c *PreferenceService_Describe_Call) Return(_a0 []preference.Trait) *PreferenceService_Describe_Call
- func (_c *PreferenceService_Describe_Call) Run(run func(ctx context.Context)) *PreferenceService_Describe_Call
- func (_c *PreferenceService_Describe_Call) RunAndReturn(run func(context.Context) []preference.Trait) *PreferenceService_Describe_Call
- type PreferenceService_Expecter
- func (_e *PreferenceService_Expecter) Create(ctx interface{}, _a1 interface{}) *PreferenceService_Create_Call
- func (_e *PreferenceService_Expecter) Describe(ctx interface{}) *PreferenceService_Describe_Call
- func (_e *PreferenceService_Expecter) List(ctx interface{}, filter interface{}) *PreferenceService_List_Call
- func (_e *PreferenceService_Expecter) LoadPlatformPreferences(ctx interface{}) *PreferenceService_LoadPlatformPreferences_Call
- type PreferenceService_List_Call
- func (_c *PreferenceService_List_Call) Return(_a0 []preference.Preference, _a1 error) *PreferenceService_List_Call
- func (_c *PreferenceService_List_Call) Run(run func(ctx context.Context, filter preference.Filter)) *PreferenceService_List_Call
- func (_c *PreferenceService_List_Call) RunAndReturn(run func(context.Context, preference.Filter) ([]preference.Preference, error)) *PreferenceService_List_Call
- type PreferenceService_LoadPlatformPreferences_Call
- func (_c *PreferenceService_LoadPlatformPreferences_Call) Return(_a0 map[string]string, _a1 error) *PreferenceService_LoadPlatformPreferences_Call
- func (_c *PreferenceService_LoadPlatformPreferences_Call) Run(run func(ctx context.Context)) *PreferenceService_LoadPlatformPreferences_Call
- func (_c *PreferenceService_LoadPlatformPreferences_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *PreferenceService_LoadPlatformPreferences_Call
- type ProductService
- func (_m *ProductService) Create(ctx context.Context, _a1 product.Product) (product.Product, error)
- func (_m *ProductService) EXPECT() *ProductService_Expecter
- func (_m *ProductService) GetByID(ctx context.Context, id string) (product.Product, error)
- func (_m *ProductService) GetFeatureByID(ctx context.Context, id string) (product.Feature, error)
- func (_m *ProductService) List(ctx context.Context, filter product.Filter) ([]product.Product, error)
- func (_m *ProductService) ListFeatures(ctx context.Context, filter product.Filter) ([]product.Feature, error)
- func (_m *ProductService) Update(ctx context.Context, _a1 product.Product) (product.Product, error)
- func (_m *ProductService) UpsertFeature(ctx context.Context, feature product.Feature) (product.Feature, error)
- type ProductService_Create_Call
- func (_c *ProductService_Create_Call) Return(_a0 product.Product, _a1 error) *ProductService_Create_Call
- func (_c *ProductService_Create_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Create_Call
- func (_c *ProductService_Create_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Create_Call
- type ProductService_Expecter
- func (_e *ProductService_Expecter) Create(ctx interface{}, _a1 interface{}) *ProductService_Create_Call
- func (_e *ProductService_Expecter) GetByID(ctx interface{}, id interface{}) *ProductService_GetByID_Call
- func (_e *ProductService_Expecter) GetFeatureByID(ctx interface{}, id interface{}) *ProductService_GetFeatureByID_Call
- func (_e *ProductService_Expecter) List(ctx interface{}, filter interface{}) *ProductService_List_Call
- func (_e *ProductService_Expecter) ListFeatures(ctx interface{}, filter interface{}) *ProductService_ListFeatures_Call
- func (_e *ProductService_Expecter) Update(ctx interface{}, _a1 interface{}) *ProductService_Update_Call
- func (_e *ProductService_Expecter) UpsertFeature(ctx interface{}, feature interface{}) *ProductService_UpsertFeature_Call
- type ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) Return(_a0 product.Product, _a1 error) *ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *ProductService_GetByID_Call
- type ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) Return(_a0 product.Feature, _a1 error) *ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *ProductService_GetFeatureByID_Call
- type ProductService_ListFeatures_Call
- func (_c *ProductService_ListFeatures_Call) Return(_a0 []product.Feature, _a1 error) *ProductService_ListFeatures_Call
- func (_c *ProductService_ListFeatures_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_ListFeatures_Call
- func (_c *ProductService_ListFeatures_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Feature, error)) *ProductService_ListFeatures_Call
- type ProductService_List_Call
- func (_c *ProductService_List_Call) Return(_a0 []product.Product, _a1 error) *ProductService_List_Call
- func (_c *ProductService_List_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_List_Call
- func (_c *ProductService_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *ProductService_List_Call
- type ProductService_Update_Call
- func (_c *ProductService_Update_Call) Return(_a0 product.Product, _a1 error) *ProductService_Update_Call
- func (_c *ProductService_Update_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Update_Call
- func (_c *ProductService_Update_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Update_Call
- type ProductService_UpsertFeature_Call
- func (_c *ProductService_UpsertFeature_Call) Return(_a0 product.Feature, _a1 error) *ProductService_UpsertFeature_Call
- func (_c *ProductService_UpsertFeature_Call) Run(run func(ctx context.Context, feature product.Feature)) *ProductService_UpsertFeature_Call
- func (_c *ProductService_UpsertFeature_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *ProductService_UpsertFeature_Call
- type ProjectService
- func (_m *ProjectService) Create(ctx context.Context, prj project.Project) (project.Project, error)
- func (_m *ProjectService) Disable(ctx context.Context, id string) error
- func (_m *ProjectService) EXPECT() *ProjectService_Expecter
- func (_m *ProjectService) Enable(ctx context.Context, id string) error
- func (_m *ProjectService) Get(ctx context.Context, idOrName string) (project.Project, error)
- func (_m *ProjectService) List(ctx context.Context, f project.Filter) ([]project.Project, error)
- func (_m *ProjectService) ListByUser(ctx context.Context, principalID string, principalType string, ...) ([]project.Project, error)
- func (_m *ProjectService) ListGroups(ctx context.Context, id string) ([]group.Group, error)
- func (_m *ProjectService) ListServiceUsers(ctx context.Context, id string, permissionFilter string) ([]serviceuser.ServiceUser, error)
- func (_m *ProjectService) ListUsers(ctx context.Context, id string, permissionFilter string) ([]user.User, error)
- func (_m *ProjectService) Update(ctx context.Context, toUpdate project.Project) (project.Project, error)
- type ProjectService_Create_Call
- func (_c *ProjectService_Create_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Create_Call
- func (_c *ProjectService_Create_Call) Run(run func(ctx context.Context, prj project.Project)) *ProjectService_Create_Call
- func (_c *ProjectService_Create_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *ProjectService_Create_Call
- type ProjectService_Disable_Call
- func (_c *ProjectService_Disable_Call) Return(_a0 error) *ProjectService_Disable_Call
- func (_c *ProjectService_Disable_Call) Run(run func(ctx context.Context, id string)) *ProjectService_Disable_Call
- func (_c *ProjectService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *ProjectService_Disable_Call
- type ProjectService_Enable_Call
- func (_c *ProjectService_Enable_Call) Return(_a0 error) *ProjectService_Enable_Call
- func (_c *ProjectService_Enable_Call) Run(run func(ctx context.Context, id string)) *ProjectService_Enable_Call
- func (_c *ProjectService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *ProjectService_Enable_Call
- type ProjectService_Expecter
- func (_e *ProjectService_Expecter) Create(ctx interface{}, prj interface{}) *ProjectService_Create_Call
- func (_e *ProjectService_Expecter) Disable(ctx interface{}, id interface{}) *ProjectService_Disable_Call
- func (_e *ProjectService_Expecter) Enable(ctx interface{}, id interface{}) *ProjectService_Enable_Call
- func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrName interface{}) *ProjectService_Get_Call
- func (_e *ProjectService_Expecter) List(ctx interface{}, f interface{}) *ProjectService_List_Call
- func (_e *ProjectService_Expecter) ListByUser(ctx interface{}, principalID interface{}, principalType interface{}, ...) *ProjectService_ListByUser_Call
- func (_e *ProjectService_Expecter) ListGroups(ctx interface{}, id interface{}) *ProjectService_ListGroups_Call
- func (_e *ProjectService_Expecter) ListServiceUsers(ctx interface{}, id interface{}, permissionFilter interface{}) *ProjectService_ListServiceUsers_Call
- func (_e *ProjectService_Expecter) ListUsers(ctx interface{}, id interface{}, permissionFilter interface{}) *ProjectService_ListUsers_Call
- func (_e *ProjectService_Expecter) Update(ctx interface{}, toUpdate interface{}) *ProjectService_Update_Call
- type ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
- type ProjectService_ListByUser_Call
- func (_c *ProjectService_ListByUser_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_ListByUser_Call
- func (_c *ProjectService_ListByUser_Call) Run(run func(ctx context.Context, principalID string, principalType string, ...)) *ProjectService_ListByUser_Call
- func (_c *ProjectService_ListByUser_Call) RunAndReturn(...) *ProjectService_ListByUser_Call
- type ProjectService_ListGroups_Call
- func (_c *ProjectService_ListGroups_Call) Return(_a0 []group.Group, _a1 error) *ProjectService_ListGroups_Call
- func (_c *ProjectService_ListGroups_Call) Run(run func(ctx context.Context, id string)) *ProjectService_ListGroups_Call
- func (_c *ProjectService_ListGroups_Call) RunAndReturn(run func(context.Context, string) ([]group.Group, error)) *ProjectService_ListGroups_Call
- type ProjectService_ListServiceUsers_Call
- func (_c *ProjectService_ListServiceUsers_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ProjectService_ListServiceUsers_Call
- func (_c *ProjectService_ListServiceUsers_Call) Run(run func(ctx context.Context, id string, permissionFilter string)) *ProjectService_ListServiceUsers_Call
- func (_c *ProjectService_ListServiceUsers_Call) RunAndReturn(run func(context.Context, string, string) ([]serviceuser.ServiceUser, error)) *ProjectService_ListServiceUsers_Call
- type ProjectService_ListUsers_Call
- func (_c *ProjectService_ListUsers_Call) Return(_a0 []user.User, _a1 error) *ProjectService_ListUsers_Call
- func (_c *ProjectService_ListUsers_Call) Run(run func(ctx context.Context, id string, permissionFilter string)) *ProjectService_ListUsers_Call
- func (_c *ProjectService_ListUsers_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *ProjectService_ListUsers_Call
- type ProjectService_List_Call
- func (_c *ProjectService_List_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) Run(run func(ctx context.Context, f project.Filter)) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *ProjectService_List_Call
- type ProjectService_Update_Call
- func (_c *ProjectService_Update_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Update_Call
- func (_c *ProjectService_Update_Call) Run(run func(ctx context.Context, toUpdate project.Project)) *ProjectService_Update_Call
- func (_c *ProjectService_Update_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *ProjectService_Update_Call
- type RelationService
- func (_m *RelationService) Create(ctx context.Context, rel relation.Relation) (relation.Relation, error)
- func (_m *RelationService) Delete(ctx context.Context, rel relation.Relation) error
- func (_m *RelationService) EXPECT() *RelationService_Expecter
- func (_m *RelationService) Get(ctx context.Context, id string) (relation.Relation, error)
- func (_m *RelationService) List(ctx context.Context, f relation.Filter) ([]relation.Relation, error)
- type RelationService_Create_Call
- func (_c *RelationService_Create_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.Relation) (relation.Relation, error)) *RelationService_Create_Call
- type RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
- type RelationService_Expecter
- func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
- func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call
- func (_e *RelationService_Expecter) Get(ctx interface{}, id interface{}) *RelationService_Get_Call
- func (_e *RelationService_Expecter) List(ctx interface{}, f interface{}) *RelationService_List_Call
- type RelationService_Get_Call
- func (_c *RelationService_Get_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Get_Call
- func (_c *RelationService_Get_Call) Run(run func(ctx context.Context, id string)) *RelationService_Get_Call
- func (_c *RelationService_Get_Call) RunAndReturn(run func(context.Context, string) (relation.Relation, error)) *RelationService_Get_Call
- type RelationService_List_Call
- func (_c *RelationService_List_Call) Return(_a0 []relation.Relation, _a1 error) *RelationService_List_Call
- func (_c *RelationService_List_Call) Run(run func(ctx context.Context, f relation.Filter)) *RelationService_List_Call
- func (_c *RelationService_List_Call) RunAndReturn(run func(context.Context, relation.Filter) ([]relation.Relation, error)) *RelationService_List_Call
- type ResourceService
- func (_m *ResourceService) BatchCheck(ctx context.Context, checks []resource.Check) ([]relation.CheckPair, error)
- func (_m *ResourceService) CheckAuthz(ctx context.Context, check resource.Check) (bool, error)
- func (_m *ResourceService) Create(ctx context.Context, _a1 resource.Resource) (resource.Resource, error)
- func (_m *ResourceService) Delete(ctx context.Context, namespace string, id string) error
- func (_m *ResourceService) EXPECT() *ResourceService_Expecter
- func (_m *ResourceService) Get(ctx context.Context, id string) (resource.Resource, error)
- func (_m *ResourceService) List(ctx context.Context, flt resource.Filter) ([]resource.Resource, error)
- func (_m *ResourceService) Update(ctx context.Context, _a1 resource.Resource) (resource.Resource, error)
- type ResourceService_BatchCheck_Call
- func (_c *ResourceService_BatchCheck_Call) Return(_a0 []relation.CheckPair, _a1 error) *ResourceService_BatchCheck_Call
- func (_c *ResourceService_BatchCheck_Call) Run(run func(ctx context.Context, checks []resource.Check)) *ResourceService_BatchCheck_Call
- func (_c *ResourceService_BatchCheck_Call) RunAndReturn(run func(context.Context, []resource.Check) ([]relation.CheckPair, error)) *ResourceService_BatchCheck_Call
- type ResourceService_CheckAuthz_Call
- func (_c *ResourceService_CheckAuthz_Call) Return(_a0 bool, _a1 error) *ResourceService_CheckAuthz_Call
- func (_c *ResourceService_CheckAuthz_Call) Run(run func(ctx context.Context, check resource.Check)) *ResourceService_CheckAuthz_Call
- func (_c *ResourceService_CheckAuthz_Call) RunAndReturn(run func(context.Context, resource.Check) (bool, error)) *ResourceService_CheckAuthz_Call
- type ResourceService_Create_Call
- func (_c *ResourceService_Create_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Create_Call
- func (_c *ResourceService_Create_Call) Run(run func(ctx context.Context, _a1 resource.Resource)) *ResourceService_Create_Call
- func (_c *ResourceService_Create_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Create_Call
- type ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) Return(_a0 error) *ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) Run(run func(ctx context.Context, namespace string, id string)) *ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *ResourceService_Delete_Call
- type ResourceService_Expecter
- func (_e *ResourceService_Expecter) BatchCheck(ctx interface{}, checks interface{}) *ResourceService_BatchCheck_Call
- func (_e *ResourceService_Expecter) CheckAuthz(ctx interface{}, check interface{}) *ResourceService_CheckAuthz_Call
- func (_e *ResourceService_Expecter) Create(ctx interface{}, _a1 interface{}) *ResourceService_Create_Call
- func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespace interface{}, id interface{}) *ResourceService_Delete_Call
- func (_e *ResourceService_Expecter) Get(ctx interface{}, id interface{}) *ResourceService_Get_Call
- func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call
- func (_e *ResourceService_Expecter) Update(ctx interface{}, _a1 interface{}) *ResourceService_Update_Call
- type ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) Run(run func(ctx context.Context, id string)) *ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) RunAndReturn(run func(context.Context, string) (resource.Resource, error)) *ResourceService_Get_Call
- type ResourceService_List_Call
- func (_c *ResourceService_List_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceService_List_Call
- func (_c *ResourceService_List_Call) Run(run func(ctx context.Context, flt resource.Filter)) *ResourceService_List_Call
- func (_c *ResourceService_List_Call) RunAndReturn(run func(context.Context, resource.Filter) ([]resource.Resource, error)) *ResourceService_List_Call
- type ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) Run(run func(ctx context.Context, _a1 resource.Resource)) *ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Update_Call
- type RoleService
- func (_m *RoleService) Delete(ctx context.Context, id string) error
- func (_m *RoleService) EXPECT() *RoleService_Expecter
- func (_m *RoleService) Get(ctx context.Context, id string) (role.Role, error)
- func (_m *RoleService) List(ctx context.Context, f role.Filter) ([]role.Role, error)
- func (_m *RoleService) Update(ctx context.Context, toUpdate role.Role) (role.Role, error)
- func (_m *RoleService) Upsert(ctx context.Context, toCreate role.Role) (role.Role, error)
- type RoleService_Delete_Call
- type RoleService_Expecter
- func (_e *RoleService_Expecter) Delete(ctx interface{}, id interface{}) *RoleService_Delete_Call
- func (_e *RoleService_Expecter) Get(ctx interface{}, id interface{}) *RoleService_Get_Call
- func (_e *RoleService_Expecter) List(ctx interface{}, f interface{}) *RoleService_List_Call
- func (_e *RoleService_Expecter) Update(ctx interface{}, toUpdate interface{}) *RoleService_Update_Call
- func (_e *RoleService_Expecter) Upsert(ctx interface{}, toCreate interface{}) *RoleService_Upsert_Call
- type RoleService_Get_Call
- func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
- type RoleService_List_Call
- func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call
- func (_c *RoleService_List_Call) Run(run func(ctx context.Context, f role.Filter)) *RoleService_List_Call
- func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context, role.Filter) ([]role.Role, error)) *RoleService_List_Call
- type RoleService_Update_Call
- func (_c *RoleService_Update_Call) Return(_a0 role.Role, _a1 error) *RoleService_Update_Call
- func (_c *RoleService_Update_Call) Run(run func(ctx context.Context, toUpdate role.Role)) *RoleService_Update_Call
- func (_c *RoleService_Update_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Update_Call
- type RoleService_Upsert_Call
- func (_c *RoleService_Upsert_Call) Return(_a0 role.Role, _a1 error) *RoleService_Upsert_Call
- func (_c *RoleService_Upsert_Call) Run(run func(ctx context.Context, toCreate role.Role)) *RoleService_Upsert_Call
- func (_c *RoleService_Upsert_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Upsert_Call
- type ServiceUserService
- func (_m *ServiceUserService) Create(ctx context.Context, serviceUser serviceuser.ServiceUser) (serviceuser.ServiceUser, error)
- func (_m *ServiceUserService) CreateKey(ctx context.Context, cred serviceuser.Credential) (serviceuser.Credential, error)
- func (_m *ServiceUserService) CreateSecret(ctx context.Context, credential serviceuser.Credential) (serviceuser.Secret, error)
- func (_m *ServiceUserService) CreateToken(ctx context.Context, credential serviceuser.Credential) (serviceuser.Token, error)
- func (_m *ServiceUserService) Delete(ctx context.Context, id string) error
- func (_m *ServiceUserService) DeleteKey(ctx context.Context, credID string) error
- func (_m *ServiceUserService) DeleteSecret(ctx context.Context, credID string) error
- func (_m *ServiceUserService) DeleteToken(ctx context.Context, credID string) error
- func (_m *ServiceUserService) EXPECT() *ServiceUserService_Expecter
- func (_m *ServiceUserService) Get(ctx context.Context, id string) (serviceuser.ServiceUser, error)
- func (_m *ServiceUserService) GetByIDs(ctx context.Context, ids []string) ([]serviceuser.ServiceUser, error)
- func (_m *ServiceUserService) GetKey(ctx context.Context, credID string) (serviceuser.Credential, error)
- func (_m *ServiceUserService) IsSudo(ctx context.Context, id string, permissionName string) (bool, error)
- func (_m *ServiceUserService) List(ctx context.Context, flt serviceuser.Filter) ([]serviceuser.ServiceUser, error)
- func (_m *ServiceUserService) ListByOrg(ctx context.Context, orgID string) ([]serviceuser.ServiceUser, error)
- func (_m *ServiceUserService) ListKeys(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)
- func (_m *ServiceUserService) ListSecret(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)
- func (_m *ServiceUserService) ListToken(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)
- func (_m *ServiceUserService) Sudo(ctx context.Context, id string, relationName string) error
- func (_m *ServiceUserService) UnSudo(ctx context.Context, id string) error
- type ServiceUserService_CreateKey_Call
- func (_c *ServiceUserService_CreateKey_Call) Return(_a0 serviceuser.Credential, _a1 error) *ServiceUserService_CreateKey_Call
- func (_c *ServiceUserService_CreateKey_Call) Run(run func(ctx context.Context, cred serviceuser.Credential)) *ServiceUserService_CreateKey_Call
- func (_c *ServiceUserService_CreateKey_Call) RunAndReturn(...) *ServiceUserService_CreateKey_Call
- type ServiceUserService_CreateSecret_Call
- func (_c *ServiceUserService_CreateSecret_Call) Return(_a0 serviceuser.Secret, _a1 error) *ServiceUserService_CreateSecret_Call
- func (_c *ServiceUserService_CreateSecret_Call) Run(run func(ctx context.Context, credential serviceuser.Credential)) *ServiceUserService_CreateSecret_Call
- func (_c *ServiceUserService_CreateSecret_Call) RunAndReturn(run func(context.Context, serviceuser.Credential) (serviceuser.Secret, error)) *ServiceUserService_CreateSecret_Call
- type ServiceUserService_CreateToken_Call
- func (_c *ServiceUserService_CreateToken_Call) Return(_a0 serviceuser.Token, _a1 error) *ServiceUserService_CreateToken_Call
- func (_c *ServiceUserService_CreateToken_Call) Run(run func(ctx context.Context, credential serviceuser.Credential)) *ServiceUserService_CreateToken_Call
- func (_c *ServiceUserService_CreateToken_Call) RunAndReturn(run func(context.Context, serviceuser.Credential) (serviceuser.Token, error)) *ServiceUserService_CreateToken_Call
- type ServiceUserService_Create_Call
- func (_c *ServiceUserService_Create_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Create_Call
- func (_c *ServiceUserService_Create_Call) Run(run func(ctx context.Context, serviceUser serviceuser.ServiceUser)) *ServiceUserService_Create_Call
- func (_c *ServiceUserService_Create_Call) RunAndReturn(...) *ServiceUserService_Create_Call
- type ServiceUserService_DeleteKey_Call
- func (_c *ServiceUserService_DeleteKey_Call) Return(_a0 error) *ServiceUserService_DeleteKey_Call
- func (_c *ServiceUserService_DeleteKey_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_DeleteKey_Call
- func (_c *ServiceUserService_DeleteKey_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_DeleteKey_Call
- type ServiceUserService_DeleteSecret_Call
- func (_c *ServiceUserService_DeleteSecret_Call) Return(_a0 error) *ServiceUserService_DeleteSecret_Call
- func (_c *ServiceUserService_DeleteSecret_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_DeleteSecret_Call
- func (_c *ServiceUserService_DeleteSecret_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_DeleteSecret_Call
- type ServiceUserService_DeleteToken_Call
- func (_c *ServiceUserService_DeleteToken_Call) Return(_a0 error) *ServiceUserService_DeleteToken_Call
- func (_c *ServiceUserService_DeleteToken_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_DeleteToken_Call
- func (_c *ServiceUserService_DeleteToken_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_DeleteToken_Call
- type ServiceUserService_Delete_Call
- func (_c *ServiceUserService_Delete_Call) Return(_a0 error) *ServiceUserService_Delete_Call
- func (_c *ServiceUserService_Delete_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Delete_Call
- func (_c *ServiceUserService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_Delete_Call
- type ServiceUserService_Expecter
- func (_e *ServiceUserService_Expecter) Create(ctx interface{}, serviceUser interface{}) *ServiceUserService_Create_Call
- func (_e *ServiceUserService_Expecter) CreateKey(ctx interface{}, cred interface{}) *ServiceUserService_CreateKey_Call
- func (_e *ServiceUserService_Expecter) CreateSecret(ctx interface{}, credential interface{}) *ServiceUserService_CreateSecret_Call
- func (_e *ServiceUserService_Expecter) CreateToken(ctx interface{}, credential interface{}) *ServiceUserService_CreateToken_Call
- func (_e *ServiceUserService_Expecter) Delete(ctx interface{}, id interface{}) *ServiceUserService_Delete_Call
- func (_e *ServiceUserService_Expecter) DeleteKey(ctx interface{}, credID interface{}) *ServiceUserService_DeleteKey_Call
- func (_e *ServiceUserService_Expecter) DeleteSecret(ctx interface{}, credID interface{}) *ServiceUserService_DeleteSecret_Call
- func (_e *ServiceUserService_Expecter) DeleteToken(ctx interface{}, credID interface{}) *ServiceUserService_DeleteToken_Call
- func (_e *ServiceUserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceUserService_Get_Call
- func (_e *ServiceUserService_Expecter) GetByIDs(ctx interface{}, ids interface{}) *ServiceUserService_GetByIDs_Call
- func (_e *ServiceUserService_Expecter) GetKey(ctx interface{}, credID interface{}) *ServiceUserService_GetKey_Call
- func (_e *ServiceUserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *ServiceUserService_IsSudo_Call
- func (_e *ServiceUserService_Expecter) List(ctx interface{}, flt interface{}) *ServiceUserService_List_Call
- func (_e *ServiceUserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}) *ServiceUserService_ListByOrg_Call
- func (_e *ServiceUserService_Expecter) ListKeys(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListKeys_Call
- func (_e *ServiceUserService_Expecter) ListSecret(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListSecret_Call
- func (_e *ServiceUserService_Expecter) ListToken(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListToken_Call
- func (_e *ServiceUserService_Expecter) Sudo(ctx interface{}, id interface{}, relationName interface{}) *ServiceUserService_Sudo_Call
- func (_e *ServiceUserService_Expecter) UnSudo(ctx interface{}, id interface{}) *ServiceUserService_UnSudo_Call
- type ServiceUserService_GetByIDs_Call
- func (_c *ServiceUserService_GetByIDs_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_GetByIDs_Call
- func (_c *ServiceUserService_GetByIDs_Call) Run(run func(ctx context.Context, ids []string)) *ServiceUserService_GetByIDs_Call
- func (_c *ServiceUserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]serviceuser.ServiceUser, error)) *ServiceUserService_GetByIDs_Call
- type ServiceUserService_GetKey_Call
- func (_c *ServiceUserService_GetKey_Call) Return(_a0 serviceuser.Credential, _a1 error) *ServiceUserService_GetKey_Call
- func (_c *ServiceUserService_GetKey_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_GetKey_Call
- func (_c *ServiceUserService_GetKey_Call) RunAndReturn(run func(context.Context, string) (serviceuser.Credential, error)) *ServiceUserService_GetKey_Call
- type ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceUserService_Get_Call
- type ServiceUserService_IsSudo_Call
- func (_c *ServiceUserService_IsSudo_Call) Return(_a0 bool, _a1 error) *ServiceUserService_IsSudo_Call
- func (_c *ServiceUserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *ServiceUserService_IsSudo_Call
- func (_c *ServiceUserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *ServiceUserService_IsSudo_Call
- type ServiceUserService_ListByOrg_Call
- func (_c *ServiceUserService_ListByOrg_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_ListByOrg_Call
- func (_c *ServiceUserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string)) *ServiceUserService_ListByOrg_Call
- func (_c *ServiceUserService_ListByOrg_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.ServiceUser, error)) *ServiceUserService_ListByOrg_Call
- type ServiceUserService_ListKeys_Call
- func (_c *ServiceUserService_ListKeys_Call) Return(_a0 []serviceuser.Credential, _a1 error) *ServiceUserService_ListKeys_Call
- func (_c *ServiceUserService_ListKeys_Call) Run(run func(ctx context.Context, serviceUserID string)) *ServiceUserService_ListKeys_Call
- func (_c *ServiceUserService_ListKeys_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.Credential, error)) *ServiceUserService_ListKeys_Call
- type ServiceUserService_ListSecret_Call
- func (_c *ServiceUserService_ListSecret_Call) Return(_a0 []serviceuser.Credential, _a1 error) *ServiceUserService_ListSecret_Call
- func (_c *ServiceUserService_ListSecret_Call) Run(run func(ctx context.Context, serviceUserID string)) *ServiceUserService_ListSecret_Call
- func (_c *ServiceUserService_ListSecret_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.Credential, error)) *ServiceUserService_ListSecret_Call
- type ServiceUserService_ListToken_Call
- func (_c *ServiceUserService_ListToken_Call) Return(_a0 []serviceuser.Credential, _a1 error) *ServiceUserService_ListToken_Call
- func (_c *ServiceUserService_ListToken_Call) Run(run func(ctx context.Context, serviceUserID string)) *ServiceUserService_ListToken_Call
- func (_c *ServiceUserService_ListToken_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.Credential, error)) *ServiceUserService_ListToken_Call
- type ServiceUserService_List_Call
- func (_c *ServiceUserService_List_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_List_Call
- func (_c *ServiceUserService_List_Call) Run(run func(ctx context.Context, flt serviceuser.Filter)) *ServiceUserService_List_Call
- func (_c *ServiceUserService_List_Call) RunAndReturn(...) *ServiceUserService_List_Call
- type ServiceUserService_Sudo_Call
- func (_c *ServiceUserService_Sudo_Call) Return(_a0 error) *ServiceUserService_Sudo_Call
- func (_c *ServiceUserService_Sudo_Call) Run(run func(ctx context.Context, id string, relationName string)) *ServiceUserService_Sudo_Call
- func (_c *ServiceUserService_Sudo_Call) RunAndReturn(run func(context.Context, string, string) error) *ServiceUserService_Sudo_Call
- type ServiceUserService_UnSudo_Call
- func (_c *ServiceUserService_UnSudo_Call) Return(_a0 error) *ServiceUserService_UnSudo_Call
- func (_c *ServiceUserService_UnSudo_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_UnSudo_Call
- func (_c *ServiceUserService_UnSudo_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_UnSudo_Call
- type SessionService
- func (_m *SessionService) Create(ctx context.Context, userID string) (*session.Session, error)
- func (_m *SessionService) Delete(ctx context.Context, sessionID uuid.UUID) error
- func (_m *SessionService) EXPECT() *SessionService_Expecter
- func (_m *SessionService) ExtractFromContext(ctx context.Context) (*session.Session, error)
- func (_m *SessionService) Refresh(ctx context.Context, sessionID uuid.UUID) error
- type SessionService_Create_Call
- func (_c *SessionService_Create_Call) Return(_a0 *session.Session, _a1 error) *SessionService_Create_Call
- func (_c *SessionService_Create_Call) Run(run func(ctx context.Context, userID string)) *SessionService_Create_Call
- func (_c *SessionService_Create_Call) RunAndReturn(run func(context.Context, string) (*session.Session, error)) *SessionService_Create_Call
- type SessionService_Delete_Call
- func (_c *SessionService_Delete_Call) Return(_a0 error) *SessionService_Delete_Call
- func (_c *SessionService_Delete_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *SessionService_Delete_Call
- func (_c *SessionService_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *SessionService_Delete_Call
- type SessionService_Expecter
- func (_e *SessionService_Expecter) Create(ctx interface{}, userID interface{}) *SessionService_Create_Call
- func (_e *SessionService_Expecter) Delete(ctx interface{}, sessionID interface{}) *SessionService_Delete_Call
- func (_e *SessionService_Expecter) ExtractFromContext(ctx interface{}) *SessionService_ExtractFromContext_Call
- func (_e *SessionService_Expecter) Refresh(ctx interface{}, sessionID interface{}) *SessionService_Refresh_Call
- type SessionService_ExtractFromContext_Call
- func (_c *SessionService_ExtractFromContext_Call) Return(_a0 *session.Session, _a1 error) *SessionService_ExtractFromContext_Call
- func (_c *SessionService_ExtractFromContext_Call) Run(run func(ctx context.Context)) *SessionService_ExtractFromContext_Call
- func (_c *SessionService_ExtractFromContext_Call) RunAndReturn(run func(context.Context) (*session.Session, error)) *SessionService_ExtractFromContext_Call
- type SessionService_Refresh_Call
- func (_c *SessionService_Refresh_Call) Return(_a0 error) *SessionService_Refresh_Call
- func (_c *SessionService_Refresh_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *SessionService_Refresh_Call
- func (_c *SessionService_Refresh_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *SessionService_Refresh_Call
- type SubscriptionService
- func (_m *SubscriptionService) Cancel(ctx context.Context, id string, immediate bool) (subscription.Subscription, error)
- func (_m *SubscriptionService) ChangePlan(ctx context.Context, id string, change subscription.ChangeRequest) (subscription.Phase, error)
- func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
- func (_m *SubscriptionService) GetByID(ctx context.Context, id string) (subscription.Subscription, error)
- func (_m *SubscriptionService) HasUserSubscribedBefore(ctx context.Context, customerID string, planID string) (bool, error)
- func (_m *SubscriptionService) List(ctx context.Context, filter subscription.Filter) ([]subscription.Subscription, error)
- type SubscriptionService_Cancel_Call
- func (_c *SubscriptionService_Cancel_Call) Return(_a0 subscription.Subscription, _a1 error) *SubscriptionService_Cancel_Call
- func (_c *SubscriptionService_Cancel_Call) Run(run func(ctx context.Context, id string, immediate bool)) *SubscriptionService_Cancel_Call
- func (_c *SubscriptionService_Cancel_Call) RunAndReturn(run func(context.Context, string, bool) (subscription.Subscription, error)) *SubscriptionService_Cancel_Call
- type SubscriptionService_ChangePlan_Call
- func (_c *SubscriptionService_ChangePlan_Call) Return(_a0 subscription.Phase, _a1 error) *SubscriptionService_ChangePlan_Call
- func (_c *SubscriptionService_ChangePlan_Call) Run(run func(ctx context.Context, id string, change subscription.ChangeRequest)) *SubscriptionService_ChangePlan_Call
- func (_c *SubscriptionService_ChangePlan_Call) RunAndReturn(...) *SubscriptionService_ChangePlan_Call
- type SubscriptionService_Expecter
- func (_e *SubscriptionService_Expecter) Cancel(ctx interface{}, id interface{}, immediate interface{}) *SubscriptionService_Cancel_Call
- func (_e *SubscriptionService_Expecter) ChangePlan(ctx interface{}, id interface{}, change interface{}) *SubscriptionService_ChangePlan_Call
- func (_e *SubscriptionService_Expecter) GetByID(ctx interface{}, id interface{}) *SubscriptionService_GetByID_Call
- func (_e *SubscriptionService_Expecter) HasUserSubscribedBefore(ctx interface{}, customerID interface{}, planID interface{}) *SubscriptionService_HasUserSubscribedBefore_Call
- func (_e *SubscriptionService_Expecter) List(ctx interface{}, filter interface{}) *SubscriptionService_List_Call
- type SubscriptionService_GetByID_Call
- func (_c *SubscriptionService_GetByID_Call) Return(_a0 subscription.Subscription, _a1 error) *SubscriptionService_GetByID_Call
- func (_c *SubscriptionService_GetByID_Call) Run(run func(ctx context.Context, id string)) *SubscriptionService_GetByID_Call
- func (_c *SubscriptionService_GetByID_Call) RunAndReturn(run func(context.Context, string) (subscription.Subscription, error)) *SubscriptionService_GetByID_Call
- type SubscriptionService_HasUserSubscribedBefore_Call
- func (_c *SubscriptionService_HasUserSubscribedBefore_Call) Return(_a0 bool, _a1 error) *SubscriptionService_HasUserSubscribedBefore_Call
- func (_c *SubscriptionService_HasUserSubscribedBefore_Call) Run(run func(ctx context.Context, customerID string, planID string)) *SubscriptionService_HasUserSubscribedBefore_Call
- func (_c *SubscriptionService_HasUserSubscribedBefore_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *SubscriptionService_HasUserSubscribedBefore_Call
- type SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Run(run func(ctx context.Context, filter subscription.Filter)) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) RunAndReturn(...) *SubscriptionService_List_Call
- type UsageService
- type UsageService_Expecter
- type UsageService_Report_Call
- func (_c *UsageService_Report_Call) Return(_a0 error) *UsageService_Report_Call
- func (_c *UsageService_Report_Call) Run(run func(ctx context.Context, usages []usage.Usage)) *UsageService_Report_Call
- func (_c *UsageService_Report_Call) RunAndReturn(run func(context.Context, []usage.Usage) error) *UsageService_Report_Call
- type UsageService_Revert_Call
- func (_c *UsageService_Revert_Call) Return(_a0 error) *UsageService_Revert_Call
- func (_c *UsageService_Revert_Call) Run(run func(ctx context.Context, accountID string, usageID string, amount int64)) *UsageService_Revert_Call
- func (_c *UsageService_Revert_Call) RunAndReturn(run func(context.Context, string, string, int64) error) *UsageService_Revert_Call
- type UserService
- func (_m *UserService) Create(ctx context.Context, _a1 user.User) (user.User, error)
- func (_m *UserService) Disable(ctx context.Context, id string) error
- func (_m *UserService) EXPECT() *UserService_Expecter
- func (_m *UserService) Enable(ctx context.Context, id string) error
- func (_m *UserService) GetByEmail(ctx context.Context, email string) (user.User, error)
- func (_m *UserService) GetByID(ctx context.Context, id string) (user.User, error)
- func (_m *UserService) GetByIDs(ctx context.Context, userIDs []string) ([]user.User, error)
- func (_m *UserService) IsSudo(ctx context.Context, id string, permissionName string) (bool, error)
- func (_m *UserService) List(ctx context.Context, flt user.Filter) ([]user.User, error)
- func (_m *UserService) ListByGroup(ctx context.Context, groupID string, roleFilter string) ([]user.User, error)
- func (_m *UserService) ListByOrg(ctx context.Context, orgID string, roleFilter string) ([]user.User, error)
- func (_m *UserService) Sudo(ctx context.Context, id string, relationName string) error
- func (_m *UserService) UnSudo(ctx context.Context, id string) error
- func (_m *UserService) Update(ctx context.Context, toUpdate user.User) (user.User, error)
- type UserService_Create_Call
- func (_c *UserService_Create_Call) Return(_a0 user.User, _a1 error) *UserService_Create_Call
- func (_c *UserService_Create_Call) Run(run func(ctx context.Context, _a1 user.User)) *UserService_Create_Call
- func (_c *UserService_Create_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_Create_Call
- type UserService_Disable_Call
- func (_c *UserService_Disable_Call) Return(_a0 error) *UserService_Disable_Call
- func (_c *UserService_Disable_Call) Run(run func(ctx context.Context, id string)) *UserService_Disable_Call
- func (_c *UserService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *UserService_Disable_Call
- type UserService_Enable_Call
- type UserService_Expecter
- func (_e *UserService_Expecter) Create(ctx interface{}, _a1 interface{}) *UserService_Create_Call
- func (_e *UserService_Expecter) Disable(ctx interface{}, id interface{}) *UserService_Disable_Call
- func (_e *UserService_Expecter) Enable(ctx interface{}, id interface{}) *UserService_Enable_Call
- func (_e *UserService_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserService_GetByEmail_Call
- func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call
- func (_e *UserService_Expecter) GetByIDs(ctx interface{}, userIDs interface{}) *UserService_GetByIDs_Call
- func (_e *UserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *UserService_IsSudo_Call
- func (_e *UserService_Expecter) List(ctx interface{}, flt interface{}) *UserService_List_Call
- func (_e *UserService_Expecter) ListByGroup(ctx interface{}, groupID interface{}, roleFilter interface{}) *UserService_ListByGroup_Call
- func (_e *UserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}, roleFilter interface{}) *UserService_ListByOrg_Call
- func (_e *UserService_Expecter) Sudo(ctx interface{}, id interface{}, relationName interface{}) *UserService_Sudo_Call
- func (_e *UserService_Expecter) UnSudo(ctx interface{}, id interface{}) *UserService_UnSudo_Call
- func (_e *UserService_Expecter) Update(ctx interface{}, toUpdate interface{}) *UserService_Update_Call
- type UserService_GetByEmail_Call
- func (_c *UserService_GetByEmail_Call) Return(_a0 user.User, _a1 error) *UserService_GetByEmail_Call
- func (_c *UserService_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *UserService_GetByEmail_Call
- func (_c *UserService_GetByEmail_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByEmail_Call
- type UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
- type UserService_GetByIDs_Call
- func (_c *UserService_GetByIDs_Call) Return(_a0 []user.User, _a1 error) *UserService_GetByIDs_Call
- func (_c *UserService_GetByIDs_Call) Run(run func(ctx context.Context, userIDs []string)) *UserService_GetByIDs_Call
- func (_c *UserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]user.User, error)) *UserService_GetByIDs_Call
- type UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) Return(_a0 bool, _a1 error) *UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserService_IsSudo_Call
- type UserService_ListByGroup_Call
- func (_c *UserService_ListByGroup_Call) Return(_a0 []user.User, _a1 error) *UserService_ListByGroup_Call
- func (_c *UserService_ListByGroup_Call) Run(run func(ctx context.Context, groupID string, roleFilter string)) *UserService_ListByGroup_Call
- func (_c *UserService_ListByGroup_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *UserService_ListByGroup_Call
- type UserService_ListByOrg_Call
- func (_c *UserService_ListByOrg_Call) Return(_a0 []user.User, _a1 error) *UserService_ListByOrg_Call
- func (_c *UserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string, roleFilter string)) *UserService_ListByOrg_Call
- func (_c *UserService_ListByOrg_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *UserService_ListByOrg_Call
- type UserService_List_Call
- func (_c *UserService_List_Call) Return(_a0 []user.User, _a1 error) *UserService_List_Call
- func (_c *UserService_List_Call) Run(run func(ctx context.Context, flt user.Filter)) *UserService_List_Call
- func (_c *UserService_List_Call) RunAndReturn(run func(context.Context, user.Filter) ([]user.User, error)) *UserService_List_Call
- type UserService_Sudo_Call
- func (_c *UserService_Sudo_Call) Return(_a0 error) *UserService_Sudo_Call
- func (_c *UserService_Sudo_Call) Run(run func(ctx context.Context, id string, relationName string)) *UserService_Sudo_Call
- func (_c *UserService_Sudo_Call) RunAndReturn(run func(context.Context, string, string) error) *UserService_Sudo_Call
- type UserService_UnSudo_Call
- type UserService_Update_Call
- func (_c *UserService_Update_Call) Return(_a0 user.User, _a1 error) *UserService_Update_Call
- func (_c *UserService_Update_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_Update_Call
- func (_c *UserService_Update_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_Update_Call
- type WebhookService
- func (_m *WebhookService) CreateEndpoint(ctx context.Context, endpoint webhook.Endpoint) (webhook.Endpoint, error)
- func (_m *WebhookService) DeleteEndpoint(ctx context.Context, id string) error
- func (_m *WebhookService) EXPECT() *WebhookService_Expecter
- func (_m *WebhookService) ListEndpoints(ctx context.Context, filter webhook.EndpointFilter) ([]webhook.Endpoint, error)
- func (_m *WebhookService) UpdateEndpoint(ctx context.Context, endpoint webhook.Endpoint) (webhook.Endpoint, error)
- type WebhookService_CreateEndpoint_Call
- func (_c *WebhookService_CreateEndpoint_Call) Return(_a0 webhook.Endpoint, _a1 error) *WebhookService_CreateEndpoint_Call
- func (_c *WebhookService_CreateEndpoint_Call) Run(run func(ctx context.Context, endpoint webhook.Endpoint)) *WebhookService_CreateEndpoint_Call
- func (_c *WebhookService_CreateEndpoint_Call) RunAndReturn(run func(context.Context, webhook.Endpoint) (webhook.Endpoint, error)) *WebhookService_CreateEndpoint_Call
- type WebhookService_DeleteEndpoint_Call
- func (_c *WebhookService_DeleteEndpoint_Call) Return(_a0 error) *WebhookService_DeleteEndpoint_Call
- func (_c *WebhookService_DeleteEndpoint_Call) Run(run func(ctx context.Context, id string)) *WebhookService_DeleteEndpoint_Call
- func (_c *WebhookService_DeleteEndpoint_Call) RunAndReturn(run func(context.Context, string) error) *WebhookService_DeleteEndpoint_Call
- type WebhookService_Expecter
- func (_e *WebhookService_Expecter) CreateEndpoint(ctx interface{}, endpoint interface{}) *WebhookService_CreateEndpoint_Call
- func (_e *WebhookService_Expecter) DeleteEndpoint(ctx interface{}, id interface{}) *WebhookService_DeleteEndpoint_Call
- func (_e *WebhookService_Expecter) ListEndpoints(ctx interface{}, filter interface{}) *WebhookService_ListEndpoints_Call
- func (_e *WebhookService_Expecter) UpdateEndpoint(ctx interface{}, endpoint interface{}) *WebhookService_UpdateEndpoint_Call
- type WebhookService_ListEndpoints_Call
- func (_c *WebhookService_ListEndpoints_Call) Return(_a0 []webhook.Endpoint, _a1 error) *WebhookService_ListEndpoints_Call
- func (_c *WebhookService_ListEndpoints_Call) Run(run func(ctx context.Context, filter webhook.EndpointFilter)) *WebhookService_ListEndpoints_Call
- func (_c *WebhookService_ListEndpoints_Call) RunAndReturn(run func(context.Context, webhook.EndpointFilter) ([]webhook.Endpoint, error)) *WebhookService_ListEndpoints_Call
- type WebhookService_UpdateEndpoint_Call
- func (_c *WebhookService_UpdateEndpoint_Call) Return(_a0 webhook.Endpoint, _a1 error) *WebhookService_UpdateEndpoint_Call
- func (_c *WebhookService_UpdateEndpoint_Call) Run(run func(ctx context.Context, endpoint webhook.Endpoint)) *WebhookService_UpdateEndpoint_Call
- func (_c *WebhookService_UpdateEndpoint_Call) RunAndReturn(run func(context.Context, webhook.Endpoint) (webhook.Endpoint, error)) *WebhookService_UpdateEndpoint_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditService ¶
AuditService is an autogenerated mock type for the AuditService type
func NewAuditService ¶
func NewAuditService(t interface { mock.TestingT Cleanup(func()) }) *AuditService
NewAuditService creates a new instance of AuditService. 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 (*AuditService) EXPECT ¶
func (_m *AuditService) EXPECT() *AuditService_Expecter
type AuditService_Create_Call ¶
AuditService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AuditService_Create_Call) Return ¶
func (_c *AuditService_Create_Call) Return(_a0 error) *AuditService_Create_Call
func (*AuditService_Create_Call) Run ¶
func (_c *AuditService_Create_Call) Run(run func(ctx context.Context, log *audit.Log)) *AuditService_Create_Call
func (*AuditService_Create_Call) RunAndReturn ¶
func (_c *AuditService_Create_Call) RunAndReturn(run func(context.Context, *audit.Log) error) *AuditService_Create_Call
type AuditService_Expecter ¶
type AuditService_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditService_Expecter) Create ¶
func (_e *AuditService_Expecter) Create(ctx interface{}, log interface{}) *AuditService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- log *audit.Log
func (*AuditService_Expecter) GetByID ¶
func (_e *AuditService_Expecter) GetByID(ctx interface{}, id interface{}) *AuditService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*AuditService_Expecter) List ¶
func (_e *AuditService_Expecter) List(ctx interface{}, filter interface{}) *AuditService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter audit.Filter
type AuditService_GetByID_Call ¶
AuditService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*AuditService_GetByID_Call) Return ¶
func (_c *AuditService_GetByID_Call) Return(_a0 audit.Log, _a1 error) *AuditService_GetByID_Call
func (*AuditService_GetByID_Call) Run ¶
func (_c *AuditService_GetByID_Call) Run(run func(ctx context.Context, id string)) *AuditService_GetByID_Call
func (*AuditService_GetByID_Call) RunAndReturn ¶
func (_c *AuditService_GetByID_Call) RunAndReturn(run func(context.Context, string) (audit.Log, error)) *AuditService_GetByID_Call
type AuditService_List_Call ¶
AuditService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AuditService_List_Call) Return ¶
func (_c *AuditService_List_Call) Return(_a0 []audit.Log, _a1 error) *AuditService_List_Call
func (*AuditService_List_Call) Run ¶
func (_c *AuditService_List_Call) Run(run func(ctx context.Context, filter audit.Filter)) *AuditService_List_Call
func (*AuditService_List_Call) RunAndReturn ¶
func (_c *AuditService_List_Call) RunAndReturn(run func(context.Context, audit.Filter) ([]audit.Log, error)) *AuditService_List_Call
type AuthnService ¶
AuthnService is an autogenerated mock type for the AuthnService type
func NewAuthnService ¶
func NewAuthnService(t interface { mock.TestingT Cleanup(func()) }) *AuthnService
NewAuthnService creates a new instance of AuthnService. 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 (*AuthnService) BuildToken ¶
func (_m *AuthnService) BuildToken(ctx context.Context, principalID string, metadata map[string]string) ([]byte, error)
BuildToken provides a mock function with given fields: ctx, principalID, metadata
func (*AuthnService) EXPECT ¶
func (_m *AuthnService) EXPECT() *AuthnService_Expecter
func (*AuthnService) FinishFlow ¶
func (_m *AuthnService) FinishFlow(ctx context.Context, request authenticate.RegistrationFinishRequest) (*authenticate.RegistrationFinishResponse, error)
FinishFlow provides a mock function with given fields: ctx, request
func (*AuthnService) GetPrincipal ¶
func (_m *AuthnService) GetPrincipal(ctx context.Context, via ...authenticate.ClientAssertion) (authenticate.Principal, error)
GetPrincipal provides a mock function with given fields: ctx, via
func (*AuthnService) InitFlows ¶
func (_m *AuthnService) InitFlows(ctx context.Context) error
InitFlows provides a mock function with given fields: ctx
func (*AuthnService) JWKs ¶
func (_m *AuthnService) JWKs(ctx context.Context) jwk.Set
JWKs provides a mock function with given fields: ctx
func (*AuthnService) SanitizeCallbackURL ¶ added in v0.7.2
func (_m *AuthnService) SanitizeCallbackURL(url string) string
SanitizeCallbackURL provides a mock function with given fields: url
func (*AuthnService) SanitizeReturnToURL ¶ added in v0.7.2
func (_m *AuthnService) SanitizeReturnToURL(url string) string
SanitizeReturnToURL provides a mock function with given fields: url
func (*AuthnService) StartFlow ¶
func (_m *AuthnService) StartFlow(ctx context.Context, request authenticate.RegistrationStartRequest) (*authenticate.RegistrationStartResponse, error)
StartFlow provides a mock function with given fields: ctx, request
func (*AuthnService) SupportedStrategies ¶
func (_m *AuthnService) SupportedStrategies() []string
SupportedStrategies provides a mock function with given fields:
type AuthnService_BuildToken_Call ¶
AuthnService_BuildToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildToken'
func (*AuthnService_BuildToken_Call) Return ¶
func (_c *AuthnService_BuildToken_Call) Return(_a0 []byte, _a1 error) *AuthnService_BuildToken_Call
func (*AuthnService_BuildToken_Call) Run ¶
func (_c *AuthnService_BuildToken_Call) Run(run func(ctx context.Context, principalID string, metadata map[string]string)) *AuthnService_BuildToken_Call
func (*AuthnService_BuildToken_Call) RunAndReturn ¶
func (_c *AuthnService_BuildToken_Call) RunAndReturn(run func(context.Context, string, map[string]string) ([]byte, error)) *AuthnService_BuildToken_Call
type AuthnService_Expecter ¶
type AuthnService_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthnService_Expecter) BuildToken ¶
func (_e *AuthnService_Expecter) BuildToken(ctx interface{}, principalID interface{}, metadata interface{}) *AuthnService_BuildToken_Call
BuildToken is a helper method to define mock.On call
- ctx context.Context
- principalID string
- metadata map[string]string
func (*AuthnService_Expecter) FinishFlow ¶
func (_e *AuthnService_Expecter) FinishFlow(ctx interface{}, request interface{}) *AuthnService_FinishFlow_Call
FinishFlow is a helper method to define mock.On call
- ctx context.Context
- request authenticate.RegistrationFinishRequest
func (*AuthnService_Expecter) GetPrincipal ¶
func (_e *AuthnService_Expecter) GetPrincipal(ctx interface{}, via ...interface{}) *AuthnService_GetPrincipal_Call
GetPrincipal is a helper method to define mock.On call
- ctx context.Context
- via ...authenticate.ClientAssertion
func (*AuthnService_Expecter) InitFlows ¶
func (_e *AuthnService_Expecter) InitFlows(ctx interface{}) *AuthnService_InitFlows_Call
InitFlows is a helper method to define mock.On call
- ctx context.Context
func (*AuthnService_Expecter) JWKs ¶
func (_e *AuthnService_Expecter) JWKs(ctx interface{}) *AuthnService_JWKs_Call
JWKs is a helper method to define mock.On call
- ctx context.Context
func (*AuthnService_Expecter) SanitizeCallbackURL ¶ added in v0.7.2
func (_e *AuthnService_Expecter) SanitizeCallbackURL(url interface{}) *AuthnService_SanitizeCallbackURL_Call
SanitizeCallbackURL is a helper method to define mock.On call
- url string
func (*AuthnService_Expecter) SanitizeReturnToURL ¶ added in v0.7.2
func (_e *AuthnService_Expecter) SanitizeReturnToURL(url interface{}) *AuthnService_SanitizeReturnToURL_Call
SanitizeReturnToURL is a helper method to define mock.On call
- url string
func (*AuthnService_Expecter) StartFlow ¶
func (_e *AuthnService_Expecter) StartFlow(ctx interface{}, request interface{}) *AuthnService_StartFlow_Call
StartFlow is a helper method to define mock.On call
- ctx context.Context
- request authenticate.RegistrationStartRequest
func (*AuthnService_Expecter) SupportedStrategies ¶
func (_e *AuthnService_Expecter) SupportedStrategies() *AuthnService_SupportedStrategies_Call
SupportedStrategies is a helper method to define mock.On call
type AuthnService_FinishFlow_Call ¶
AuthnService_FinishFlow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinishFlow'
func (*AuthnService_FinishFlow_Call) Return ¶
func (_c *AuthnService_FinishFlow_Call) Return(_a0 *authenticate.RegistrationFinishResponse, _a1 error) *AuthnService_FinishFlow_Call
func (*AuthnService_FinishFlow_Call) Run ¶
func (_c *AuthnService_FinishFlow_Call) Run(run func(ctx context.Context, request authenticate.RegistrationFinishRequest)) *AuthnService_FinishFlow_Call
func (*AuthnService_FinishFlow_Call) RunAndReturn ¶
func (_c *AuthnService_FinishFlow_Call) RunAndReturn(run func(context.Context, authenticate.RegistrationFinishRequest) (*authenticate.RegistrationFinishResponse, error)) *AuthnService_FinishFlow_Call
type AuthnService_GetPrincipal_Call ¶
AuthnService_GetPrincipal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrincipal'
func (*AuthnService_GetPrincipal_Call) Return ¶
func (_c *AuthnService_GetPrincipal_Call) Return(_a0 authenticate.Principal, _a1 error) *AuthnService_GetPrincipal_Call
func (*AuthnService_GetPrincipal_Call) Run ¶
func (_c *AuthnService_GetPrincipal_Call) Run(run func(ctx context.Context, via ...authenticate.ClientAssertion)) *AuthnService_GetPrincipal_Call
func (*AuthnService_GetPrincipal_Call) RunAndReturn ¶
func (_c *AuthnService_GetPrincipal_Call) RunAndReturn(run func(context.Context, ...authenticate.ClientAssertion) (authenticate.Principal, error)) *AuthnService_GetPrincipal_Call
type AuthnService_InitFlows_Call ¶
AuthnService_InitFlows_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitFlows'
func (*AuthnService_InitFlows_Call) Return ¶
func (_c *AuthnService_InitFlows_Call) Return(_a0 error) *AuthnService_InitFlows_Call
func (*AuthnService_InitFlows_Call) Run ¶
func (_c *AuthnService_InitFlows_Call) Run(run func(ctx context.Context)) *AuthnService_InitFlows_Call
func (*AuthnService_InitFlows_Call) RunAndReturn ¶
func (_c *AuthnService_InitFlows_Call) RunAndReturn(run func(context.Context) error) *AuthnService_InitFlows_Call
type AuthnService_JWKs_Call ¶
AuthnService_JWKs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JWKs'
func (*AuthnService_JWKs_Call) Return ¶
func (_c *AuthnService_JWKs_Call) Return(_a0 jwk.Set) *AuthnService_JWKs_Call
func (*AuthnService_JWKs_Call) Run ¶
func (_c *AuthnService_JWKs_Call) Run(run func(ctx context.Context)) *AuthnService_JWKs_Call
func (*AuthnService_JWKs_Call) RunAndReturn ¶
func (_c *AuthnService_JWKs_Call) RunAndReturn(run func(context.Context) jwk.Set) *AuthnService_JWKs_Call
type AuthnService_SanitizeCallbackURL_Call ¶ added in v0.7.2
AuthnService_SanitizeCallbackURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SanitizeCallbackURL'
func (*AuthnService_SanitizeCallbackURL_Call) Return ¶ added in v0.7.2
func (_c *AuthnService_SanitizeCallbackURL_Call) Return(_a0 string) *AuthnService_SanitizeCallbackURL_Call
func (*AuthnService_SanitizeCallbackURL_Call) Run ¶ added in v0.7.2
func (_c *AuthnService_SanitizeCallbackURL_Call) Run(run func(url string)) *AuthnService_SanitizeCallbackURL_Call
func (*AuthnService_SanitizeCallbackURL_Call) RunAndReturn ¶ added in v0.7.2
func (_c *AuthnService_SanitizeCallbackURL_Call) RunAndReturn(run func(string) string) *AuthnService_SanitizeCallbackURL_Call
type AuthnService_SanitizeReturnToURL_Call ¶ added in v0.7.2
AuthnService_SanitizeReturnToURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SanitizeReturnToURL'
func (*AuthnService_SanitizeReturnToURL_Call) Return ¶ added in v0.7.2
func (_c *AuthnService_SanitizeReturnToURL_Call) Return(_a0 string) *AuthnService_SanitizeReturnToURL_Call
func (*AuthnService_SanitizeReturnToURL_Call) Run ¶ added in v0.7.2
func (_c *AuthnService_SanitizeReturnToURL_Call) Run(run func(url string)) *AuthnService_SanitizeReturnToURL_Call
func (*AuthnService_SanitizeReturnToURL_Call) RunAndReturn ¶ added in v0.7.2
func (_c *AuthnService_SanitizeReturnToURL_Call) RunAndReturn(run func(string) string) *AuthnService_SanitizeReturnToURL_Call
type AuthnService_StartFlow_Call ¶
AuthnService_StartFlow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartFlow'
func (*AuthnService_StartFlow_Call) Return ¶
func (_c *AuthnService_StartFlow_Call) Return(_a0 *authenticate.RegistrationStartResponse, _a1 error) *AuthnService_StartFlow_Call
func (*AuthnService_StartFlow_Call) Run ¶
func (_c *AuthnService_StartFlow_Call) Run(run func(ctx context.Context, request authenticate.RegistrationStartRequest)) *AuthnService_StartFlow_Call
func (*AuthnService_StartFlow_Call) RunAndReturn ¶
func (_c *AuthnService_StartFlow_Call) RunAndReturn(run func(context.Context, authenticate.RegistrationStartRequest) (*authenticate.RegistrationStartResponse, error)) *AuthnService_StartFlow_Call
type AuthnService_SupportedStrategies_Call ¶
AuthnService_SupportedStrategies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedStrategies'
func (*AuthnService_SupportedStrategies_Call) Return ¶
func (_c *AuthnService_SupportedStrategies_Call) Return(_a0 []string) *AuthnService_SupportedStrategies_Call
func (*AuthnService_SupportedStrategies_Call) Run ¶
func (_c *AuthnService_SupportedStrategies_Call) Run(run func()) *AuthnService_SupportedStrategies_Call
func (*AuthnService_SupportedStrategies_Call) RunAndReturn ¶
func (_c *AuthnService_SupportedStrategies_Call) RunAndReturn(run func() []string) *AuthnService_SupportedStrategies_Call
type BootstrapService ¶
BootstrapService is an autogenerated mock type for the BootstrapService type
func NewBootstrapService ¶
func NewBootstrapService(t interface { mock.TestingT Cleanup(func()) }) *BootstrapService
NewBootstrapService creates a new instance of BootstrapService. 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 (*BootstrapService) AppendSchema ¶
func (_m *BootstrapService) AppendSchema(ctx context.Context, definition schema.ServiceDefinition) error
AppendSchema provides a mock function with given fields: ctx, definition
func (*BootstrapService) EXPECT ¶
func (_m *BootstrapService) EXPECT() *BootstrapService_Expecter
type BootstrapService_AppendSchema_Call ¶
BootstrapService_AppendSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppendSchema'
func (*BootstrapService_AppendSchema_Call) Return ¶
func (_c *BootstrapService_AppendSchema_Call) Return(_a0 error) *BootstrapService_AppendSchema_Call
func (*BootstrapService_AppendSchema_Call) Run ¶
func (_c *BootstrapService_AppendSchema_Call) Run(run func(ctx context.Context, definition schema.ServiceDefinition)) *BootstrapService_AppendSchema_Call
func (*BootstrapService_AppendSchema_Call) RunAndReturn ¶
func (_c *BootstrapService_AppendSchema_Call) RunAndReturn(run func(context.Context, schema.ServiceDefinition) error) *BootstrapService_AppendSchema_Call
type BootstrapService_Expecter ¶
type BootstrapService_Expecter struct {
// contains filtered or unexported fields
}
func (*BootstrapService_Expecter) AppendSchema ¶
func (_e *BootstrapService_Expecter) AppendSchema(ctx interface{}, definition interface{}) *BootstrapService_AppendSchema_Call
AppendSchema is a helper method to define mock.On call
- ctx context.Context
- definition schema.ServiceDefinition
type CascadeDeleter ¶
CascadeDeleter is an autogenerated mock type for the CascadeDeleter type
func NewCascadeDeleter ¶
func NewCascadeDeleter(t interface { mock.TestingT Cleanup(func()) }) *CascadeDeleter
NewCascadeDeleter creates a new instance of CascadeDeleter. 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 (*CascadeDeleter) DeleteOrganization ¶
func (_m *CascadeDeleter) DeleteOrganization(ctx context.Context, id string) error
DeleteOrganization provides a mock function with given fields: ctx, id
func (*CascadeDeleter) DeleteProject ¶
func (_m *CascadeDeleter) DeleteProject(ctx context.Context, id string) error
DeleteProject provides a mock function with given fields: ctx, id
func (*CascadeDeleter) DeleteUser ¶ added in v0.7.6
func (_m *CascadeDeleter) DeleteUser(ctx context.Context, userID string) error
DeleteUser provides a mock function with given fields: ctx, userID
func (*CascadeDeleter) EXPECT ¶
func (_m *CascadeDeleter) EXPECT() *CascadeDeleter_Expecter
func (*CascadeDeleter) RemoveUsersFromOrg ¶ added in v0.7.5
func (_m *CascadeDeleter) RemoveUsersFromOrg(ctx context.Context, orgID string, userIDs []string) error
RemoveUsersFromOrg provides a mock function with given fields: ctx, orgID, userIDs
type CascadeDeleter_DeleteOrganization_Call ¶
CascadeDeleter_DeleteOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOrganization'
func (*CascadeDeleter_DeleteOrganization_Call) Return ¶
func (_c *CascadeDeleter_DeleteOrganization_Call) Return(_a0 error) *CascadeDeleter_DeleteOrganization_Call
func (*CascadeDeleter_DeleteOrganization_Call) Run ¶
func (_c *CascadeDeleter_DeleteOrganization_Call) Run(run func(ctx context.Context, id string)) *CascadeDeleter_DeleteOrganization_Call
func (*CascadeDeleter_DeleteOrganization_Call) RunAndReturn ¶
func (_c *CascadeDeleter_DeleteOrganization_Call) RunAndReturn(run func(context.Context, string) error) *CascadeDeleter_DeleteOrganization_Call
type CascadeDeleter_DeleteProject_Call ¶
CascadeDeleter_DeleteProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProject'
func (*CascadeDeleter_DeleteProject_Call) Return ¶
func (_c *CascadeDeleter_DeleteProject_Call) Return(_a0 error) *CascadeDeleter_DeleteProject_Call
func (*CascadeDeleter_DeleteProject_Call) Run ¶
func (_c *CascadeDeleter_DeleteProject_Call) Run(run func(ctx context.Context, id string)) *CascadeDeleter_DeleteProject_Call
func (*CascadeDeleter_DeleteProject_Call) RunAndReturn ¶
func (_c *CascadeDeleter_DeleteProject_Call) RunAndReturn(run func(context.Context, string) error) *CascadeDeleter_DeleteProject_Call
type CascadeDeleter_DeleteUser_Call ¶ added in v0.7.6
CascadeDeleter_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*CascadeDeleter_DeleteUser_Call) Return ¶ added in v0.7.6
func (_c *CascadeDeleter_DeleteUser_Call) Return(_a0 error) *CascadeDeleter_DeleteUser_Call
func (*CascadeDeleter_DeleteUser_Call) Run ¶ added in v0.7.6
func (_c *CascadeDeleter_DeleteUser_Call) Run(run func(ctx context.Context, userID string)) *CascadeDeleter_DeleteUser_Call
func (*CascadeDeleter_DeleteUser_Call) RunAndReturn ¶ added in v0.7.6
func (_c *CascadeDeleter_DeleteUser_Call) RunAndReturn(run func(context.Context, string) error) *CascadeDeleter_DeleteUser_Call
type CascadeDeleter_Expecter ¶
type CascadeDeleter_Expecter struct {
// contains filtered or unexported fields
}
func (*CascadeDeleter_Expecter) DeleteOrganization ¶
func (_e *CascadeDeleter_Expecter) DeleteOrganization(ctx interface{}, id interface{}) *CascadeDeleter_DeleteOrganization_Call
DeleteOrganization is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CascadeDeleter_Expecter) DeleteProject ¶
func (_e *CascadeDeleter_Expecter) DeleteProject(ctx interface{}, id interface{}) *CascadeDeleter_DeleteProject_Call
DeleteProject is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CascadeDeleter_Expecter) DeleteUser ¶ added in v0.7.6
func (_e *CascadeDeleter_Expecter) DeleteUser(ctx interface{}, userID interface{}) *CascadeDeleter_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*CascadeDeleter_Expecter) RemoveUsersFromOrg ¶ added in v0.7.5
func (_e *CascadeDeleter_Expecter) RemoveUsersFromOrg(ctx interface{}, orgID interface{}, userIDs interface{}) *CascadeDeleter_RemoveUsersFromOrg_Call
RemoveUsersFromOrg is a helper method to define mock.On call
- ctx context.Context
- orgID string
- userIDs []string
type CascadeDeleter_RemoveUsersFromOrg_Call ¶ added in v0.7.5
CascadeDeleter_RemoveUsersFromOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUsersFromOrg'
func (*CascadeDeleter_RemoveUsersFromOrg_Call) Return ¶ added in v0.7.5
func (_c *CascadeDeleter_RemoveUsersFromOrg_Call) Return(_a0 error) *CascadeDeleter_RemoveUsersFromOrg_Call
func (*CascadeDeleter_RemoveUsersFromOrg_Call) Run ¶ added in v0.7.5
func (_c *CascadeDeleter_RemoveUsersFromOrg_Call) Run(run func(ctx context.Context, orgID string, userIDs []string)) *CascadeDeleter_RemoveUsersFromOrg_Call
func (*CascadeDeleter_RemoveUsersFromOrg_Call) RunAndReturn ¶ added in v0.7.5
func (_c *CascadeDeleter_RemoveUsersFromOrg_Call) RunAndReturn(run func(context.Context, string, []string) error) *CascadeDeleter_RemoveUsersFromOrg_Call
type CheckoutService ¶ added in v0.17.0
CheckoutService is an autogenerated mock type for the CheckoutService type
func NewCheckoutService ¶ added in v0.17.0
func NewCheckoutService(t interface { mock.TestingT Cleanup(func()) }) *CheckoutService
NewCheckoutService creates a new instance of CheckoutService. 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 (*CheckoutService) Apply ¶ added in v0.17.0
func (_m *CheckoutService) Apply(ctx context.Context, ch checkout.Checkout) (*subscription.Subscription, *product.Product, error)
Apply provides a mock function with given fields: ctx, ch
func (*CheckoutService) Create ¶ added in v0.17.0
func (_m *CheckoutService) Create(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
Create provides a mock function with given fields: ctx, ch
func (*CheckoutService) CreateSessionForCustomerPortal ¶ added in v0.17.0
func (_m *CheckoutService) CreateSessionForCustomerPortal(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
CreateSessionForCustomerPortal provides a mock function with given fields: ctx, ch
func (*CheckoutService) CreateSessionForPaymentMethod ¶ added in v0.17.0
func (_m *CheckoutService) CreateSessionForPaymentMethod(ctx context.Context, ch checkout.Checkout) (checkout.Checkout, error)
CreateSessionForPaymentMethod provides a mock function with given fields: ctx, ch
func (*CheckoutService) EXPECT ¶ added in v0.17.0
func (_m *CheckoutService) EXPECT() *CheckoutService_Expecter
type CheckoutService_Apply_Call ¶ added in v0.17.0
CheckoutService_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*CheckoutService_Apply_Call) Return ¶ added in v0.17.0
func (_c *CheckoutService_Apply_Call) Return(_a0 *subscription.Subscription, _a1 *product.Product, _a2 error) *CheckoutService_Apply_Call
func (*CheckoutService_Apply_Call) Run ¶ added in v0.17.0
func (_c *CheckoutService_Apply_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Apply_Call
func (*CheckoutService_Apply_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CheckoutService_Apply_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (*subscription.Subscription, *product.Product, error)) *CheckoutService_Apply_Call
type CheckoutService_CreateSessionForCustomerPortal_Call ¶ added in v0.17.0
CheckoutService_CreateSessionForCustomerPortal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSessionForCustomerPortal'
func (*CheckoutService_CreateSessionForCustomerPortal_Call) Return ¶ added in v0.17.0
func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForCustomerPortal_Call
func (*CheckoutService_CreateSessionForCustomerPortal_Call) Run ¶ added in v0.17.0
func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForCustomerPortal_Call
func (*CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CheckoutService_CreateSessionForCustomerPortal_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForCustomerPortal_Call
type CheckoutService_CreateSessionForPaymentMethod_Call ¶ added in v0.17.0
CheckoutService_CreateSessionForPaymentMethod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSessionForPaymentMethod'
func (*CheckoutService_CreateSessionForPaymentMethod_Call) Return ¶ added in v0.17.0
func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_CreateSessionForPaymentMethod_Call
func (*CheckoutService_CreateSessionForPaymentMethod_Call) Run ¶ added in v0.17.0
func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_CreateSessionForPaymentMethod_Call
func (*CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CheckoutService_CreateSessionForPaymentMethod_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_CreateSessionForPaymentMethod_Call
type CheckoutService_Create_Call ¶ added in v0.17.0
CheckoutService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*CheckoutService_Create_Call) Return ¶ added in v0.17.0
func (_c *CheckoutService_Create_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_Create_Call
func (*CheckoutService_Create_Call) Run ¶ added in v0.17.0
func (_c *CheckoutService_Create_Call) Run(run func(ctx context.Context, ch checkout.Checkout)) *CheckoutService_Create_Call
func (*CheckoutService_Create_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CheckoutService_Create_Call) RunAndReturn(run func(context.Context, checkout.Checkout) (checkout.Checkout, error)) *CheckoutService_Create_Call
type CheckoutService_Expecter ¶ added in v0.17.0
type CheckoutService_Expecter struct {
// contains filtered or unexported fields
}
func (*CheckoutService_Expecter) Apply ¶ added in v0.17.0
func (_e *CheckoutService_Expecter) Apply(ctx interface{}, ch interface{}) *CheckoutService_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) Create ¶ added in v0.17.0
func (_e *CheckoutService_Expecter) Create(ctx interface{}, ch interface{}) *CheckoutService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) CreateSessionForCustomerPortal ¶ added in v0.17.0
func (_e *CheckoutService_Expecter) CreateSessionForCustomerPortal(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForCustomerPortal_Call
CreateSessionForCustomerPortal is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) CreateSessionForPaymentMethod ¶ added in v0.17.0
func (_e *CheckoutService_Expecter) CreateSessionForPaymentMethod(ctx interface{}, ch interface{}) *CheckoutService_CreateSessionForPaymentMethod_Call
CreateSessionForPaymentMethod is a helper method to define mock.On call
- ctx context.Context
- ch checkout.Checkout
func (*CheckoutService_Expecter) GetByID ¶ added in v0.29.0
func (_e *CheckoutService_Expecter) GetByID(ctx interface{}, id interface{}) *CheckoutService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CheckoutService_Expecter) List ¶ added in v0.17.0
func (_e *CheckoutService_Expecter) List(ctx interface{}, filter interface{}) *CheckoutService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter checkout.Filter
type CheckoutService_GetByID_Call ¶ added in v0.29.0
CheckoutService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*CheckoutService_GetByID_Call) Return ¶ added in v0.29.0
func (_c *CheckoutService_GetByID_Call) Return(_a0 checkout.Checkout, _a1 error) *CheckoutService_GetByID_Call
func (*CheckoutService_GetByID_Call) Run ¶ added in v0.29.0
func (_c *CheckoutService_GetByID_Call) Run(run func(ctx context.Context, id string)) *CheckoutService_GetByID_Call
func (*CheckoutService_GetByID_Call) RunAndReturn ¶ added in v0.29.0
func (_c *CheckoutService_GetByID_Call) RunAndReturn(run func(context.Context, string) (checkout.Checkout, error)) *CheckoutService_GetByID_Call
type CheckoutService_List_Call ¶ added in v0.17.0
CheckoutService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CheckoutService_List_Call) Return ¶ added in v0.17.0
func (_c *CheckoutService_List_Call) Return(_a0 []checkout.Checkout, _a1 error) *CheckoutService_List_Call
func (*CheckoutService_List_Call) Run ¶ added in v0.17.0
func (_c *CheckoutService_List_Call) Run(run func(ctx context.Context, filter checkout.Filter)) *CheckoutService_List_Call
func (*CheckoutService_List_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CheckoutService_List_Call) RunAndReturn(run func(context.Context, checkout.Filter) ([]checkout.Checkout, error)) *CheckoutService_List_Call
type CreditService ¶ added in v0.17.0
CreditService is an autogenerated mock type for the CreditService type
func NewCreditService ¶ added in v0.17.0
func NewCreditService(t interface { mock.TestingT Cleanup(func()) }) *CreditService
NewCreditService creates a new instance of CreditService. 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 (*CreditService) EXPECT ¶ added in v0.17.0
func (_m *CreditService) EXPECT() *CreditService_Expecter
func (*CreditService) GetBalance ¶ added in v0.17.0
GetBalance provides a mock function with given fields: ctx, accountID
func (*CreditService) List ¶ added in v0.17.0
func (_m *CreditService) List(ctx context.Context, filter credit.Filter) ([]credit.Transaction, error)
List provides a mock function with given fields: ctx, filter
type CreditService_Expecter ¶ added in v0.17.0
type CreditService_Expecter struct {
// contains filtered or unexported fields
}
func (*CreditService_Expecter) GetBalance ¶ added in v0.17.0
func (_e *CreditService_Expecter) GetBalance(ctx interface{}, accountID interface{}) *CreditService_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx context.Context
- accountID string
func (*CreditService_Expecter) List ¶ added in v0.17.0
func (_e *CreditService_Expecter) List(ctx interface{}, filter interface{}) *CreditService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter credit.Filter
type CreditService_GetBalance_Call ¶ added in v0.17.0
CreditService_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*CreditService_GetBalance_Call) Return ¶ added in v0.17.0
func (_c *CreditService_GetBalance_Call) Return(_a0 int64, _a1 error) *CreditService_GetBalance_Call
func (*CreditService_GetBalance_Call) Run ¶ added in v0.17.0
func (_c *CreditService_GetBalance_Call) Run(run func(ctx context.Context, accountID string)) *CreditService_GetBalance_Call
func (*CreditService_GetBalance_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CreditService_GetBalance_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *CreditService_GetBalance_Call
type CreditService_List_Call ¶ added in v0.17.0
CreditService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CreditService_List_Call) Return ¶ added in v0.17.0
func (_c *CreditService_List_Call) Return(_a0 []credit.Transaction, _a1 error) *CreditService_List_Call
func (*CreditService_List_Call) Run ¶ added in v0.17.0
func (_c *CreditService_List_Call) Run(run func(ctx context.Context, filter credit.Filter)) *CreditService_List_Call
func (*CreditService_List_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CreditService_List_Call) RunAndReturn(run func(context.Context, credit.Filter) ([]credit.Transaction, error)) *CreditService_List_Call
type CustomerService ¶ added in v0.8.36
CustomerService is an autogenerated mock type for the CustomerService type
func NewCustomerService ¶ added in v0.8.36
func NewCustomerService(t interface { mock.TestingT Cleanup(func()) }) *CustomerService
NewCustomerService creates a new instance of CustomerService. 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 (*CustomerService) Create ¶ added in v0.8.36
func (_m *CustomerService) Create(ctx context.Context, _a1 customer.Customer, offline bool) (customer.Customer, error)
Create provides a mock function with given fields: ctx, _a1, offline
func (*CustomerService) Delete ¶ added in v0.8.36
func (_m *CustomerService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*CustomerService) Disable ¶ added in v0.17.0
func (_m *CustomerService) Disable(ctx context.Context, id string) error
Disable provides a mock function with given fields: ctx, id
func (*CustomerService) EXPECT ¶ added in v0.8.36
func (_m *CustomerService) EXPECT() *CustomerService_Expecter
func (*CustomerService) Enable ¶ added in v0.17.0
func (_m *CustomerService) Enable(ctx context.Context, id string) error
Enable provides a mock function with given fields: ctx, id
func (*CustomerService) GetByID ¶ added in v0.8.36
GetByID provides a mock function with given fields: ctx, id
func (*CustomerService) List ¶ added in v0.8.36
func (_m *CustomerService) List(ctx context.Context, filter customer.Filter) ([]customer.Customer, error)
List provides a mock function with given fields: ctx, filter
func (*CustomerService) ListPaymentMethods ¶ added in v0.8.36
func (_m *CustomerService) ListPaymentMethods(ctx context.Context, id string) ([]customer.PaymentMethod, error)
ListPaymentMethods provides a mock function with given fields: ctx, id
func (*CustomerService) RegisterToProviderIfRequired ¶ added in v0.17.0
func (_m *CustomerService) RegisterToProviderIfRequired(ctx context.Context, customerID string) (customer.Customer, error)
RegisterToProviderIfRequired provides a mock function with given fields: ctx, customerID
func (*CustomerService) Update ¶ added in v0.8.36
func (_m *CustomerService) Update(ctx context.Context, _a1 customer.Customer) (customer.Customer, error)
Update provides a mock function with given fields: ctx, _a1
func (*CustomerService) UpdateCreditMinByID ¶ added in v0.34.0
func (_m *CustomerService) UpdateCreditMinByID(ctx context.Context, customerID string, limit int64) (customer.Customer, error)
UpdateCreditMinByID provides a mock function with given fields: ctx, customerID, limit
type CustomerService_Create_Call ¶ added in v0.8.36
CustomerService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*CustomerService_Create_Call) Return ¶ added in v0.8.36
func (_c *CustomerService_Create_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_Create_Call
func (*CustomerService_Create_Call) Run ¶ added in v0.8.36
func (_c *CustomerService_Create_Call) Run(run func(ctx context.Context, _a1 customer.Customer, offline bool)) *CustomerService_Create_Call
func (*CustomerService_Create_Call) RunAndReturn ¶ added in v0.8.36
func (_c *CustomerService_Create_Call) RunAndReturn(run func(context.Context, customer.Customer, bool) (customer.Customer, error)) *CustomerService_Create_Call
type CustomerService_Delete_Call ¶ added in v0.8.36
CustomerService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*CustomerService_Delete_Call) Return ¶ added in v0.8.36
func (_c *CustomerService_Delete_Call) Return(_a0 error) *CustomerService_Delete_Call
func (*CustomerService_Delete_Call) Run ¶ added in v0.8.36
func (_c *CustomerService_Delete_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Delete_Call
func (*CustomerService_Delete_Call) RunAndReturn ¶ added in v0.8.36
func (_c *CustomerService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Delete_Call
type CustomerService_Disable_Call ¶ added in v0.17.0
CustomerService_Disable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disable'
func (*CustomerService_Disable_Call) Return ¶ added in v0.17.0
func (_c *CustomerService_Disable_Call) Return(_a0 error) *CustomerService_Disable_Call
func (*CustomerService_Disable_Call) Run ¶ added in v0.17.0
func (_c *CustomerService_Disable_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Disable_Call
func (*CustomerService_Disable_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CustomerService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Disable_Call
type CustomerService_Enable_Call ¶ added in v0.17.0
CustomerService_Enable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enable'
func (*CustomerService_Enable_Call) Return ¶ added in v0.17.0
func (_c *CustomerService_Enable_Call) Return(_a0 error) *CustomerService_Enable_Call
func (*CustomerService_Enable_Call) Run ¶ added in v0.17.0
func (_c *CustomerService_Enable_Call) Run(run func(ctx context.Context, id string)) *CustomerService_Enable_Call
func (*CustomerService_Enable_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CustomerService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *CustomerService_Enable_Call
type CustomerService_Expecter ¶ added in v0.8.36
type CustomerService_Expecter struct {
// contains filtered or unexported fields
}
func (*CustomerService_Expecter) Create ¶ added in v0.8.36
func (_e *CustomerService_Expecter) Create(ctx interface{}, _a1 interface{}, offline interface{}) *CustomerService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 customer.Customer
- offline bool
func (*CustomerService_Expecter) Delete ¶ added in v0.8.36
func (_e *CustomerService_Expecter) Delete(ctx interface{}, id interface{}) *CustomerService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CustomerService_Expecter) Disable ¶ added in v0.17.0
func (_e *CustomerService_Expecter) Disable(ctx interface{}, id interface{}) *CustomerService_Disable_Call
Disable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CustomerService_Expecter) Enable ¶ added in v0.17.0
func (_e *CustomerService_Expecter) Enable(ctx interface{}, id interface{}) *CustomerService_Enable_Call
Enable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CustomerService_Expecter) GetByID ¶ added in v0.8.36
func (_e *CustomerService_Expecter) GetByID(ctx interface{}, id interface{}) *CustomerService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CustomerService_Expecter) List ¶ added in v0.8.36
func (_e *CustomerService_Expecter) List(ctx interface{}, filter interface{}) *CustomerService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter customer.Filter
func (*CustomerService_Expecter) ListPaymentMethods ¶ added in v0.8.36
func (_e *CustomerService_Expecter) ListPaymentMethods(ctx interface{}, id interface{}) *CustomerService_ListPaymentMethods_Call
ListPaymentMethods is a helper method to define mock.On call
- ctx context.Context
- id string
func (*CustomerService_Expecter) RegisterToProviderIfRequired ¶ added in v0.17.0
func (_e *CustomerService_Expecter) RegisterToProviderIfRequired(ctx interface{}, customerID interface{}) *CustomerService_RegisterToProviderIfRequired_Call
RegisterToProviderIfRequired is a helper method to define mock.On call
- ctx context.Context
- customerID string
func (*CustomerService_Expecter) Update ¶ added in v0.8.36
func (_e *CustomerService_Expecter) Update(ctx interface{}, _a1 interface{}) *CustomerService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 customer.Customer
func (*CustomerService_Expecter) UpdateCreditMinByID ¶ added in v0.34.0
func (_e *CustomerService_Expecter) UpdateCreditMinByID(ctx interface{}, customerID interface{}, limit interface{}) *CustomerService_UpdateCreditMinByID_Call
UpdateCreditMinByID is a helper method to define mock.On call
- ctx context.Context
- customerID string
- limit int64
type CustomerService_GetByID_Call ¶ added in v0.8.36
CustomerService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*CustomerService_GetByID_Call) Return ¶ added in v0.8.36
func (_c *CustomerService_GetByID_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_GetByID_Call
func (*CustomerService_GetByID_Call) Run ¶ added in v0.8.36
func (_c *CustomerService_GetByID_Call) Run(run func(ctx context.Context, id string)) *CustomerService_GetByID_Call
func (*CustomerService_GetByID_Call) RunAndReturn ¶ added in v0.8.36
func (_c *CustomerService_GetByID_Call) RunAndReturn(run func(context.Context, string) (customer.Customer, error)) *CustomerService_GetByID_Call
type CustomerService_ListPaymentMethods_Call ¶ added in v0.8.36
CustomerService_ListPaymentMethods_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPaymentMethods'
func (*CustomerService_ListPaymentMethods_Call) Return ¶ added in v0.8.36
func (_c *CustomerService_ListPaymentMethods_Call) Return(_a0 []customer.PaymentMethod, _a1 error) *CustomerService_ListPaymentMethods_Call
func (*CustomerService_ListPaymentMethods_Call) Run ¶ added in v0.8.36
func (_c *CustomerService_ListPaymentMethods_Call) Run(run func(ctx context.Context, id string)) *CustomerService_ListPaymentMethods_Call
func (*CustomerService_ListPaymentMethods_Call) RunAndReturn ¶ added in v0.8.36
func (_c *CustomerService_ListPaymentMethods_Call) RunAndReturn(run func(context.Context, string) ([]customer.PaymentMethod, error)) *CustomerService_ListPaymentMethods_Call
type CustomerService_List_Call ¶ added in v0.8.36
CustomerService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CustomerService_List_Call) Return ¶ added in v0.8.36
func (_c *CustomerService_List_Call) Return(_a0 []customer.Customer, _a1 error) *CustomerService_List_Call
func (*CustomerService_List_Call) Run ¶ added in v0.8.36
func (_c *CustomerService_List_Call) Run(run func(ctx context.Context, filter customer.Filter)) *CustomerService_List_Call
func (*CustomerService_List_Call) RunAndReturn ¶ added in v0.8.36
func (_c *CustomerService_List_Call) RunAndReturn(run func(context.Context, customer.Filter) ([]customer.Customer, error)) *CustomerService_List_Call
type CustomerService_RegisterToProviderIfRequired_Call ¶ added in v0.17.0
CustomerService_RegisterToProviderIfRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterToProviderIfRequired'
func (*CustomerService_RegisterToProviderIfRequired_Call) Return ¶ added in v0.17.0
func (_c *CustomerService_RegisterToProviderIfRequired_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_RegisterToProviderIfRequired_Call
func (*CustomerService_RegisterToProviderIfRequired_Call) Run ¶ added in v0.17.0
func (_c *CustomerService_RegisterToProviderIfRequired_Call) Run(run func(ctx context.Context, customerID string)) *CustomerService_RegisterToProviderIfRequired_Call
func (*CustomerService_RegisterToProviderIfRequired_Call) RunAndReturn ¶ added in v0.17.0
func (_c *CustomerService_RegisterToProviderIfRequired_Call) RunAndReturn(run func(context.Context, string) (customer.Customer, error)) *CustomerService_RegisterToProviderIfRequired_Call
type CustomerService_UpdateCreditMinByID_Call ¶ added in v0.34.0
CustomerService_UpdateCreditMinByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCreditMinByID'
func (*CustomerService_UpdateCreditMinByID_Call) Return ¶ added in v0.34.0
func (_c *CustomerService_UpdateCreditMinByID_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_UpdateCreditMinByID_Call
func (*CustomerService_UpdateCreditMinByID_Call) Run ¶ added in v0.34.0
func (_c *CustomerService_UpdateCreditMinByID_Call) Run(run func(ctx context.Context, customerID string, limit int64)) *CustomerService_UpdateCreditMinByID_Call
func (*CustomerService_UpdateCreditMinByID_Call) RunAndReturn ¶ added in v0.34.0
func (_c *CustomerService_UpdateCreditMinByID_Call) RunAndReturn(run func(context.Context, string, int64) (customer.Customer, error)) *CustomerService_UpdateCreditMinByID_Call
type CustomerService_Update_Call ¶ added in v0.8.36
CustomerService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*CustomerService_Update_Call) Return ¶ added in v0.8.36
func (_c *CustomerService_Update_Call) Return(_a0 customer.Customer, _a1 error) *CustomerService_Update_Call
func (*CustomerService_Update_Call) Run ¶ added in v0.8.36
func (_c *CustomerService_Update_Call) Run(run func(ctx context.Context, _a1 customer.Customer)) *CustomerService_Update_Call
func (*CustomerService_Update_Call) RunAndReturn ¶ added in v0.8.36
func (_c *CustomerService_Update_Call) RunAndReturn(run func(context.Context, customer.Customer) (customer.Customer, error)) *CustomerService_Update_Call
type DomainService ¶ added in v0.7.2
DomainService is an autogenerated mock type for the DomainService type
func NewDomainService ¶ added in v0.7.2
func NewDomainService(t interface { mock.TestingT Cleanup(func()) }) *DomainService
NewDomainService creates a new instance of DomainService. 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 (*DomainService) Create ¶ added in v0.7.2
Create provides a mock function with given fields: ctx, toCreate
func (*DomainService) Delete ¶ added in v0.7.2
func (_m *DomainService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*DomainService) EXPECT ¶ added in v0.7.2
func (_m *DomainService) EXPECT() *DomainService_Expecter
func (*DomainService) Join ¶ added in v0.7.2
Join provides a mock function with given fields: ctx, orgID, userID
func (*DomainService) List ¶ added in v0.7.2
List provides a mock function with given fields: ctx, flt
func (*DomainService) ListJoinableOrgsByDomain ¶ added in v0.7.3
func (_m *DomainService) ListJoinableOrgsByDomain(ctx context.Context, email string) ([]string, error)
ListJoinableOrgsByDomain provides a mock function with given fields: ctx, email
func (*DomainService) VerifyDomain ¶ added in v0.7.2
VerifyDomain provides a mock function with given fields: ctx, id
type DomainService_Create_Call ¶ added in v0.7.2
DomainService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*DomainService_Create_Call) Return ¶ added in v0.7.2
func (_c *DomainService_Create_Call) Return(_a0 domain.Domain, _a1 error) *DomainService_Create_Call
func (*DomainService_Create_Call) Run ¶ added in v0.7.2
func (_c *DomainService_Create_Call) Run(run func(ctx context.Context, toCreate domain.Domain)) *DomainService_Create_Call
func (*DomainService_Create_Call) RunAndReturn ¶ added in v0.7.2
func (_c *DomainService_Create_Call) RunAndReturn(run func(context.Context, domain.Domain) (domain.Domain, error)) *DomainService_Create_Call
type DomainService_Delete_Call ¶ added in v0.7.2
DomainService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*DomainService_Delete_Call) Return ¶ added in v0.7.2
func (_c *DomainService_Delete_Call) Return(_a0 error) *DomainService_Delete_Call
func (*DomainService_Delete_Call) Run ¶ added in v0.7.2
func (_c *DomainService_Delete_Call) Run(run func(ctx context.Context, id string)) *DomainService_Delete_Call
func (*DomainService_Delete_Call) RunAndReturn ¶ added in v0.7.2
func (_c *DomainService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *DomainService_Delete_Call
type DomainService_Expecter ¶ added in v0.7.2
type DomainService_Expecter struct {
// contains filtered or unexported fields
}
func (*DomainService_Expecter) Create ¶ added in v0.7.2
func (_e *DomainService_Expecter) Create(ctx interface{}, toCreate interface{}) *DomainService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- toCreate domain.Domain
func (*DomainService_Expecter) Delete ¶ added in v0.7.2
func (_e *DomainService_Expecter) Delete(ctx interface{}, id interface{}) *DomainService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*DomainService_Expecter) Get ¶ added in v0.7.2
func (_e *DomainService_Expecter) Get(ctx interface{}, id interface{}) *DomainService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*DomainService_Expecter) Join ¶ added in v0.7.2
func (_e *DomainService_Expecter) Join(ctx interface{}, orgID interface{}, userID interface{}) *DomainService_Join_Call
Join is a helper method to define mock.On call
- ctx context.Context
- orgID string
- userID string
func (*DomainService_Expecter) List ¶ added in v0.7.2
func (_e *DomainService_Expecter) List(ctx interface{}, flt interface{}) *DomainService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt domain.Filter
func (*DomainService_Expecter) ListJoinableOrgsByDomain ¶ added in v0.7.3
func (_e *DomainService_Expecter) ListJoinableOrgsByDomain(ctx interface{}, email interface{}) *DomainService_ListJoinableOrgsByDomain_Call
ListJoinableOrgsByDomain is a helper method to define mock.On call
- ctx context.Context
- email string
func (*DomainService_Expecter) VerifyDomain ¶ added in v0.7.2
func (_e *DomainService_Expecter) VerifyDomain(ctx interface{}, id interface{}) *DomainService_VerifyDomain_Call
VerifyDomain is a helper method to define mock.On call
- ctx context.Context
- id string
type DomainService_Get_Call ¶ added in v0.7.2
DomainService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*DomainService_Get_Call) Return ¶ added in v0.7.2
func (_c *DomainService_Get_Call) Return(_a0 domain.Domain, _a1 error) *DomainService_Get_Call
func (*DomainService_Get_Call) Run ¶ added in v0.7.2
func (_c *DomainService_Get_Call) Run(run func(ctx context.Context, id string)) *DomainService_Get_Call
func (*DomainService_Get_Call) RunAndReturn ¶ added in v0.7.2
func (_c *DomainService_Get_Call) RunAndReturn(run func(context.Context, string) (domain.Domain, error)) *DomainService_Get_Call
type DomainService_Join_Call ¶ added in v0.7.2
DomainService_Join_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Join'
func (*DomainService_Join_Call) Return ¶ added in v0.7.2
func (_c *DomainService_Join_Call) Return(_a0 error) *DomainService_Join_Call
func (*DomainService_Join_Call) Run ¶ added in v0.7.2
func (_c *DomainService_Join_Call) Run(run func(ctx context.Context, orgID string, userID string)) *DomainService_Join_Call
func (*DomainService_Join_Call) RunAndReturn ¶ added in v0.7.2
func (_c *DomainService_Join_Call) RunAndReturn(run func(context.Context, string, string) error) *DomainService_Join_Call
type DomainService_ListJoinableOrgsByDomain_Call ¶ added in v0.7.3
DomainService_ListJoinableOrgsByDomain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListJoinableOrgsByDomain'
func (*DomainService_ListJoinableOrgsByDomain_Call) Return ¶ added in v0.7.3
func (_c *DomainService_ListJoinableOrgsByDomain_Call) Return(_a0 []string, _a1 error) *DomainService_ListJoinableOrgsByDomain_Call
func (*DomainService_ListJoinableOrgsByDomain_Call) Run ¶ added in v0.7.3
func (_c *DomainService_ListJoinableOrgsByDomain_Call) Run(run func(ctx context.Context, email string)) *DomainService_ListJoinableOrgsByDomain_Call
func (*DomainService_ListJoinableOrgsByDomain_Call) RunAndReturn ¶ added in v0.7.3
func (_c *DomainService_ListJoinableOrgsByDomain_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *DomainService_ListJoinableOrgsByDomain_Call
type DomainService_List_Call ¶ added in v0.7.2
DomainService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*DomainService_List_Call) Return ¶ added in v0.7.2
func (_c *DomainService_List_Call) Return(_a0 []domain.Domain, _a1 error) *DomainService_List_Call
func (*DomainService_List_Call) Run ¶ added in v0.7.2
func (_c *DomainService_List_Call) Run(run func(ctx context.Context, flt domain.Filter)) *DomainService_List_Call
func (*DomainService_List_Call) RunAndReturn ¶ added in v0.7.2
func (_c *DomainService_List_Call) RunAndReturn(run func(context.Context, domain.Filter) ([]domain.Domain, error)) *DomainService_List_Call
type DomainService_VerifyDomain_Call ¶ added in v0.7.2
DomainService_VerifyDomain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyDomain'
func (*DomainService_VerifyDomain_Call) Return ¶ added in v0.7.2
func (_c *DomainService_VerifyDomain_Call) Return(_a0 domain.Domain, _a1 error) *DomainService_VerifyDomain_Call
func (*DomainService_VerifyDomain_Call) Run ¶ added in v0.7.2
func (_c *DomainService_VerifyDomain_Call) Run(run func(ctx context.Context, id string)) *DomainService_VerifyDomain_Call
func (*DomainService_VerifyDomain_Call) RunAndReturn ¶ added in v0.7.2
func (_c *DomainService_VerifyDomain_Call) RunAndReturn(run func(context.Context, string) (domain.Domain, error)) *DomainService_VerifyDomain_Call
type EntitlementService ¶ added in v0.17.0
EntitlementService is an autogenerated mock type for the EntitlementService type
func NewEntitlementService ¶ added in v0.17.0
func NewEntitlementService(t interface { mock.TestingT Cleanup(func()) }) *EntitlementService
NewEntitlementService creates a new instance of EntitlementService. 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 (*EntitlementService) Check ¶ added in v0.17.0
func (_m *EntitlementService) Check(ctx context.Context, customerID string, featureID string) (bool, error)
Check provides a mock function with given fields: ctx, customerID, featureID
func (*EntitlementService) CheckPlanEligibility ¶ added in v0.17.0
func (_m *EntitlementService) CheckPlanEligibility(ctx context.Context, customerID string) error
CheckPlanEligibility provides a mock function with given fields: ctx, customerID
func (*EntitlementService) EXPECT ¶ added in v0.17.0
func (_m *EntitlementService) EXPECT() *EntitlementService_Expecter
type EntitlementService_CheckPlanEligibility_Call ¶ added in v0.17.0
EntitlementService_CheckPlanEligibility_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPlanEligibility'
func (*EntitlementService_CheckPlanEligibility_Call) Return ¶ added in v0.17.0
func (_c *EntitlementService_CheckPlanEligibility_Call) Return(_a0 error) *EntitlementService_CheckPlanEligibility_Call
func (*EntitlementService_CheckPlanEligibility_Call) Run ¶ added in v0.17.0
func (_c *EntitlementService_CheckPlanEligibility_Call) Run(run func(ctx context.Context, customerID string)) *EntitlementService_CheckPlanEligibility_Call
func (*EntitlementService_CheckPlanEligibility_Call) RunAndReturn ¶ added in v0.17.0
func (_c *EntitlementService_CheckPlanEligibility_Call) RunAndReturn(run func(context.Context, string) error) *EntitlementService_CheckPlanEligibility_Call
type EntitlementService_Check_Call ¶ added in v0.17.0
EntitlementService_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*EntitlementService_Check_Call) Return ¶ added in v0.17.0
func (_c *EntitlementService_Check_Call) Return(_a0 bool, _a1 error) *EntitlementService_Check_Call
func (*EntitlementService_Check_Call) Run ¶ added in v0.17.0
func (_c *EntitlementService_Check_Call) Run(run func(ctx context.Context, customerID string, featureID string)) *EntitlementService_Check_Call
func (*EntitlementService_Check_Call) RunAndReturn ¶ added in v0.17.0
func (_c *EntitlementService_Check_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *EntitlementService_Check_Call
type EntitlementService_Expecter ¶ added in v0.17.0
type EntitlementService_Expecter struct {
// contains filtered or unexported fields
}
func (*EntitlementService_Expecter) Check ¶ added in v0.17.0
func (_e *EntitlementService_Expecter) Check(ctx interface{}, customerID interface{}, featureID interface{}) *EntitlementService_Check_Call
Check is a helper method to define mock.On call
- ctx context.Context
- customerID string
- featureID string
func (*EntitlementService_Expecter) CheckPlanEligibility ¶ added in v0.17.0
func (_e *EntitlementService_Expecter) CheckPlanEligibility(ctx interface{}, customerID interface{}) *EntitlementService_CheckPlanEligibility_Call
CheckPlanEligibility is a helper method to define mock.On call
- ctx context.Context
- customerID string
type EventService ¶ added in v0.17.0
EventService is an autogenerated mock type for the EventService type
func NewEventService ¶ added in v0.17.0
func NewEventService(t interface { mock.TestingT Cleanup(func()) }) *EventService
NewEventService creates a new instance of EventService. 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 (*EventService) BillingWebhook ¶ added in v0.17.0
func (_m *EventService) BillingWebhook(ctx context.Context, _a1 event.ProviderWebhookEvent) error
BillingWebhook provides a mock function with given fields: ctx, _a1
func (*EventService) EXPECT ¶ added in v0.17.0
func (_m *EventService) EXPECT() *EventService_Expecter
type EventService_BillingWebhook_Call ¶ added in v0.17.0
EventService_BillingWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BillingWebhook'
func (*EventService_BillingWebhook_Call) Return ¶ added in v0.17.0
func (_c *EventService_BillingWebhook_Call) Return(_a0 error) *EventService_BillingWebhook_Call
func (*EventService_BillingWebhook_Call) Run ¶ added in v0.17.0
func (_c *EventService_BillingWebhook_Call) Run(run func(ctx context.Context, _a1 event.ProviderWebhookEvent)) *EventService_BillingWebhook_Call
func (*EventService_BillingWebhook_Call) RunAndReturn ¶ added in v0.17.0
func (_c *EventService_BillingWebhook_Call) RunAndReturn(run func(context.Context, event.ProviderWebhookEvent) error) *EventService_BillingWebhook_Call
type EventService_Expecter ¶ added in v0.17.0
type EventService_Expecter struct {
// contains filtered or unexported fields
}
func (*EventService_Expecter) BillingWebhook ¶ added in v0.17.0
func (_e *EventService_Expecter) BillingWebhook(ctx interface{}, _a1 interface{}) *EventService_BillingWebhook_Call
BillingWebhook is a helper method to define mock.On call
- ctx context.Context
- _a1 event.ProviderWebhookEvent
type GroupService ¶
GroupService is an autogenerated mock type for the GroupService type
func NewGroupService ¶
func NewGroupService(t interface { mock.TestingT Cleanup(func()) }) *GroupService
NewGroupService creates a new instance of GroupService. 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 (*GroupService) AddUsers ¶
AddUsers provides a mock function with given fields: ctx, groupID, userID
func (*GroupService) Delete ¶
func (_m *GroupService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*GroupService) Disable ¶
func (_m *GroupService) Disable(ctx context.Context, id string) error
Disable provides a mock function with given fields: ctx, id
func (*GroupService) EXPECT ¶
func (_m *GroupService) EXPECT() *GroupService_Expecter
func (*GroupService) Enable ¶
func (_m *GroupService) Enable(ctx context.Context, id string) error
Enable provides a mock function with given fields: ctx, id
func (*GroupService) ListByUser ¶
func (_m *GroupService) ListByUser(ctx context.Context, principalId string, principalType string, flt group.Filter) ([]group.Group, error)
ListByUser provides a mock function with given fields: ctx, principalId, principalType, flt
func (*GroupService) RemoveUsers ¶
RemoveUsers provides a mock function with given fields: ctx, groupID, userID
type GroupService_AddUsers_Call ¶
GroupService_AddUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUsers'
func (*GroupService_AddUsers_Call) Return ¶
func (_c *GroupService_AddUsers_Call) Return(_a0 error) *GroupService_AddUsers_Call
func (*GroupService_AddUsers_Call) Run ¶
func (_c *GroupService_AddUsers_Call) Run(run func(ctx context.Context, groupID string, userID []string)) *GroupService_AddUsers_Call
func (*GroupService_AddUsers_Call) RunAndReturn ¶
func (_c *GroupService_AddUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *GroupService_AddUsers_Call
type GroupService_Create_Call ¶
GroupService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*GroupService_Create_Call) Return ¶
func (_c *GroupService_Create_Call) Return(_a0 group.Group, _a1 error) *GroupService_Create_Call
func (*GroupService_Create_Call) Run ¶
func (_c *GroupService_Create_Call) Run(run func(ctx context.Context, grp group.Group)) *GroupService_Create_Call
func (*GroupService_Create_Call) RunAndReturn ¶
func (_c *GroupService_Create_Call) RunAndReturn(run func(context.Context, group.Group) (group.Group, error)) *GroupService_Create_Call
type GroupService_Delete_Call ¶
GroupService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*GroupService_Delete_Call) Return ¶
func (_c *GroupService_Delete_Call) Return(_a0 error) *GroupService_Delete_Call
func (*GroupService_Delete_Call) Run ¶
func (_c *GroupService_Delete_Call) Run(run func(ctx context.Context, id string)) *GroupService_Delete_Call
func (*GroupService_Delete_Call) RunAndReturn ¶
func (_c *GroupService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Delete_Call
type GroupService_Disable_Call ¶
GroupService_Disable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disable'
func (*GroupService_Disable_Call) Return ¶
func (_c *GroupService_Disable_Call) Return(_a0 error) *GroupService_Disable_Call
func (*GroupService_Disable_Call) Run ¶
func (_c *GroupService_Disable_Call) Run(run func(ctx context.Context, id string)) *GroupService_Disable_Call
func (*GroupService_Disable_Call) RunAndReturn ¶
func (_c *GroupService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Disable_Call
type GroupService_Enable_Call ¶
GroupService_Enable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enable'
func (*GroupService_Enable_Call) Return ¶
func (_c *GroupService_Enable_Call) Return(_a0 error) *GroupService_Enable_Call
func (*GroupService_Enable_Call) Run ¶
func (_c *GroupService_Enable_Call) Run(run func(ctx context.Context, id string)) *GroupService_Enable_Call
func (*GroupService_Enable_Call) RunAndReturn ¶
func (_c *GroupService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *GroupService_Enable_Call
type GroupService_Expecter ¶
type GroupService_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupService_Expecter) AddUsers ¶
func (_e *GroupService_Expecter) AddUsers(ctx interface{}, groupID interface{}, userID interface{}) *GroupService_AddUsers_Call
AddUsers is a helper method to define mock.On call
- ctx context.Context
- groupID string
- userID []string
func (*GroupService_Expecter) Create ¶
func (_e *GroupService_Expecter) Create(ctx interface{}, grp interface{}) *GroupService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- grp group.Group
func (*GroupService_Expecter) Delete ¶
func (_e *GroupService_Expecter) Delete(ctx interface{}, id interface{}) *GroupService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*GroupService_Expecter) Disable ¶
func (_e *GroupService_Expecter) Disable(ctx interface{}, id interface{}) *GroupService_Disable_Call
Disable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*GroupService_Expecter) Enable ¶
func (_e *GroupService_Expecter) Enable(ctx interface{}, id interface{}) *GroupService_Enable_Call
Enable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*GroupService_Expecter) Get ¶
func (_e *GroupService_Expecter) Get(ctx interface{}, id interface{}) *GroupService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*GroupService_Expecter) List ¶
func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt group.Filter
func (*GroupService_Expecter) ListByUser ¶
func (_e *GroupService_Expecter) ListByUser(ctx interface{}, principalId interface{}, principalType interface{}, flt interface{}) *GroupService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principalId string
- principalType string
- flt group.Filter
func (*GroupService_Expecter) RemoveUsers ¶
func (_e *GroupService_Expecter) RemoveUsers(ctx interface{}, groupID interface{}, userID interface{}) *GroupService_RemoveUsers_Call
RemoveUsers is a helper method to define mock.On call
- ctx context.Context
- groupID string
- userID []string
func (*GroupService_Expecter) Update ¶
func (_e *GroupService_Expecter) Update(ctx interface{}, grp interface{}) *GroupService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- grp group.Group
type GroupService_Get_Call ¶
GroupService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*GroupService_Get_Call) Return ¶
func (_c *GroupService_Get_Call) Return(_a0 group.Group, _a1 error) *GroupService_Get_Call
func (*GroupService_Get_Call) Run ¶
func (_c *GroupService_Get_Call) Run(run func(ctx context.Context, id string)) *GroupService_Get_Call
func (*GroupService_Get_Call) RunAndReturn ¶
func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
type GroupService_ListByUser_Call ¶
GroupService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*GroupService_ListByUser_Call) Return ¶
func (_c *GroupService_ListByUser_Call) Return(_a0 []group.Group, _a1 error) *GroupService_ListByUser_Call
func (*GroupService_ListByUser_Call) Run ¶
func (_c *GroupService_ListByUser_Call) Run(run func(ctx context.Context, principalId string, principalType string, flt group.Filter)) *GroupService_ListByUser_Call
func (*GroupService_ListByUser_Call) RunAndReturn ¶
type GroupService_List_Call ¶
GroupService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*GroupService_List_Call) Return ¶
func (_c *GroupService_List_Call) Return(_a0 []group.Group, _a1 error) *GroupService_List_Call
func (*GroupService_List_Call) Run ¶
func (_c *GroupService_List_Call) Run(run func(ctx context.Context, flt group.Filter)) *GroupService_List_Call
func (*GroupService_List_Call) RunAndReturn ¶
func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_Call
type GroupService_RemoveUsers_Call ¶
GroupService_RemoveUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUsers'
func (*GroupService_RemoveUsers_Call) Return ¶
func (_c *GroupService_RemoveUsers_Call) Return(_a0 error) *GroupService_RemoveUsers_Call
func (*GroupService_RemoveUsers_Call) Run ¶
func (_c *GroupService_RemoveUsers_Call) Run(run func(ctx context.Context, groupID string, userID []string)) *GroupService_RemoveUsers_Call
func (*GroupService_RemoveUsers_Call) RunAndReturn ¶
func (_c *GroupService_RemoveUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *GroupService_RemoveUsers_Call
type GroupService_Update_Call ¶
GroupService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*GroupService_Update_Call) Return ¶
func (_c *GroupService_Update_Call) Return(_a0 group.Group, _a1 error) *GroupService_Update_Call
func (*GroupService_Update_Call) Run ¶
func (_c *GroupService_Update_Call) Run(run func(ctx context.Context, grp group.Group)) *GroupService_Update_Call
func (*GroupService_Update_Call) RunAndReturn ¶
func (_c *GroupService_Update_Call) RunAndReturn(run func(context.Context, group.Group) (group.Group, error)) *GroupService_Update_Call
type InvitationService ¶
InvitationService is an autogenerated mock type for the InvitationService type
func NewInvitationService ¶
func NewInvitationService(t interface { mock.TestingT Cleanup(func()) }) *InvitationService
NewInvitationService creates a new instance of InvitationService. 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 (*InvitationService) Create ¶
func (_m *InvitationService) Create(ctx context.Context, inv invitation.Invitation) (invitation.Invitation, error)
Create provides a mock function with given fields: ctx, inv
func (*InvitationService) EXPECT ¶
func (_m *InvitationService) EXPECT() *InvitationService_Expecter
func (*InvitationService) Get ¶
func (_m *InvitationService) Get(ctx context.Context, id uuid.UUID) (invitation.Invitation, error)
Get provides a mock function with given fields: ctx, id
func (*InvitationService) List ¶
func (_m *InvitationService) List(ctx context.Context, filter invitation.Filter) ([]invitation.Invitation, error)
List provides a mock function with given fields: ctx, filter
func (*InvitationService) ListByUser ¶
func (_m *InvitationService) ListByUser(ctx context.Context, userID string) ([]invitation.Invitation, error)
ListByUser provides a mock function with given fields: ctx, userID
type InvitationService_Accept_Call ¶
InvitationService_Accept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accept'
func (*InvitationService_Accept_Call) Return ¶
func (_c *InvitationService_Accept_Call) Return(_a0 error) *InvitationService_Accept_Call
func (*InvitationService_Accept_Call) Run ¶
func (_c *InvitationService_Accept_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Accept_Call
func (*InvitationService_Accept_Call) RunAndReturn ¶
func (_c *InvitationService_Accept_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *InvitationService_Accept_Call
type InvitationService_Create_Call ¶
InvitationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*InvitationService_Create_Call) Return ¶
func (_c *InvitationService_Create_Call) Return(_a0 invitation.Invitation, _a1 error) *InvitationService_Create_Call
func (*InvitationService_Create_Call) Run ¶
func (_c *InvitationService_Create_Call) Run(run func(ctx context.Context, inv invitation.Invitation)) *InvitationService_Create_Call
func (*InvitationService_Create_Call) RunAndReturn ¶
func (_c *InvitationService_Create_Call) RunAndReturn(run func(context.Context, invitation.Invitation) (invitation.Invitation, error)) *InvitationService_Create_Call
type InvitationService_Delete_Call ¶
InvitationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*InvitationService_Delete_Call) Return ¶
func (_c *InvitationService_Delete_Call) Return(_a0 error) *InvitationService_Delete_Call
func (*InvitationService_Delete_Call) Run ¶
func (_c *InvitationService_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Delete_Call
func (*InvitationService_Delete_Call) RunAndReturn ¶
func (_c *InvitationService_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *InvitationService_Delete_Call
type InvitationService_Expecter ¶
type InvitationService_Expecter struct {
// contains filtered or unexported fields
}
func (*InvitationService_Expecter) Accept ¶
func (_e *InvitationService_Expecter) Accept(ctx interface{}, id interface{}) *InvitationService_Accept_Call
Accept is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*InvitationService_Expecter) Create ¶
func (_e *InvitationService_Expecter) Create(ctx interface{}, inv interface{}) *InvitationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- inv invitation.Invitation
func (*InvitationService_Expecter) Delete ¶
func (_e *InvitationService_Expecter) Delete(ctx interface{}, id interface{}) *InvitationService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*InvitationService_Expecter) Get ¶
func (_e *InvitationService_Expecter) Get(ctx interface{}, id interface{}) *InvitationService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*InvitationService_Expecter) List ¶
func (_e *InvitationService_Expecter) List(ctx interface{}, filter interface{}) *InvitationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter invitation.Filter
func (*InvitationService_Expecter) ListByUser ¶
func (_e *InvitationService_Expecter) ListByUser(ctx interface{}, userID interface{}) *InvitationService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- userID string
type InvitationService_Get_Call ¶
InvitationService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*InvitationService_Get_Call) Return ¶
func (_c *InvitationService_Get_Call) Return(_a0 invitation.Invitation, _a1 error) *InvitationService_Get_Call
func (*InvitationService_Get_Call) Run ¶
func (_c *InvitationService_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *InvitationService_Get_Call
func (*InvitationService_Get_Call) RunAndReturn ¶
func (_c *InvitationService_Get_Call) RunAndReturn(run func(context.Context, uuid.UUID) (invitation.Invitation, error)) *InvitationService_Get_Call
type InvitationService_ListByUser_Call ¶
InvitationService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*InvitationService_ListByUser_Call) Return ¶
func (_c *InvitationService_ListByUser_Call) Return(_a0 []invitation.Invitation, _a1 error) *InvitationService_ListByUser_Call
func (*InvitationService_ListByUser_Call) Run ¶
func (_c *InvitationService_ListByUser_Call) Run(run func(ctx context.Context, userID string)) *InvitationService_ListByUser_Call
func (*InvitationService_ListByUser_Call) RunAndReturn ¶
func (_c *InvitationService_ListByUser_Call) RunAndReturn(run func(context.Context, string) ([]invitation.Invitation, error)) *InvitationService_ListByUser_Call
type InvitationService_List_Call ¶
InvitationService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*InvitationService_List_Call) Return ¶
func (_c *InvitationService_List_Call) Return(_a0 []invitation.Invitation, _a1 error) *InvitationService_List_Call
func (*InvitationService_List_Call) Run ¶
func (_c *InvitationService_List_Call) Run(run func(ctx context.Context, filter invitation.Filter)) *InvitationService_List_Call
func (*InvitationService_List_Call) RunAndReturn ¶
func (_c *InvitationService_List_Call) RunAndReturn(run func(context.Context, invitation.Filter) ([]invitation.Invitation, error)) *InvitationService_List_Call
type InvoiceService ¶ added in v0.17.0
InvoiceService is an autogenerated mock type for the InvoiceService type
func NewInvoiceService ¶ added in v0.17.0
func NewInvoiceService(t interface { mock.TestingT Cleanup(func()) }) *InvoiceService
NewInvoiceService creates a new instance of InvoiceService. 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 (*InvoiceService) EXPECT ¶ added in v0.17.0
func (_m *InvoiceService) EXPECT() *InvoiceService_Expecter
func (*InvoiceService) GetUpcoming ¶ added in v0.17.0
func (_m *InvoiceService) GetUpcoming(ctx context.Context, customerID string) (invoice.Invoice, error)
GetUpcoming provides a mock function with given fields: ctx, customerID
type InvoiceService_Expecter ¶ added in v0.17.0
type InvoiceService_Expecter struct {
// contains filtered or unexported fields
}
func (*InvoiceService_Expecter) GetUpcoming ¶ added in v0.17.0
func (_e *InvoiceService_Expecter) GetUpcoming(ctx interface{}, customerID interface{}) *InvoiceService_GetUpcoming_Call
GetUpcoming is a helper method to define mock.On call
- ctx context.Context
- customerID string
func (*InvoiceService_Expecter) List ¶ added in v0.17.0
func (_e *InvoiceService_Expecter) List(ctx interface{}, filter interface{}) *InvoiceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter invoice.Filter
func (*InvoiceService_Expecter) ListAll ¶ added in v0.17.0
func (_e *InvoiceService_Expecter) ListAll(ctx interface{}, filter interface{}) *InvoiceService_ListAll_Call
ListAll is a helper method to define mock.On call
- ctx context.Context
- filter invoice.Filter
type InvoiceService_GetUpcoming_Call ¶ added in v0.17.0
InvoiceService_GetUpcoming_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpcoming'
func (*InvoiceService_GetUpcoming_Call) Return ¶ added in v0.17.0
func (_c *InvoiceService_GetUpcoming_Call) Return(_a0 invoice.Invoice, _a1 error) *InvoiceService_GetUpcoming_Call
func (*InvoiceService_GetUpcoming_Call) Run ¶ added in v0.17.0
func (_c *InvoiceService_GetUpcoming_Call) Run(run func(ctx context.Context, customerID string)) *InvoiceService_GetUpcoming_Call
func (*InvoiceService_GetUpcoming_Call) RunAndReturn ¶ added in v0.17.0
func (_c *InvoiceService_GetUpcoming_Call) RunAndReturn(run func(context.Context, string) (invoice.Invoice, error)) *InvoiceService_GetUpcoming_Call
type InvoiceService_ListAll_Call ¶ added in v0.17.0
InvoiceService_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'
func (*InvoiceService_ListAll_Call) Return ¶ added in v0.17.0
func (_c *InvoiceService_ListAll_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_ListAll_Call
func (*InvoiceService_ListAll_Call) Run ¶ added in v0.17.0
func (_c *InvoiceService_ListAll_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_ListAll_Call
func (*InvoiceService_ListAll_Call) RunAndReturn ¶ added in v0.17.0
func (_c *InvoiceService_ListAll_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_ListAll_Call
type InvoiceService_List_Call ¶ added in v0.17.0
InvoiceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*InvoiceService_List_Call) Return ¶ added in v0.17.0
func (_c *InvoiceService_List_Call) Return(_a0 []invoice.Invoice, _a1 error) *InvoiceService_List_Call
func (*InvoiceService_List_Call) Run ¶ added in v0.17.0
func (_c *InvoiceService_List_Call) Run(run func(ctx context.Context, filter invoice.Filter)) *InvoiceService_List_Call
func (*InvoiceService_List_Call) RunAndReturn ¶ added in v0.17.0
func (_c *InvoiceService_List_Call) RunAndReturn(run func(context.Context, invoice.Filter) ([]invoice.Invoice, error)) *InvoiceService_List_Call
type MetaSchemaService ¶
MetaSchemaService is an autogenerated mock type for the MetaSchemaService type
func NewMetaSchemaService ¶
func NewMetaSchemaService(t interface { mock.TestingT Cleanup(func()) }) *MetaSchemaService
NewMetaSchemaService creates a new instance of MetaSchemaService. 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 (*MetaSchemaService) Create ¶
func (_m *MetaSchemaService) Create(ctx context.Context, toCreate metaschema.MetaSchema) (metaschema.MetaSchema, error)
Create provides a mock function with given fields: ctx, toCreate
func (*MetaSchemaService) Delete ¶
func (_m *MetaSchemaService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*MetaSchemaService) EXPECT ¶
func (_m *MetaSchemaService) EXPECT() *MetaSchemaService_Expecter
func (*MetaSchemaService) Get ¶
func (_m *MetaSchemaService) Get(ctx context.Context, id string) (metaschema.MetaSchema, error)
Get provides a mock function with given fields: ctx, id
func (*MetaSchemaService) List ¶
func (_m *MetaSchemaService) List(ctx context.Context) ([]metaschema.MetaSchema, error)
List provides a mock function with given fields: ctx
func (*MetaSchemaService) Update ¶
func (_m *MetaSchemaService) Update(ctx context.Context, id string, toUpdate metaschema.MetaSchema) (metaschema.MetaSchema, error)
Update provides a mock function with given fields: ctx, id, toUpdate
type MetaSchemaService_Create_Call ¶
MetaSchemaService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MetaSchemaService_Create_Call) Return ¶
func (_c *MetaSchemaService_Create_Call) Return(_a0 metaschema.MetaSchema, _a1 error) *MetaSchemaService_Create_Call
func (*MetaSchemaService_Create_Call) Run ¶
func (_c *MetaSchemaService_Create_Call) Run(run func(ctx context.Context, toCreate metaschema.MetaSchema)) *MetaSchemaService_Create_Call
func (*MetaSchemaService_Create_Call) RunAndReturn ¶
func (_c *MetaSchemaService_Create_Call) RunAndReturn(run func(context.Context, metaschema.MetaSchema) (metaschema.MetaSchema, error)) *MetaSchemaService_Create_Call
type MetaSchemaService_Delete_Call ¶
MetaSchemaService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MetaSchemaService_Delete_Call) Return ¶
func (_c *MetaSchemaService_Delete_Call) Return(_a0 error) *MetaSchemaService_Delete_Call
func (*MetaSchemaService_Delete_Call) Run ¶
func (_c *MetaSchemaService_Delete_Call) Run(run func(ctx context.Context, id string)) *MetaSchemaService_Delete_Call
func (*MetaSchemaService_Delete_Call) RunAndReturn ¶
func (_c *MetaSchemaService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MetaSchemaService_Delete_Call
type MetaSchemaService_Expecter ¶
type MetaSchemaService_Expecter struct {
// contains filtered or unexported fields
}
func (*MetaSchemaService_Expecter) Create ¶
func (_e *MetaSchemaService_Expecter) Create(ctx interface{}, toCreate interface{}) *MetaSchemaService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- toCreate metaschema.MetaSchema
func (*MetaSchemaService_Expecter) Delete ¶
func (_e *MetaSchemaService_Expecter) Delete(ctx interface{}, id interface{}) *MetaSchemaService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MetaSchemaService_Expecter) Get ¶
func (_e *MetaSchemaService_Expecter) Get(ctx interface{}, id interface{}) *MetaSchemaService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MetaSchemaService_Expecter) List ¶
func (_e *MetaSchemaService_Expecter) List(ctx interface{}) *MetaSchemaService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*MetaSchemaService_Expecter) Update ¶
func (_e *MetaSchemaService_Expecter) Update(ctx interface{}, id interface{}, toUpdate interface{}) *MetaSchemaService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id string
- toUpdate metaschema.MetaSchema
func (*MetaSchemaService_Expecter) Validate ¶
func (_e *MetaSchemaService_Expecter) Validate(schema interface{}, data interface{}) *MetaSchemaService_Validate_Call
Validate is a helper method to define mock.On call
- schema metadata.Metadata
- data string
type MetaSchemaService_Get_Call ¶
MetaSchemaService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MetaSchemaService_Get_Call) Return ¶
func (_c *MetaSchemaService_Get_Call) Return(_a0 metaschema.MetaSchema, _a1 error) *MetaSchemaService_Get_Call
func (*MetaSchemaService_Get_Call) Run ¶
func (_c *MetaSchemaService_Get_Call) Run(run func(ctx context.Context, id string)) *MetaSchemaService_Get_Call
func (*MetaSchemaService_Get_Call) RunAndReturn ¶
func (_c *MetaSchemaService_Get_Call) RunAndReturn(run func(context.Context, string) (metaschema.MetaSchema, error)) *MetaSchemaService_Get_Call
type MetaSchemaService_List_Call ¶
MetaSchemaService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MetaSchemaService_List_Call) Return ¶
func (_c *MetaSchemaService_List_Call) Return(_a0 []metaschema.MetaSchema, _a1 error) *MetaSchemaService_List_Call
func (*MetaSchemaService_List_Call) Run ¶
func (_c *MetaSchemaService_List_Call) Run(run func(ctx context.Context)) *MetaSchemaService_List_Call
func (*MetaSchemaService_List_Call) RunAndReturn ¶
func (_c *MetaSchemaService_List_Call) RunAndReturn(run func(context.Context) ([]metaschema.MetaSchema, error)) *MetaSchemaService_List_Call
type MetaSchemaService_Update_Call ¶
MetaSchemaService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MetaSchemaService_Update_Call) Return ¶
func (_c *MetaSchemaService_Update_Call) Return(_a0 metaschema.MetaSchema, _a1 error) *MetaSchemaService_Update_Call
func (*MetaSchemaService_Update_Call) Run ¶
func (_c *MetaSchemaService_Update_Call) Run(run func(ctx context.Context, id string, toUpdate metaschema.MetaSchema)) *MetaSchemaService_Update_Call
func (*MetaSchemaService_Update_Call) RunAndReturn ¶
func (_c *MetaSchemaService_Update_Call) RunAndReturn(run func(context.Context, string, metaschema.MetaSchema) (metaschema.MetaSchema, error)) *MetaSchemaService_Update_Call
type MetaSchemaService_Validate_Call ¶
MetaSchemaService_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*MetaSchemaService_Validate_Call) Return ¶
func (_c *MetaSchemaService_Validate_Call) Return(_a0 error) *MetaSchemaService_Validate_Call
func (*MetaSchemaService_Validate_Call) Run ¶
func (_c *MetaSchemaService_Validate_Call) Run(run func(schema metadata.Metadata, data string)) *MetaSchemaService_Validate_Call
func (*MetaSchemaService_Validate_Call) RunAndReturn ¶
func (_c *MetaSchemaService_Validate_Call) RunAndReturn(run func(metadata.Metadata, string) error) *MetaSchemaService_Validate_Call
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t interface { mock.TestingT Cleanup(func()) }) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. 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 (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) Get ¶
func (_e *NamespaceService_Expecter) Get(ctx interface{}, id interface{}) *NamespaceService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*NamespaceService_Expecter) List ¶
func (_e *NamespaceService_Expecter) List(ctx interface{}) *NamespaceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*NamespaceService_Expecter) Update ¶
func (_e *NamespaceService_Expecter) Update(ctx interface{}, ns interface{}) *NamespaceService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- ns namespace.Namespace
func (*NamespaceService_Expecter) Upsert ¶
func (_e *NamespaceService_Expecter) Upsert(ctx interface{}, ns interface{}) *NamespaceService_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- ns namespace.Namespace
type NamespaceService_Get_Call ¶
NamespaceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*NamespaceService_Get_Call) Return ¶
func (_c *NamespaceService_Get_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) Run ¶
func (_c *NamespaceService_Get_Call) Run(run func(ctx context.Context, id string)) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) RunAndReturn ¶
func (_c *NamespaceService_Get_Call) RunAndReturn(run func(context.Context, string) (namespace.Namespace, error)) *NamespaceService_Get_Call
type NamespaceService_List_Call ¶
NamespaceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NamespaceService_List_Call) Return ¶
func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
func (*NamespaceService_List_Call) Run ¶
func (_c *NamespaceService_List_Call) Run(run func(ctx context.Context)) *NamespaceService_List_Call
func (*NamespaceService_List_Call) RunAndReturn ¶
func (_c *NamespaceService_List_Call) RunAndReturn(run func(context.Context) ([]namespace.Namespace, error)) *NamespaceService_List_Call
type NamespaceService_Update_Call ¶
NamespaceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*NamespaceService_Update_Call) Return ¶
func (_c *NamespaceService_Update_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) Run ¶
func (_c *NamespaceService_Update_Call) Run(run func(ctx context.Context, ns namespace.Namespace)) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) RunAndReturn ¶
func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Update_Call
type NamespaceService_Upsert_Call ¶
NamespaceService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*NamespaceService_Upsert_Call) Return ¶
func (_c *NamespaceService_Upsert_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Upsert_Call
func (*NamespaceService_Upsert_Call) Run ¶
func (_c *NamespaceService_Upsert_Call) Run(run func(ctx context.Context, ns namespace.Namespace)) *NamespaceService_Upsert_Call
func (*NamespaceService_Upsert_Call) RunAndReturn ¶
func (_c *NamespaceService_Upsert_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Upsert_Call
type OrganizationService ¶
OrganizationService is an autogenerated mock type for the OrganizationService type
func NewOrganizationService ¶
func NewOrganizationService(t interface { mock.TestingT Cleanup(func()) }) *OrganizationService
NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) AddUsers ¶
AddUsers provides a mock function with given fields: ctx, orgID, userID
func (*OrganizationService) Create ¶
func (_m *OrganizationService) Create(ctx context.Context, org organization.Organization) (organization.Organization, error)
Create provides a mock function with given fields: ctx, org
func (*OrganizationService) Disable ¶
func (_m *OrganizationService) Disable(ctx context.Context, id string) error
Disable provides a mock function with given fields: ctx, id
func (*OrganizationService) EXPECT ¶
func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
func (*OrganizationService) Enable ¶
func (_m *OrganizationService) Enable(ctx context.Context, id string) error
Enable provides a mock function with given fields: ctx, id
func (*OrganizationService) Get ¶
func (_m *OrganizationService) Get(ctx context.Context, idOrSlug string) (organization.Organization, error)
Get provides a mock function with given fields: ctx, idOrSlug
func (*OrganizationService) GetRaw ¶ added in v0.7.5
func (_m *OrganizationService) GetRaw(ctx context.Context, idOrSlug string) (organization.Organization, error)
GetRaw provides a mock function with given fields: ctx, idOrSlug
func (*OrganizationService) List ¶
func (_m *OrganizationService) List(ctx context.Context, f organization.Filter) ([]organization.Organization, error)
List provides a mock function with given fields: ctx, f
func (*OrganizationService) ListByUser ¶
func (_m *OrganizationService) ListByUser(ctx context.Context, principal authenticate.Principal, flt organization.Filter) ([]organization.Organization, error)
ListByUser provides a mock function with given fields: ctx, principal, flt
func (*OrganizationService) Update ¶
func (_m *OrganizationService) Update(ctx context.Context, toUpdate organization.Organization) (organization.Organization, error)
Update provides a mock function with given fields: ctx, toUpdate
type OrganizationService_AddUsers_Call ¶
OrganizationService_AddUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUsers'
func (*OrganizationService_AddUsers_Call) Return ¶
func (_c *OrganizationService_AddUsers_Call) Return(_a0 error) *OrganizationService_AddUsers_Call
func (*OrganizationService_AddUsers_Call) Run ¶
func (_c *OrganizationService_AddUsers_Call) Run(run func(ctx context.Context, orgID string, userID []string)) *OrganizationService_AddUsers_Call
func (*OrganizationService_AddUsers_Call) RunAndReturn ¶
func (_c *OrganizationService_AddUsers_Call) RunAndReturn(run func(context.Context, string, []string) error) *OrganizationService_AddUsers_Call
type OrganizationService_Create_Call ¶
OrganizationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*OrganizationService_Create_Call) Return ¶
func (_c *OrganizationService_Create_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Create_Call
func (*OrganizationService_Create_Call) Run ¶
func (_c *OrganizationService_Create_Call) Run(run func(ctx context.Context, org organization.Organization)) *OrganizationService_Create_Call
func (*OrganizationService_Create_Call) RunAndReturn ¶
func (_c *OrganizationService_Create_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *OrganizationService_Create_Call
type OrganizationService_Disable_Call ¶
OrganizationService_Disable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disable'
func (*OrganizationService_Disable_Call) Return ¶
func (_c *OrganizationService_Disable_Call) Return(_a0 error) *OrganizationService_Disable_Call
func (*OrganizationService_Disable_Call) Run ¶
func (_c *OrganizationService_Disable_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Disable_Call
func (*OrganizationService_Disable_Call) RunAndReturn ¶
func (_c *OrganizationService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *OrganizationService_Disable_Call
type OrganizationService_Enable_Call ¶
OrganizationService_Enable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enable'
func (*OrganizationService_Enable_Call) Return ¶
func (_c *OrganizationService_Enable_Call) Return(_a0 error) *OrganizationService_Enable_Call
func (*OrganizationService_Enable_Call) Run ¶
func (_c *OrganizationService_Enable_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Enable_Call
func (*OrganizationService_Enable_Call) RunAndReturn ¶
func (_c *OrganizationService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *OrganizationService_Enable_Call
type OrganizationService_Expecter ¶
type OrganizationService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrganizationService_Expecter) AddUsers ¶
func (_e *OrganizationService_Expecter) AddUsers(ctx interface{}, orgID interface{}, userID interface{}) *OrganizationService_AddUsers_Call
AddUsers is a helper method to define mock.On call
- ctx context.Context
- orgID string
- userID []string
func (*OrganizationService_Expecter) Create ¶
func (_e *OrganizationService_Expecter) Create(ctx interface{}, org interface{}) *OrganizationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- org organization.Organization
func (*OrganizationService_Expecter) Disable ¶
func (_e *OrganizationService_Expecter) Disable(ctx interface{}, id interface{}) *OrganizationService_Disable_Call
Disable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*OrganizationService_Expecter) Enable ¶
func (_e *OrganizationService_Expecter) Enable(ctx interface{}, id interface{}) *OrganizationService_Enable_Call
Enable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*OrganizationService_Expecter) Get ¶
func (_e *OrganizationService_Expecter) Get(ctx interface{}, idOrSlug interface{}) *OrganizationService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrSlug string
func (*OrganizationService_Expecter) GetRaw ¶ added in v0.7.5
func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, idOrSlug interface{}) *OrganizationService_GetRaw_Call
GetRaw is a helper method to define mock.On call
- ctx context.Context
- idOrSlug string
func (*OrganizationService_Expecter) List ¶
func (_e *OrganizationService_Expecter) List(ctx interface{}, f interface{}) *OrganizationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f organization.Filter
func (*OrganizationService_Expecter) ListByUser ¶
func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, principal interface{}, flt interface{}) *OrganizationService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principal authenticate.Principal
- flt organization.Filter
func (*OrganizationService_Expecter) Update ¶
func (_e *OrganizationService_Expecter) Update(ctx interface{}, toUpdate interface{}) *OrganizationService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- toUpdate organization.Organization
type OrganizationService_GetRaw_Call ¶ added in v0.7.5
OrganizationService_GetRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRaw'
func (*OrganizationService_GetRaw_Call) Return ¶ added in v0.7.5
func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) Run ¶ added in v0.7.5
func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, idOrSlug string)) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) RunAndReturn ¶ added in v0.7.5
func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
type OrganizationService_Get_Call ¶
OrganizationService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*OrganizationService_Get_Call) Return ¶
func (_c *OrganizationService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Get_Call
func (*OrganizationService_Get_Call) Run ¶
func (_c *OrganizationService_Get_Call) Run(run func(ctx context.Context, idOrSlug string)) *OrganizationService_Get_Call
func (*OrganizationService_Get_Call) RunAndReturn ¶
func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
type OrganizationService_ListByUser_Call ¶
OrganizationService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*OrganizationService_ListByUser_Call) Return ¶
func (_c *OrganizationService_ListByUser_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_ListByUser_Call
func (*OrganizationService_ListByUser_Call) Run ¶
func (_c *OrganizationService_ListByUser_Call) Run(run func(ctx context.Context, principal authenticate.Principal, flt organization.Filter)) *OrganizationService_ListByUser_Call
func (*OrganizationService_ListByUser_Call) RunAndReturn ¶
func (_c *OrganizationService_ListByUser_Call) RunAndReturn(run func(context.Context, authenticate.Principal, organization.Filter) ([]organization.Organization, error)) *OrganizationService_ListByUser_Call
type OrganizationService_List_Call ¶
OrganizationService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*OrganizationService_List_Call) Return ¶
func (_c *OrganizationService_List_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_List_Call
func (*OrganizationService_List_Call) Run ¶
func (_c *OrganizationService_List_Call) Run(run func(ctx context.Context, f organization.Filter)) *OrganizationService_List_Call
func (*OrganizationService_List_Call) RunAndReturn ¶
func (_c *OrganizationService_List_Call) RunAndReturn(run func(context.Context, organization.Filter) ([]organization.Organization, error)) *OrganizationService_List_Call
type OrganizationService_Update_Call ¶
OrganizationService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*OrganizationService_Update_Call) Return ¶
func (_c *OrganizationService_Update_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Update_Call
func (*OrganizationService_Update_Call) Run ¶
func (_c *OrganizationService_Update_Call) Run(run func(ctx context.Context, toUpdate organization.Organization)) *OrganizationService_Update_Call
func (*OrganizationService_Update_Call) RunAndReturn ¶
func (_c *OrganizationService_Update_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *OrganizationService_Update_Call
type PermissionService ¶
PermissionService is an autogenerated mock type for the PermissionService type
func NewPermissionService ¶
func NewPermissionService(t interface { mock.TestingT Cleanup(func()) }) *PermissionService
NewPermissionService creates a new instance of PermissionService. 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 (*PermissionService) EXPECT ¶
func (_m *PermissionService) EXPECT() *PermissionService_Expecter
func (*PermissionService) Get ¶
func (_m *PermissionService) Get(ctx context.Context, id string) (permission.Permission, error)
Get provides a mock function with given fields: ctx, id
func (*PermissionService) List ¶
func (_m *PermissionService) List(ctx context.Context, filter permission.Filter) ([]permission.Permission, error)
List provides a mock function with given fields: ctx, filter
func (*PermissionService) Update ¶
func (_m *PermissionService) Update(ctx context.Context, perm permission.Permission) (permission.Permission, error)
Update provides a mock function with given fields: ctx, perm
func (*PermissionService) Upsert ¶
func (_m *PermissionService) Upsert(ctx context.Context, perm permission.Permission) (permission.Permission, error)
Upsert provides a mock function with given fields: ctx, perm
type PermissionService_Expecter ¶
type PermissionService_Expecter struct {
// contains filtered or unexported fields
}
func (*PermissionService_Expecter) Get ¶
func (_e *PermissionService_Expecter) Get(ctx interface{}, id interface{}) *PermissionService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PermissionService_Expecter) List ¶
func (_e *PermissionService_Expecter) List(ctx interface{}, filter interface{}) *PermissionService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter permission.Filter
func (*PermissionService_Expecter) Update ¶
func (_e *PermissionService_Expecter) Update(ctx interface{}, perm interface{}) *PermissionService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- perm permission.Permission
func (*PermissionService_Expecter) Upsert ¶
func (_e *PermissionService_Expecter) Upsert(ctx interface{}, perm interface{}) *PermissionService_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- perm permission.Permission
type PermissionService_Get_Call ¶
PermissionService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*PermissionService_Get_Call) Return ¶
func (_c *PermissionService_Get_Call) Return(_a0 permission.Permission, _a1 error) *PermissionService_Get_Call
func (*PermissionService_Get_Call) Run ¶
func (_c *PermissionService_Get_Call) Run(run func(ctx context.Context, id string)) *PermissionService_Get_Call
func (*PermissionService_Get_Call) RunAndReturn ¶
func (_c *PermissionService_Get_Call) RunAndReturn(run func(context.Context, string) (permission.Permission, error)) *PermissionService_Get_Call
type PermissionService_List_Call ¶
PermissionService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PermissionService_List_Call) Return ¶
func (_c *PermissionService_List_Call) Return(_a0 []permission.Permission, _a1 error) *PermissionService_List_Call
func (*PermissionService_List_Call) Run ¶
func (_c *PermissionService_List_Call) Run(run func(ctx context.Context, filter permission.Filter)) *PermissionService_List_Call
func (*PermissionService_List_Call) RunAndReturn ¶
func (_c *PermissionService_List_Call) RunAndReturn(run func(context.Context, permission.Filter) ([]permission.Permission, error)) *PermissionService_List_Call
type PermissionService_Update_Call ¶
PermissionService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*PermissionService_Update_Call) Return ¶
func (_c *PermissionService_Update_Call) Return(_a0 permission.Permission, _a1 error) *PermissionService_Update_Call
func (*PermissionService_Update_Call) Run ¶
func (_c *PermissionService_Update_Call) Run(run func(ctx context.Context, perm permission.Permission)) *PermissionService_Update_Call
func (*PermissionService_Update_Call) RunAndReturn ¶
func (_c *PermissionService_Update_Call) RunAndReturn(run func(context.Context, permission.Permission) (permission.Permission, error)) *PermissionService_Update_Call
type PermissionService_Upsert_Call ¶
PermissionService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*PermissionService_Upsert_Call) Return ¶
func (_c *PermissionService_Upsert_Call) Return(_a0 permission.Permission, _a1 error) *PermissionService_Upsert_Call
func (*PermissionService_Upsert_Call) Run ¶
func (_c *PermissionService_Upsert_Call) Run(run func(ctx context.Context, perm permission.Permission)) *PermissionService_Upsert_Call
func (*PermissionService_Upsert_Call) RunAndReturn ¶
func (_c *PermissionService_Upsert_Call) RunAndReturn(run func(context.Context, permission.Permission) (permission.Permission, error)) *PermissionService_Upsert_Call
type PlanService ¶ added in v0.17.0
PlanService is an autogenerated mock type for the PlanService type
func NewPlanService ¶ added in v0.17.0
func NewPlanService(t interface { mock.TestingT Cleanup(func()) }) *PlanService
NewPlanService creates a new instance of PlanService. 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 (*PlanService) Create ¶ added in v0.17.0
Create provides a mock function with given fields: ctx, _a1
func (*PlanService) EXPECT ¶ added in v0.17.0
func (_m *PlanService) EXPECT() *PlanService_Expecter
func (*PlanService) GetByID ¶ added in v0.17.0
GetByID provides a mock function with given fields: ctx, id
func (*PlanService) List ¶ added in v0.17.0
List provides a mock function with given fields: ctx, filter
func (*PlanService) UpsertPlans ¶ added in v0.17.0
UpsertPlans provides a mock function with given fields: ctx, planFile
type PlanService_Create_Call ¶ added in v0.17.0
PlanService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PlanService_Create_Call) Return ¶ added in v0.17.0
func (_c *PlanService_Create_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_Create_Call
func (*PlanService_Create_Call) Run ¶ added in v0.17.0
func (_c *PlanService_Create_Call) Run(run func(ctx context.Context, _a1 plan.Plan)) *PlanService_Create_Call
func (*PlanService_Create_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PlanService_Create_Call) RunAndReturn(run func(context.Context, plan.Plan) (plan.Plan, error)) *PlanService_Create_Call
type PlanService_Expecter ¶ added in v0.17.0
type PlanService_Expecter struct {
// contains filtered or unexported fields
}
func (*PlanService_Expecter) Create ¶ added in v0.17.0
func (_e *PlanService_Expecter) Create(ctx interface{}, _a1 interface{}) *PlanService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 plan.Plan
func (*PlanService_Expecter) GetByID ¶ added in v0.17.0
func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PlanService_Expecter) List ¶ added in v0.17.0
func (_e *PlanService_Expecter) List(ctx interface{}, filter interface{}) *PlanService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter plan.Filter
func (*PlanService_Expecter) UpsertPlans ¶ added in v0.17.0
func (_e *PlanService_Expecter) UpsertPlans(ctx interface{}, planFile interface{}) *PlanService_UpsertPlans_Call
UpsertPlans is a helper method to define mock.On call
- ctx context.Context
- planFile plan.File
type PlanService_GetByID_Call ¶ added in v0.17.0
PlanService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*PlanService_GetByID_Call) Return ¶ added in v0.17.0
func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) Run ¶ added in v0.17.0
func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
type PlanService_List_Call ¶ added in v0.17.0
PlanService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PlanService_List_Call) Return ¶ added in v0.17.0
func (_c *PlanService_List_Call) Return(_a0 []plan.Plan, _a1 error) *PlanService_List_Call
func (*PlanService_List_Call) Run ¶ added in v0.17.0
func (_c *PlanService_List_Call) Run(run func(ctx context.Context, filter plan.Filter)) *PlanService_List_Call
func (*PlanService_List_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PlanService_List_Call) RunAndReturn(run func(context.Context, plan.Filter) ([]plan.Plan, error)) *PlanService_List_Call
type PlanService_UpsertPlans_Call ¶ added in v0.17.0
PlanService_UpsertPlans_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertPlans'
func (*PlanService_UpsertPlans_Call) Return ¶ added in v0.17.0
func (_c *PlanService_UpsertPlans_Call) Return(_a0 error) *PlanService_UpsertPlans_Call
func (*PlanService_UpsertPlans_Call) Run ¶ added in v0.17.0
func (_c *PlanService_UpsertPlans_Call) Run(run func(ctx context.Context, planFile plan.File)) *PlanService_UpsertPlans_Call
func (*PlanService_UpsertPlans_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PlanService_UpsertPlans_Call) RunAndReturn(run func(context.Context, plan.File) error) *PlanService_UpsertPlans_Call
type PolicyService ¶
PolicyService is an autogenerated mock type for the PolicyService type
func NewPolicyService ¶
func NewPolicyService(t interface { mock.TestingT Cleanup(func()) }) *PolicyService
NewPolicyService creates a new instance of PolicyService. 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 (*PolicyService) Delete ¶
func (_m *PolicyService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
func (*PolicyService) ListRoles ¶ added in v0.8.0
func (_m *PolicyService) ListRoles(ctx context.Context, principalType string, principalID string, objectNamespace string, objectID string) ([]role.Role, error)
ListRoles provides a mock function with given fields: ctx, principalType, principalID, objectNamespace, objectID
type PolicyService_Create_Call ¶
PolicyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PolicyService_Create_Call) Return ¶
func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
func (*PolicyService_Create_Call) Run ¶
func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
func (*PolicyService_Create_Call) RunAndReturn ¶
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
type PolicyService_Delete_Call ¶
PolicyService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyService_Delete_Call) Return ¶
func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) Run ¶
func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) RunAndReturn ¶
func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) Create ¶
func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- pol policy.Policy
func (*PolicyService_Expecter) Delete ¶
func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) Get ¶
func (_e *PolicyService_Expecter) Get(ctx interface{}, id interface{}) *PolicyService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) List ¶
func (_e *PolicyService_Expecter) List(ctx interface{}, f interface{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f policy.Filter
func (*PolicyService_Expecter) ListRoles ¶ added in v0.8.0
func (_e *PolicyService_Expecter) ListRoles(ctx interface{}, principalType interface{}, principalID interface{}, objectNamespace interface{}, objectID interface{}) *PolicyService_ListRoles_Call
ListRoles is a helper method to define mock.On call
- ctx context.Context
- principalType string
- principalID string
- objectNamespace string
- objectID string
type PolicyService_Get_Call ¶
PolicyService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*PolicyService_Get_Call) Return ¶
func (_c *PolicyService_Get_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Get_Call
func (*PolicyService_Get_Call) Run ¶
func (_c *PolicyService_Get_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Get_Call
func (*PolicyService_Get_Call) RunAndReturn ¶
func (_c *PolicyService_Get_Call) RunAndReturn(run func(context.Context, string) (policy.Policy, error)) *PolicyService_Get_Call
type PolicyService_ListRoles_Call ¶ added in v0.8.0
PolicyService_ListRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoles'
func (*PolicyService_ListRoles_Call) Return ¶ added in v0.8.0
func (_c *PolicyService_ListRoles_Call) Return(_a0 []role.Role, _a1 error) *PolicyService_ListRoles_Call
func (*PolicyService_ListRoles_Call) Run ¶ added in v0.8.0
func (_c *PolicyService_ListRoles_Call) Run(run func(ctx context.Context, principalType string, principalID string, objectNamespace string, objectID string)) *PolicyService_ListRoles_Call
func (*PolicyService_ListRoles_Call) RunAndReturn ¶ added in v0.8.0
type PolicyService_List_Call ¶
PolicyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyService_List_Call) Return ¶
func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
func (*PolicyService_List_Call) Run ¶
func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, f policy.Filter)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
type PreferenceService ¶ added in v0.7.3
PreferenceService is an autogenerated mock type for the PreferenceService type
func NewPreferenceService ¶ added in v0.7.3
func NewPreferenceService(t interface { mock.TestingT Cleanup(func()) }) *PreferenceService
NewPreferenceService creates a new instance of PreferenceService. 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 (*PreferenceService) Create ¶ added in v0.7.3
func (_m *PreferenceService) Create(ctx context.Context, _a1 preference.Preference) (preference.Preference, error)
Create provides a mock function with given fields: ctx, _a1
func (*PreferenceService) Describe ¶ added in v0.7.3
func (_m *PreferenceService) Describe(ctx context.Context) []preference.Trait
Describe provides a mock function with given fields: ctx
func (*PreferenceService) EXPECT ¶ added in v0.7.3
func (_m *PreferenceService) EXPECT() *PreferenceService_Expecter
func (*PreferenceService) List ¶ added in v0.7.3
func (_m *PreferenceService) List(ctx context.Context, filter preference.Filter) ([]preference.Preference, error)
List provides a mock function with given fields: ctx, filter
func (*PreferenceService) LoadPlatformPreferences ¶ added in v0.7.13
func (_m *PreferenceService) LoadPlatformPreferences(ctx context.Context) (map[string]string, error)
LoadPlatformPreferences provides a mock function with given fields: ctx
type PreferenceService_Create_Call ¶ added in v0.7.3
PreferenceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PreferenceService_Create_Call) Return ¶ added in v0.7.3
func (_c *PreferenceService_Create_Call) Return(_a0 preference.Preference, _a1 error) *PreferenceService_Create_Call
func (*PreferenceService_Create_Call) Run ¶ added in v0.7.3
func (_c *PreferenceService_Create_Call) Run(run func(ctx context.Context, _a1 preference.Preference)) *PreferenceService_Create_Call
func (*PreferenceService_Create_Call) RunAndReturn ¶ added in v0.7.3
func (_c *PreferenceService_Create_Call) RunAndReturn(run func(context.Context, preference.Preference) (preference.Preference, error)) *PreferenceService_Create_Call
type PreferenceService_Describe_Call ¶ added in v0.7.3
PreferenceService_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*PreferenceService_Describe_Call) Return ¶ added in v0.7.3
func (_c *PreferenceService_Describe_Call) Return(_a0 []preference.Trait) *PreferenceService_Describe_Call
func (*PreferenceService_Describe_Call) Run ¶ added in v0.7.3
func (_c *PreferenceService_Describe_Call) Run(run func(ctx context.Context)) *PreferenceService_Describe_Call
func (*PreferenceService_Describe_Call) RunAndReturn ¶ added in v0.7.3
func (_c *PreferenceService_Describe_Call) RunAndReturn(run func(context.Context) []preference.Trait) *PreferenceService_Describe_Call
type PreferenceService_Expecter ¶ added in v0.7.3
type PreferenceService_Expecter struct {
// contains filtered or unexported fields
}
func (*PreferenceService_Expecter) Create ¶ added in v0.7.3
func (_e *PreferenceService_Expecter) Create(ctx interface{}, _a1 interface{}) *PreferenceService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 preference.Preference
func (*PreferenceService_Expecter) Describe ¶ added in v0.7.3
func (_e *PreferenceService_Expecter) Describe(ctx interface{}) *PreferenceService_Describe_Call
Describe is a helper method to define mock.On call
- ctx context.Context
func (*PreferenceService_Expecter) List ¶ added in v0.7.3
func (_e *PreferenceService_Expecter) List(ctx interface{}, filter interface{}) *PreferenceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter preference.Filter
func (*PreferenceService_Expecter) LoadPlatformPreferences ¶ added in v0.7.13
func (_e *PreferenceService_Expecter) LoadPlatformPreferences(ctx interface{}) *PreferenceService_LoadPlatformPreferences_Call
LoadPlatformPreferences is a helper method to define mock.On call
- ctx context.Context
type PreferenceService_List_Call ¶ added in v0.7.3
PreferenceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PreferenceService_List_Call) Return ¶ added in v0.7.3
func (_c *PreferenceService_List_Call) Return(_a0 []preference.Preference, _a1 error) *PreferenceService_List_Call
func (*PreferenceService_List_Call) Run ¶ added in v0.7.3
func (_c *PreferenceService_List_Call) Run(run func(ctx context.Context, filter preference.Filter)) *PreferenceService_List_Call
func (*PreferenceService_List_Call) RunAndReturn ¶ added in v0.7.3
func (_c *PreferenceService_List_Call) RunAndReturn(run func(context.Context, preference.Filter) ([]preference.Preference, error)) *PreferenceService_List_Call
type PreferenceService_LoadPlatformPreferences_Call ¶ added in v0.7.13
PreferenceService_LoadPlatformPreferences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadPlatformPreferences'
func (*PreferenceService_LoadPlatformPreferences_Call) Return ¶ added in v0.7.13
func (_c *PreferenceService_LoadPlatformPreferences_Call) Return(_a0 map[string]string, _a1 error) *PreferenceService_LoadPlatformPreferences_Call
func (*PreferenceService_LoadPlatformPreferences_Call) Run ¶ added in v0.7.13
func (_c *PreferenceService_LoadPlatformPreferences_Call) Run(run func(ctx context.Context)) *PreferenceService_LoadPlatformPreferences_Call
func (*PreferenceService_LoadPlatformPreferences_Call) RunAndReturn ¶ added in v0.7.13
func (_c *PreferenceService_LoadPlatformPreferences_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *PreferenceService_LoadPlatformPreferences_Call
type ProductService ¶ added in v0.17.0
ProductService is an autogenerated mock type for the ProductService type
func NewProductService ¶ added in v0.17.0
func NewProductService(t interface { mock.TestingT Cleanup(func()) }) *ProductService
NewProductService creates a new instance of ProductService. 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 (*ProductService) Create ¶ added in v0.17.0
Create provides a mock function with given fields: ctx, _a1
func (*ProductService) EXPECT ¶ added in v0.17.0
func (_m *ProductService) EXPECT() *ProductService_Expecter
func (*ProductService) GetByID ¶ added in v0.17.0
GetByID provides a mock function with given fields: ctx, id
func (*ProductService) GetFeatureByID ¶ added in v0.17.0
GetFeatureByID provides a mock function with given fields: ctx, id
func (*ProductService) List ¶ added in v0.17.0
func (_m *ProductService) List(ctx context.Context, filter product.Filter) ([]product.Product, error)
List provides a mock function with given fields: ctx, filter
func (*ProductService) ListFeatures ¶ added in v0.17.0
func (_m *ProductService) ListFeatures(ctx context.Context, filter product.Filter) ([]product.Feature, error)
ListFeatures provides a mock function with given fields: ctx, filter
func (*ProductService) Update ¶ added in v0.17.0
Update provides a mock function with given fields: ctx, _a1
func (*ProductService) UpsertFeature ¶ added in v0.17.0
func (_m *ProductService) UpsertFeature(ctx context.Context, feature product.Feature) (product.Feature, error)
UpsertFeature provides a mock function with given fields: ctx, feature
type ProductService_Create_Call ¶ added in v0.17.0
ProductService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProductService_Create_Call) Return ¶ added in v0.17.0
func (_c *ProductService_Create_Call) Return(_a0 product.Product, _a1 error) *ProductService_Create_Call
func (*ProductService_Create_Call) Run ¶ added in v0.17.0
func (_c *ProductService_Create_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Create_Call
func (*ProductService_Create_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_Create_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Create_Call
type ProductService_Expecter ¶ added in v0.17.0
type ProductService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProductService_Expecter) Create ¶ added in v0.17.0
func (_e *ProductService_Expecter) Create(ctx interface{}, _a1 interface{}) *ProductService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 product.Product
func (*ProductService_Expecter) GetByID ¶ added in v0.17.0
func (_e *ProductService_Expecter) GetByID(ctx interface{}, id interface{}) *ProductService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProductService_Expecter) GetFeatureByID ¶ added in v0.17.0
func (_e *ProductService_Expecter) GetFeatureByID(ctx interface{}, id interface{}) *ProductService_GetFeatureByID_Call
GetFeatureByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProductService_Expecter) List ¶ added in v0.17.0
func (_e *ProductService_Expecter) List(ctx interface{}, filter interface{}) *ProductService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter product.Filter
func (*ProductService_Expecter) ListFeatures ¶ added in v0.17.0
func (_e *ProductService_Expecter) ListFeatures(ctx interface{}, filter interface{}) *ProductService_ListFeatures_Call
ListFeatures is a helper method to define mock.On call
- ctx context.Context
- filter product.Filter
func (*ProductService_Expecter) Update ¶ added in v0.17.0
func (_e *ProductService_Expecter) Update(ctx interface{}, _a1 interface{}) *ProductService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 product.Product
func (*ProductService_Expecter) UpsertFeature ¶ added in v0.17.0
func (_e *ProductService_Expecter) UpsertFeature(ctx interface{}, feature interface{}) *ProductService_UpsertFeature_Call
UpsertFeature is a helper method to define mock.On call
- ctx context.Context
- feature product.Feature
type ProductService_GetByID_Call ¶ added in v0.17.0
ProductService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*ProductService_GetByID_Call) Return ¶ added in v0.17.0
func (_c *ProductService_GetByID_Call) Return(_a0 product.Product, _a1 error) *ProductService_GetByID_Call
func (*ProductService_GetByID_Call) Run ¶ added in v0.17.0
func (_c *ProductService_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetByID_Call
func (*ProductService_GetByID_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *ProductService_GetByID_Call
type ProductService_GetFeatureByID_Call ¶ added in v0.17.0
ProductService_GetFeatureByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFeatureByID'
func (*ProductService_GetFeatureByID_Call) Return ¶ added in v0.17.0
func (_c *ProductService_GetFeatureByID_Call) Return(_a0 product.Feature, _a1 error) *ProductService_GetFeatureByID_Call
func (*ProductService_GetFeatureByID_Call) Run ¶ added in v0.17.0
func (_c *ProductService_GetFeatureByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetFeatureByID_Call
func (*ProductService_GetFeatureByID_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_GetFeatureByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *ProductService_GetFeatureByID_Call
type ProductService_ListFeatures_Call ¶ added in v0.17.0
ProductService_ListFeatures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFeatures'
func (*ProductService_ListFeatures_Call) Return ¶ added in v0.17.0
func (_c *ProductService_ListFeatures_Call) Return(_a0 []product.Feature, _a1 error) *ProductService_ListFeatures_Call
func (*ProductService_ListFeatures_Call) Run ¶ added in v0.17.0
func (_c *ProductService_ListFeatures_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_ListFeatures_Call
func (*ProductService_ListFeatures_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_ListFeatures_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Feature, error)) *ProductService_ListFeatures_Call
type ProductService_List_Call ¶ added in v0.17.0
ProductService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProductService_List_Call) Return ¶ added in v0.17.0
func (_c *ProductService_List_Call) Return(_a0 []product.Product, _a1 error) *ProductService_List_Call
func (*ProductService_List_Call) Run ¶ added in v0.17.0
func (_c *ProductService_List_Call) Run(run func(ctx context.Context, filter product.Filter)) *ProductService_List_Call
func (*ProductService_List_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *ProductService_List_Call
type ProductService_Update_Call ¶ added in v0.17.0
ProductService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProductService_Update_Call) Return ¶ added in v0.17.0
func (_c *ProductService_Update_Call) Return(_a0 product.Product, _a1 error) *ProductService_Update_Call
func (*ProductService_Update_Call) Run ¶ added in v0.17.0
func (_c *ProductService_Update_Call) Run(run func(ctx context.Context, _a1 product.Product)) *ProductService_Update_Call
func (*ProductService_Update_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_Update_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *ProductService_Update_Call
type ProductService_UpsertFeature_Call ¶ added in v0.17.0
ProductService_UpsertFeature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertFeature'
func (*ProductService_UpsertFeature_Call) Return ¶ added in v0.17.0
func (_c *ProductService_UpsertFeature_Call) Return(_a0 product.Feature, _a1 error) *ProductService_UpsertFeature_Call
func (*ProductService_UpsertFeature_Call) Run ¶ added in v0.17.0
func (_c *ProductService_UpsertFeature_Call) Run(run func(ctx context.Context, feature product.Feature)) *ProductService_UpsertFeature_Call
func (*ProductService_UpsertFeature_Call) RunAndReturn ¶ added in v0.17.0
func (_c *ProductService_UpsertFeature_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *ProductService_UpsertFeature_Call
type ProjectService ¶
ProjectService is an autogenerated mock type for the ProjectService type
func NewProjectService ¶
func NewProjectService(t interface { mock.TestingT Cleanup(func()) }) *ProjectService
NewProjectService creates a new instance of ProjectService. 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 (*ProjectService) Disable ¶
func (_m *ProjectService) Disable(ctx context.Context, id string) error
Disable provides a mock function with given fields: ctx, id
func (*ProjectService) EXPECT ¶
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
func (*ProjectService) Enable ¶
func (_m *ProjectService) Enable(ctx context.Context, id string) error
Enable provides a mock function with given fields: ctx, id
func (*ProjectService) ListByUser ¶
func (_m *ProjectService) ListByUser(ctx context.Context, principalID string, principalType string, flt project.Filter) ([]project.Project, error)
ListByUser provides a mock function with given fields: ctx, principalID, principalType, flt
func (*ProjectService) ListGroups ¶ added in v0.7.6
ListGroups provides a mock function with given fields: ctx, id
func (*ProjectService) ListServiceUsers ¶ added in v0.7.5
func (_m *ProjectService) ListServiceUsers(ctx context.Context, id string, permissionFilter string) ([]serviceuser.ServiceUser, error)
ListServiceUsers provides a mock function with given fields: ctx, id, permissionFilter
type ProjectService_Create_Call ¶
ProjectService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProjectService_Create_Call) Return ¶
func (_c *ProjectService_Create_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Create_Call
func (*ProjectService_Create_Call) Run ¶
func (_c *ProjectService_Create_Call) Run(run func(ctx context.Context, prj project.Project)) *ProjectService_Create_Call
func (*ProjectService_Create_Call) RunAndReturn ¶
func (_c *ProjectService_Create_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *ProjectService_Create_Call
type ProjectService_Disable_Call ¶
ProjectService_Disable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disable'
func (*ProjectService_Disable_Call) Return ¶
func (_c *ProjectService_Disable_Call) Return(_a0 error) *ProjectService_Disable_Call
func (*ProjectService_Disable_Call) Run ¶
func (_c *ProjectService_Disable_Call) Run(run func(ctx context.Context, id string)) *ProjectService_Disable_Call
func (*ProjectService_Disable_Call) RunAndReturn ¶
func (_c *ProjectService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *ProjectService_Disable_Call
type ProjectService_Enable_Call ¶
ProjectService_Enable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enable'
func (*ProjectService_Enable_Call) Return ¶
func (_c *ProjectService_Enable_Call) Return(_a0 error) *ProjectService_Enable_Call
func (*ProjectService_Enable_Call) Run ¶
func (_c *ProjectService_Enable_Call) Run(run func(ctx context.Context, id string)) *ProjectService_Enable_Call
func (*ProjectService_Enable_Call) RunAndReturn ¶
func (_c *ProjectService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *ProjectService_Enable_Call
type ProjectService_Expecter ¶
type ProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectService_Expecter) Create ¶
func (_e *ProjectService_Expecter) Create(ctx interface{}, prj interface{}) *ProjectService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- prj project.Project
func (*ProjectService_Expecter) Disable ¶
func (_e *ProjectService_Expecter) Disable(ctx interface{}, id interface{}) *ProjectService_Disable_Call
Disable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProjectService_Expecter) Enable ¶
func (_e *ProjectService_Expecter) Enable(ctx interface{}, id interface{}) *ProjectService_Enable_Call
Enable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProjectService_Expecter) Get ¶
func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrName interface{}) *ProjectService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*ProjectService_Expecter) List ¶
func (_e *ProjectService_Expecter) List(ctx interface{}, f interface{}) *ProjectService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f project.Filter
func (*ProjectService_Expecter) ListByUser ¶
func (_e *ProjectService_Expecter) ListByUser(ctx interface{}, principalID interface{}, principalType interface{}, flt interface{}) *ProjectService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principalID string
- principalType string
- flt project.Filter
func (*ProjectService_Expecter) ListGroups ¶ added in v0.7.6
func (_e *ProjectService_Expecter) ListGroups(ctx interface{}, id interface{}) *ProjectService_ListGroups_Call
ListGroups is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProjectService_Expecter) ListServiceUsers ¶ added in v0.7.5
func (_e *ProjectService_Expecter) ListServiceUsers(ctx interface{}, id interface{}, permissionFilter interface{}) *ProjectService_ListServiceUsers_Call
ListServiceUsers is a helper method to define mock.On call
- ctx context.Context
- id string
- permissionFilter string
func (*ProjectService_Expecter) ListUsers ¶
func (_e *ProjectService_Expecter) ListUsers(ctx interface{}, id interface{}, permissionFilter interface{}) *ProjectService_ListUsers_Call
ListUsers is a helper method to define mock.On call
- ctx context.Context
- id string
- permissionFilter string
func (*ProjectService_Expecter) Update ¶
func (_e *ProjectService_Expecter) Update(ctx interface{}, toUpdate interface{}) *ProjectService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- toUpdate project.Project
type ProjectService_Get_Call ¶
ProjectService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProjectService_Get_Call) Return ¶
func (_c *ProjectService_Get_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Get_Call
func (*ProjectService_Get_Call) Run ¶
func (_c *ProjectService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *ProjectService_Get_Call
func (*ProjectService_Get_Call) RunAndReturn ¶
func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
type ProjectService_ListByUser_Call ¶
ProjectService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*ProjectService_ListByUser_Call) Return ¶
func (_c *ProjectService_ListByUser_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_ListByUser_Call
func (*ProjectService_ListByUser_Call) Run ¶
func (_c *ProjectService_ListByUser_Call) Run(run func(ctx context.Context, principalID string, principalType string, flt project.Filter)) *ProjectService_ListByUser_Call
func (*ProjectService_ListByUser_Call) RunAndReturn ¶
type ProjectService_ListGroups_Call ¶ added in v0.7.6
ProjectService_ListGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroups'
func (*ProjectService_ListGroups_Call) Return ¶ added in v0.7.6
func (_c *ProjectService_ListGroups_Call) Return(_a0 []group.Group, _a1 error) *ProjectService_ListGroups_Call
func (*ProjectService_ListGroups_Call) Run ¶ added in v0.7.6
func (_c *ProjectService_ListGroups_Call) Run(run func(ctx context.Context, id string)) *ProjectService_ListGroups_Call
func (*ProjectService_ListGroups_Call) RunAndReturn ¶ added in v0.7.6
func (_c *ProjectService_ListGroups_Call) RunAndReturn(run func(context.Context, string) ([]group.Group, error)) *ProjectService_ListGroups_Call
type ProjectService_ListServiceUsers_Call ¶ added in v0.7.5
ProjectService_ListServiceUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServiceUsers'
func (*ProjectService_ListServiceUsers_Call) Return ¶ added in v0.7.5
func (_c *ProjectService_ListServiceUsers_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ProjectService_ListServiceUsers_Call
func (*ProjectService_ListServiceUsers_Call) Run ¶ added in v0.7.5
func (_c *ProjectService_ListServiceUsers_Call) Run(run func(ctx context.Context, id string, permissionFilter string)) *ProjectService_ListServiceUsers_Call
func (*ProjectService_ListServiceUsers_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProjectService_ListServiceUsers_Call) RunAndReturn(run func(context.Context, string, string) ([]serviceuser.ServiceUser, error)) *ProjectService_ListServiceUsers_Call
type ProjectService_ListUsers_Call ¶
ProjectService_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'
func (*ProjectService_ListUsers_Call) Return ¶
func (_c *ProjectService_ListUsers_Call) Return(_a0 []user.User, _a1 error) *ProjectService_ListUsers_Call
func (*ProjectService_ListUsers_Call) Run ¶
func (_c *ProjectService_ListUsers_Call) Run(run func(ctx context.Context, id string, permissionFilter string)) *ProjectService_ListUsers_Call
func (*ProjectService_ListUsers_Call) RunAndReturn ¶
func (_c *ProjectService_ListUsers_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *ProjectService_ListUsers_Call
type ProjectService_List_Call ¶
ProjectService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProjectService_List_Call) Return ¶
func (_c *ProjectService_List_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_List_Call
func (*ProjectService_List_Call) Run ¶
func (_c *ProjectService_List_Call) Run(run func(ctx context.Context, f project.Filter)) *ProjectService_List_Call
func (*ProjectService_List_Call) RunAndReturn ¶
func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *ProjectService_List_Call
type ProjectService_Update_Call ¶
ProjectService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProjectService_Update_Call) Return ¶
func (_c *ProjectService_Update_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Update_Call
func (*ProjectService_Update_Call) Run ¶
func (_c *ProjectService_Update_Call) Run(run func(ctx context.Context, toUpdate project.Project)) *ProjectService_Update_Call
func (*ProjectService_Update_Call) RunAndReturn ¶
func (_c *ProjectService_Update_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *ProjectService_Update_Call
type RelationService ¶
RelationService is an autogenerated mock type for the RelationService type
func NewRelationService ¶
func NewRelationService(t interface { mock.TestingT Cleanup(func()) }) *RelationService
NewRelationService creates a new instance of RelationService. 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 (*RelationService) Create ¶
func (_m *RelationService) Create(ctx context.Context, rel relation.Relation) (relation.Relation, error)
Create provides a mock function with given fields: ctx, rel
func (*RelationService) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Create_Call ¶
RelationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RelationService_Create_Call) Return ¶
func (_c *RelationService_Create_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Create_Call
func (*RelationService_Create_Call) Run ¶
func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Create_Call
func (*RelationService_Create_Call) RunAndReturn ¶
func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.Relation) (relation.Relation, error)) *RelationService_Create_Call
type RelationService_Delete_Call ¶
RelationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RelationService_Delete_Call) Return ¶
func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
func (*RelationService_Delete_Call) Run ¶
func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
func (*RelationService_Delete_Call) RunAndReturn ¶
func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
type RelationService_Expecter ¶
type RelationService_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationService_Expecter) Create ¶
func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
func (*RelationService_Expecter) Delete ¶
func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
func (*RelationService_Expecter) Get ¶
func (_e *RelationService_Expecter) Get(ctx interface{}, id interface{}) *RelationService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RelationService_Expecter) List ¶
func (_e *RelationService_Expecter) List(ctx interface{}, f interface{}) *RelationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f relation.Filter
type RelationService_Get_Call ¶
RelationService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RelationService_Get_Call) Return ¶
func (_c *RelationService_Get_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Get_Call
func (*RelationService_Get_Call) Run ¶
func (_c *RelationService_Get_Call) Run(run func(ctx context.Context, id string)) *RelationService_Get_Call
func (*RelationService_Get_Call) RunAndReturn ¶
func (_c *RelationService_Get_Call) RunAndReturn(run func(context.Context, string) (relation.Relation, error)) *RelationService_Get_Call
type RelationService_List_Call ¶
RelationService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RelationService_List_Call) Return ¶
func (_c *RelationService_List_Call) Return(_a0 []relation.Relation, _a1 error) *RelationService_List_Call
func (*RelationService_List_Call) Run ¶
func (_c *RelationService_List_Call) Run(run func(ctx context.Context, f relation.Filter)) *RelationService_List_Call
func (*RelationService_List_Call) RunAndReturn ¶
func (_c *RelationService_List_Call) RunAndReturn(run func(context.Context, relation.Filter) ([]relation.Relation, error)) *RelationService_List_Call
type ResourceService ¶
ResourceService is an autogenerated mock type for the ResourceService type
func NewResourceService ¶
func NewResourceService(t interface { mock.TestingT Cleanup(func()) }) *ResourceService
NewResourceService creates a new instance of ResourceService. 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 (*ResourceService) BatchCheck ¶ added in v0.7.4
func (_m *ResourceService) BatchCheck(ctx context.Context, checks []resource.Check) ([]relation.CheckPair, error)
BatchCheck provides a mock function with given fields: ctx, checks
func (*ResourceService) CheckAuthz ¶
CheckAuthz provides a mock function with given fields: ctx, check
func (*ResourceService) Create ¶
func (_m *ResourceService) Create(ctx context.Context, _a1 resource.Resource) (resource.Resource, error)
Create provides a mock function with given fields: ctx, _a1
func (*ResourceService) Delete ¶ added in v0.7.2
Delete provides a mock function with given fields: ctx, namespace, id
func (*ResourceService) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
type ResourceService_BatchCheck_Call ¶ added in v0.7.4
ResourceService_BatchCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCheck'
func (*ResourceService_BatchCheck_Call) Return ¶ added in v0.7.4
func (_c *ResourceService_BatchCheck_Call) Return(_a0 []relation.CheckPair, _a1 error) *ResourceService_BatchCheck_Call
func (*ResourceService_BatchCheck_Call) Run ¶ added in v0.7.4
func (_c *ResourceService_BatchCheck_Call) Run(run func(ctx context.Context, checks []resource.Check)) *ResourceService_BatchCheck_Call
func (*ResourceService_BatchCheck_Call) RunAndReturn ¶ added in v0.7.4
func (_c *ResourceService_BatchCheck_Call) RunAndReturn(run func(context.Context, []resource.Check) ([]relation.CheckPair, error)) *ResourceService_BatchCheck_Call
type ResourceService_CheckAuthz_Call ¶
ResourceService_CheckAuthz_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckAuthz'
func (*ResourceService_CheckAuthz_Call) Return ¶
func (_c *ResourceService_CheckAuthz_Call) Return(_a0 bool, _a1 error) *ResourceService_CheckAuthz_Call
func (*ResourceService_CheckAuthz_Call) Run ¶
func (_c *ResourceService_CheckAuthz_Call) Run(run func(ctx context.Context, check resource.Check)) *ResourceService_CheckAuthz_Call
func (*ResourceService_CheckAuthz_Call) RunAndReturn ¶
func (_c *ResourceService_CheckAuthz_Call) RunAndReturn(run func(context.Context, resource.Check) (bool, error)) *ResourceService_CheckAuthz_Call
type ResourceService_Create_Call ¶
ResourceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ResourceService_Create_Call) Return ¶
func (_c *ResourceService_Create_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Create_Call
func (*ResourceService_Create_Call) Run ¶
func (_c *ResourceService_Create_Call) Run(run func(ctx context.Context, _a1 resource.Resource)) *ResourceService_Create_Call
func (*ResourceService_Create_Call) RunAndReturn ¶
func (_c *ResourceService_Create_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Create_Call
type ResourceService_Delete_Call ¶ added in v0.7.2
ResourceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ResourceService_Delete_Call) Return ¶ added in v0.7.2
func (_c *ResourceService_Delete_Call) Return(_a0 error) *ResourceService_Delete_Call
func (*ResourceService_Delete_Call) Run ¶ added in v0.7.2
func (_c *ResourceService_Delete_Call) Run(run func(ctx context.Context, namespace string, id string)) *ResourceService_Delete_Call
func (*ResourceService_Delete_Call) RunAndReturn ¶ added in v0.7.2
func (_c *ResourceService_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *ResourceService_Delete_Call
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceService_Expecter) BatchCheck ¶ added in v0.7.4
func (_e *ResourceService_Expecter) BatchCheck(ctx interface{}, checks interface{}) *ResourceService_BatchCheck_Call
BatchCheck is a helper method to define mock.On call
- ctx context.Context
- checks []resource.Check
func (*ResourceService_Expecter) CheckAuthz ¶
func (_e *ResourceService_Expecter) CheckAuthz(ctx interface{}, check interface{}) *ResourceService_CheckAuthz_Call
CheckAuthz is a helper method to define mock.On call
- ctx context.Context
- check resource.Check
func (*ResourceService_Expecter) Create ¶
func (_e *ResourceService_Expecter) Create(ctx interface{}, _a1 interface{}) *ResourceService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 resource.Resource
func (*ResourceService_Expecter) Delete ¶ added in v0.7.2
func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespace interface{}, id interface{}) *ResourceService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- namespace string
- id string
func (*ResourceService_Expecter) Get ¶
func (_e *ResourceService_Expecter) Get(ctx interface{}, id interface{}) *ResourceService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ResourceService_Expecter) List ¶
func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt resource.Filter
func (*ResourceService_Expecter) Update ¶
func (_e *ResourceService_Expecter) Update(ctx interface{}, _a1 interface{}) *ResourceService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 resource.Resource
type ResourceService_Get_Call ¶
ResourceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ResourceService_Get_Call) Return ¶
func (_c *ResourceService_Get_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Get_Call
func (*ResourceService_Get_Call) Run ¶
func (_c *ResourceService_Get_Call) Run(run func(ctx context.Context, id string)) *ResourceService_Get_Call
func (*ResourceService_Get_Call) RunAndReturn ¶
func (_c *ResourceService_Get_Call) RunAndReturn(run func(context.Context, string) (resource.Resource, error)) *ResourceService_Get_Call
type ResourceService_List_Call ¶
ResourceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ResourceService_List_Call) Return ¶
func (_c *ResourceService_List_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceService_List_Call
func (*ResourceService_List_Call) Run ¶
func (_c *ResourceService_List_Call) Run(run func(ctx context.Context, flt resource.Filter)) *ResourceService_List_Call
func (*ResourceService_List_Call) RunAndReturn ¶
func (_c *ResourceService_List_Call) RunAndReturn(run func(context.Context, resource.Filter) ([]resource.Resource, error)) *ResourceService_List_Call
type ResourceService_Update_Call ¶
ResourceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ResourceService_Update_Call) Return ¶
func (_c *ResourceService_Update_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Update_Call
func (*ResourceService_Update_Call) Run ¶
func (_c *ResourceService_Update_Call) Run(run func(ctx context.Context, _a1 resource.Resource)) *ResourceService_Update_Call
func (*ResourceService_Update_Call) RunAndReturn ¶
func (_c *ResourceService_Update_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Update_Call
type RoleService ¶
RoleService is an autogenerated mock type for the RoleService type
func NewRoleService ¶
func NewRoleService(t interface { mock.TestingT Cleanup(func()) }) *RoleService
NewRoleService creates a new instance of RoleService. 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 (*RoleService) Delete ¶
func (_m *RoleService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*RoleService) EXPECT ¶
func (_m *RoleService) EXPECT() *RoleService_Expecter
type RoleService_Delete_Call ¶
RoleService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RoleService_Delete_Call) Return ¶
func (_c *RoleService_Delete_Call) Return(_a0 error) *RoleService_Delete_Call
func (*RoleService_Delete_Call) Run ¶
func (_c *RoleService_Delete_Call) Run(run func(ctx context.Context, id string)) *RoleService_Delete_Call
func (*RoleService_Delete_Call) RunAndReturn ¶
func (_c *RoleService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *RoleService_Delete_Call
type RoleService_Expecter ¶
type RoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleService_Expecter) Delete ¶
func (_e *RoleService_Expecter) Delete(ctx interface{}, id interface{}) *RoleService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RoleService_Expecter) Get ¶
func (_e *RoleService_Expecter) Get(ctx interface{}, id interface{}) *RoleService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RoleService_Expecter) List ¶
func (_e *RoleService_Expecter) List(ctx interface{}, f interface{}) *RoleService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f role.Filter
func (*RoleService_Expecter) Update ¶
func (_e *RoleService_Expecter) Update(ctx interface{}, toUpdate interface{}) *RoleService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- toUpdate role.Role
func (*RoleService_Expecter) Upsert ¶
func (_e *RoleService_Expecter) Upsert(ctx interface{}, toCreate interface{}) *RoleService_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- toCreate role.Role
type RoleService_Get_Call ¶
RoleService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RoleService_Get_Call) Return ¶
func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
func (*RoleService_Get_Call) Run ¶
func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call
func (*RoleService_Get_Call) RunAndReturn ¶
func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
type RoleService_List_Call ¶
RoleService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RoleService_List_Call) Return ¶
func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call
func (*RoleService_List_Call) Run ¶
func (_c *RoleService_List_Call) Run(run func(ctx context.Context, f role.Filter)) *RoleService_List_Call
func (*RoleService_List_Call) RunAndReturn ¶
func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context, role.Filter) ([]role.Role, error)) *RoleService_List_Call
type RoleService_Update_Call ¶
RoleService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*RoleService_Update_Call) Return ¶
func (_c *RoleService_Update_Call) Return(_a0 role.Role, _a1 error) *RoleService_Update_Call
func (*RoleService_Update_Call) Run ¶
func (_c *RoleService_Update_Call) Run(run func(ctx context.Context, toUpdate role.Role)) *RoleService_Update_Call
func (*RoleService_Update_Call) RunAndReturn ¶
func (_c *RoleService_Update_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Update_Call
type RoleService_Upsert_Call ¶
RoleService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*RoleService_Upsert_Call) Return ¶
func (_c *RoleService_Upsert_Call) Return(_a0 role.Role, _a1 error) *RoleService_Upsert_Call
func (*RoleService_Upsert_Call) Run ¶
func (_c *RoleService_Upsert_Call) Run(run func(ctx context.Context, toCreate role.Role)) *RoleService_Upsert_Call
func (*RoleService_Upsert_Call) RunAndReturn ¶
func (_c *RoleService_Upsert_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Upsert_Call
type ServiceUserService ¶
ServiceUserService is an autogenerated mock type for the ServiceUserService type
func NewServiceUserService ¶
func NewServiceUserService(t interface { mock.TestingT Cleanup(func()) }) *ServiceUserService
NewServiceUserService creates a new instance of ServiceUserService. 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 (*ServiceUserService) Create ¶
func (_m *ServiceUserService) Create(ctx context.Context, serviceUser serviceuser.ServiceUser) (serviceuser.ServiceUser, error)
Create provides a mock function with given fields: ctx, serviceUser
func (*ServiceUserService) CreateKey ¶
func (_m *ServiceUserService) CreateKey(ctx context.Context, cred serviceuser.Credential) (serviceuser.Credential, error)
CreateKey provides a mock function with given fields: ctx, cred
func (*ServiceUserService) CreateSecret ¶
func (_m *ServiceUserService) CreateSecret(ctx context.Context, credential serviceuser.Credential) (serviceuser.Secret, error)
CreateSecret provides a mock function with given fields: ctx, credential
func (*ServiceUserService) CreateToken ¶ added in v0.9.1
func (_m *ServiceUserService) CreateToken(ctx context.Context, credential serviceuser.Credential) (serviceuser.Token, error)
CreateToken provides a mock function with given fields: ctx, credential
func (*ServiceUserService) Delete ¶
func (_m *ServiceUserService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*ServiceUserService) DeleteKey ¶
func (_m *ServiceUserService) DeleteKey(ctx context.Context, credID string) error
DeleteKey provides a mock function with given fields: ctx, credID
func (*ServiceUserService) DeleteSecret ¶
func (_m *ServiceUserService) DeleteSecret(ctx context.Context, credID string) error
DeleteSecret provides a mock function with given fields: ctx, credID
func (*ServiceUserService) DeleteToken ¶ added in v0.9.1
func (_m *ServiceUserService) DeleteToken(ctx context.Context, credID string) error
DeleteToken provides a mock function with given fields: ctx, credID
func (*ServiceUserService) EXPECT ¶
func (_m *ServiceUserService) EXPECT() *ServiceUserService_Expecter
func (*ServiceUserService) Get ¶
func (_m *ServiceUserService) Get(ctx context.Context, id string) (serviceuser.ServiceUser, error)
Get provides a mock function with given fields: ctx, id
func (*ServiceUserService) GetByIDs ¶ added in v0.8.10
func (_m *ServiceUserService) GetByIDs(ctx context.Context, ids []string) ([]serviceuser.ServiceUser, error)
GetByIDs provides a mock function with given fields: ctx, ids
func (*ServiceUserService) GetKey ¶
func (_m *ServiceUserService) GetKey(ctx context.Context, credID string) (serviceuser.Credential, error)
GetKey provides a mock function with given fields: ctx, credID
func (*ServiceUserService) IsSudo ¶ added in v0.8.0
func (_m *ServiceUserService) IsSudo(ctx context.Context, id string, permissionName string) (bool, error)
IsSudo provides a mock function with given fields: ctx, id, permissionName
func (*ServiceUserService) List ¶
func (_m *ServiceUserService) List(ctx context.Context, flt serviceuser.Filter) ([]serviceuser.ServiceUser, error)
List provides a mock function with given fields: ctx, flt
func (*ServiceUserService) ListByOrg ¶
func (_m *ServiceUserService) ListByOrg(ctx context.Context, orgID string) ([]serviceuser.ServiceUser, error)
ListByOrg provides a mock function with given fields: ctx, orgID
func (*ServiceUserService) ListKeys ¶
func (_m *ServiceUserService) ListKeys(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)
ListKeys provides a mock function with given fields: ctx, serviceUserID
func (*ServiceUserService) ListSecret ¶
func (_m *ServiceUserService) ListSecret(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)
ListSecret provides a mock function with given fields: ctx, serviceUserID
func (*ServiceUserService) ListToken ¶ added in v0.9.1
func (_m *ServiceUserService) ListToken(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)
ListToken provides a mock function with given fields: ctx, serviceUserID
type ServiceUserService_CreateKey_Call ¶
ServiceUserService_CreateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateKey'
func (*ServiceUserService_CreateKey_Call) Return ¶
func (_c *ServiceUserService_CreateKey_Call) Return(_a0 serviceuser.Credential, _a1 error) *ServiceUserService_CreateKey_Call
func (*ServiceUserService_CreateKey_Call) Run ¶
func (_c *ServiceUserService_CreateKey_Call) Run(run func(ctx context.Context, cred serviceuser.Credential)) *ServiceUserService_CreateKey_Call
func (*ServiceUserService_CreateKey_Call) RunAndReturn ¶
func (_c *ServiceUserService_CreateKey_Call) RunAndReturn(run func(context.Context, serviceuser.Credential) (serviceuser.Credential, error)) *ServiceUserService_CreateKey_Call
type ServiceUserService_CreateSecret_Call ¶
ServiceUserService_CreateSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSecret'
func (*ServiceUserService_CreateSecret_Call) Return ¶
func (_c *ServiceUserService_CreateSecret_Call) Return(_a0 serviceuser.Secret, _a1 error) *ServiceUserService_CreateSecret_Call
func (*ServiceUserService_CreateSecret_Call) Run ¶
func (_c *ServiceUserService_CreateSecret_Call) Run(run func(ctx context.Context, credential serviceuser.Credential)) *ServiceUserService_CreateSecret_Call
func (*ServiceUserService_CreateSecret_Call) RunAndReturn ¶
func (_c *ServiceUserService_CreateSecret_Call) RunAndReturn(run func(context.Context, serviceuser.Credential) (serviceuser.Secret, error)) *ServiceUserService_CreateSecret_Call
type ServiceUserService_CreateToken_Call ¶ added in v0.9.1
ServiceUserService_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'
func (*ServiceUserService_CreateToken_Call) Return ¶ added in v0.9.1
func (_c *ServiceUserService_CreateToken_Call) Return(_a0 serviceuser.Token, _a1 error) *ServiceUserService_CreateToken_Call
func (*ServiceUserService_CreateToken_Call) Run ¶ added in v0.9.1
func (_c *ServiceUserService_CreateToken_Call) Run(run func(ctx context.Context, credential serviceuser.Credential)) *ServiceUserService_CreateToken_Call
func (*ServiceUserService_CreateToken_Call) RunAndReturn ¶ added in v0.9.1
func (_c *ServiceUserService_CreateToken_Call) RunAndReturn(run func(context.Context, serviceuser.Credential) (serviceuser.Token, error)) *ServiceUserService_CreateToken_Call
type ServiceUserService_Create_Call ¶
ServiceUserService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ServiceUserService_Create_Call) Return ¶
func (_c *ServiceUserService_Create_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Create_Call
func (*ServiceUserService_Create_Call) Run ¶
func (_c *ServiceUserService_Create_Call) Run(run func(ctx context.Context, serviceUser serviceuser.ServiceUser)) *ServiceUserService_Create_Call
func (*ServiceUserService_Create_Call) RunAndReturn ¶
func (_c *ServiceUserService_Create_Call) RunAndReturn(run func(context.Context, serviceuser.ServiceUser) (serviceuser.ServiceUser, error)) *ServiceUserService_Create_Call
type ServiceUserService_DeleteKey_Call ¶
ServiceUserService_DeleteKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteKey'
func (*ServiceUserService_DeleteKey_Call) Return ¶
func (_c *ServiceUserService_DeleteKey_Call) Return(_a0 error) *ServiceUserService_DeleteKey_Call
func (*ServiceUserService_DeleteKey_Call) Run ¶
func (_c *ServiceUserService_DeleteKey_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_DeleteKey_Call
func (*ServiceUserService_DeleteKey_Call) RunAndReturn ¶
func (_c *ServiceUserService_DeleteKey_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_DeleteKey_Call
type ServiceUserService_DeleteSecret_Call ¶
ServiceUserService_DeleteSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSecret'
func (*ServiceUserService_DeleteSecret_Call) Return ¶
func (_c *ServiceUserService_DeleteSecret_Call) Return(_a0 error) *ServiceUserService_DeleteSecret_Call
func (*ServiceUserService_DeleteSecret_Call) Run ¶
func (_c *ServiceUserService_DeleteSecret_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_DeleteSecret_Call
func (*ServiceUserService_DeleteSecret_Call) RunAndReturn ¶
func (_c *ServiceUserService_DeleteSecret_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_DeleteSecret_Call
type ServiceUserService_DeleteToken_Call ¶ added in v0.9.1
ServiceUserService_DeleteToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteToken'
func (*ServiceUserService_DeleteToken_Call) Return ¶ added in v0.9.1
func (_c *ServiceUserService_DeleteToken_Call) Return(_a0 error) *ServiceUserService_DeleteToken_Call
func (*ServiceUserService_DeleteToken_Call) Run ¶ added in v0.9.1
func (_c *ServiceUserService_DeleteToken_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_DeleteToken_Call
func (*ServiceUserService_DeleteToken_Call) RunAndReturn ¶ added in v0.9.1
func (_c *ServiceUserService_DeleteToken_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_DeleteToken_Call
type ServiceUserService_Delete_Call ¶
ServiceUserService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ServiceUserService_Delete_Call) Return ¶
func (_c *ServiceUserService_Delete_Call) Return(_a0 error) *ServiceUserService_Delete_Call
func (*ServiceUserService_Delete_Call) Run ¶
func (_c *ServiceUserService_Delete_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Delete_Call
func (*ServiceUserService_Delete_Call) RunAndReturn ¶
func (_c *ServiceUserService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_Delete_Call
type ServiceUserService_Expecter ¶
type ServiceUserService_Expecter struct {
// contains filtered or unexported fields
}
func (*ServiceUserService_Expecter) Create ¶
func (_e *ServiceUserService_Expecter) Create(ctx interface{}, serviceUser interface{}) *ServiceUserService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- serviceUser serviceuser.ServiceUser
func (*ServiceUserService_Expecter) CreateKey ¶
func (_e *ServiceUserService_Expecter) CreateKey(ctx interface{}, cred interface{}) *ServiceUserService_CreateKey_Call
CreateKey is a helper method to define mock.On call
- ctx context.Context
- cred serviceuser.Credential
func (*ServiceUserService_Expecter) CreateSecret ¶
func (_e *ServiceUserService_Expecter) CreateSecret(ctx interface{}, credential interface{}) *ServiceUserService_CreateSecret_Call
CreateSecret is a helper method to define mock.On call
- ctx context.Context
- credential serviceuser.Credential
func (*ServiceUserService_Expecter) CreateToken ¶ added in v0.9.1
func (_e *ServiceUserService_Expecter) CreateToken(ctx interface{}, credential interface{}) *ServiceUserService_CreateToken_Call
CreateToken is a helper method to define mock.On call
- ctx context.Context
- credential serviceuser.Credential
func (*ServiceUserService_Expecter) Delete ¶
func (_e *ServiceUserService_Expecter) Delete(ctx interface{}, id interface{}) *ServiceUserService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ServiceUserService_Expecter) DeleteKey ¶
func (_e *ServiceUserService_Expecter) DeleteKey(ctx interface{}, credID interface{}) *ServiceUserService_DeleteKey_Call
DeleteKey is a helper method to define mock.On call
- ctx context.Context
- credID string
func (*ServiceUserService_Expecter) DeleteSecret ¶
func (_e *ServiceUserService_Expecter) DeleteSecret(ctx interface{}, credID interface{}) *ServiceUserService_DeleteSecret_Call
DeleteSecret is a helper method to define mock.On call
- ctx context.Context
- credID string
func (*ServiceUserService_Expecter) DeleteToken ¶ added in v0.9.1
func (_e *ServiceUserService_Expecter) DeleteToken(ctx interface{}, credID interface{}) *ServiceUserService_DeleteToken_Call
DeleteToken is a helper method to define mock.On call
- ctx context.Context
- credID string
func (*ServiceUserService_Expecter) Get ¶
func (_e *ServiceUserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceUserService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ServiceUserService_Expecter) GetByIDs ¶ added in v0.8.10
func (_e *ServiceUserService_Expecter) GetByIDs(ctx interface{}, ids interface{}) *ServiceUserService_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []string
func (*ServiceUserService_Expecter) GetKey ¶
func (_e *ServiceUserService_Expecter) GetKey(ctx interface{}, credID interface{}) *ServiceUserService_GetKey_Call
GetKey is a helper method to define mock.On call
- ctx context.Context
- credID string
func (*ServiceUserService_Expecter) IsSudo ¶ added in v0.8.0
func (_e *ServiceUserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *ServiceUserService_IsSudo_Call
IsSudo is a helper method to define mock.On call
- ctx context.Context
- id string
- permissionName string
func (*ServiceUserService_Expecter) List ¶
func (_e *ServiceUserService_Expecter) List(ctx interface{}, flt interface{}) *ServiceUserService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt serviceuser.Filter
func (*ServiceUserService_Expecter) ListByOrg ¶
func (_e *ServiceUserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}) *ServiceUserService_ListByOrg_Call
ListByOrg is a helper method to define mock.On call
- ctx context.Context
- orgID string
func (*ServiceUserService_Expecter) ListKeys ¶
func (_e *ServiceUserService_Expecter) ListKeys(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListKeys_Call
ListKeys is a helper method to define mock.On call
- ctx context.Context
- serviceUserID string
func (*ServiceUserService_Expecter) ListSecret ¶
func (_e *ServiceUserService_Expecter) ListSecret(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListSecret_Call
ListSecret is a helper method to define mock.On call
- ctx context.Context
- serviceUserID string
func (*ServiceUserService_Expecter) ListToken ¶ added in v0.9.1
func (_e *ServiceUserService_Expecter) ListToken(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListToken_Call
ListToken is a helper method to define mock.On call
- ctx context.Context
- serviceUserID string
func (*ServiceUserService_Expecter) Sudo ¶ added in v0.8.0
func (_e *ServiceUserService_Expecter) Sudo(ctx interface{}, id interface{}, relationName interface{}) *ServiceUserService_Sudo_Call
Sudo is a helper method to define mock.On call
- ctx context.Context
- id string
- relationName string
func (*ServiceUserService_Expecter) UnSudo ¶ added in v0.14.0
func (_e *ServiceUserService_Expecter) UnSudo(ctx interface{}, id interface{}) *ServiceUserService_UnSudo_Call
UnSudo is a helper method to define mock.On call
- ctx context.Context
- id string
type ServiceUserService_GetByIDs_Call ¶ added in v0.8.10
ServiceUserService_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*ServiceUserService_GetByIDs_Call) Return ¶ added in v0.8.10
func (_c *ServiceUserService_GetByIDs_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_GetByIDs_Call
func (*ServiceUserService_GetByIDs_Call) Run ¶ added in v0.8.10
func (_c *ServiceUserService_GetByIDs_Call) Run(run func(ctx context.Context, ids []string)) *ServiceUserService_GetByIDs_Call
func (*ServiceUserService_GetByIDs_Call) RunAndReturn ¶ added in v0.8.10
func (_c *ServiceUserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]serviceuser.ServiceUser, error)) *ServiceUserService_GetByIDs_Call
type ServiceUserService_GetKey_Call ¶
ServiceUserService_GetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKey'
func (*ServiceUserService_GetKey_Call) Return ¶
func (_c *ServiceUserService_GetKey_Call) Return(_a0 serviceuser.Credential, _a1 error) *ServiceUserService_GetKey_Call
func (*ServiceUserService_GetKey_Call) Run ¶
func (_c *ServiceUserService_GetKey_Call) Run(run func(ctx context.Context, credID string)) *ServiceUserService_GetKey_Call
func (*ServiceUserService_GetKey_Call) RunAndReturn ¶
func (_c *ServiceUserService_GetKey_Call) RunAndReturn(run func(context.Context, string) (serviceuser.Credential, error)) *ServiceUserService_GetKey_Call
type ServiceUserService_Get_Call ¶
ServiceUserService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ServiceUserService_Get_Call) Return ¶
func (_c *ServiceUserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Get_Call
func (*ServiceUserService_Get_Call) Run ¶
func (_c *ServiceUserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Get_Call
func (*ServiceUserService_Get_Call) RunAndReturn ¶
func (_c *ServiceUserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceUserService_Get_Call
type ServiceUserService_IsSudo_Call ¶ added in v0.8.0
ServiceUserService_IsSudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSudo'
func (*ServiceUserService_IsSudo_Call) Return ¶ added in v0.8.0
func (_c *ServiceUserService_IsSudo_Call) Return(_a0 bool, _a1 error) *ServiceUserService_IsSudo_Call
func (*ServiceUserService_IsSudo_Call) Run ¶ added in v0.8.0
func (_c *ServiceUserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *ServiceUserService_IsSudo_Call
func (*ServiceUserService_IsSudo_Call) RunAndReturn ¶ added in v0.8.0
func (_c *ServiceUserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *ServiceUserService_IsSudo_Call
type ServiceUserService_ListByOrg_Call ¶
ServiceUserService_ListByOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByOrg'
func (*ServiceUserService_ListByOrg_Call) Return ¶
func (_c *ServiceUserService_ListByOrg_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_ListByOrg_Call
func (*ServiceUserService_ListByOrg_Call) Run ¶
func (_c *ServiceUserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string)) *ServiceUserService_ListByOrg_Call
func (*ServiceUserService_ListByOrg_Call) RunAndReturn ¶
func (_c *ServiceUserService_ListByOrg_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.ServiceUser, error)) *ServiceUserService_ListByOrg_Call
type ServiceUserService_ListKeys_Call ¶
ServiceUserService_ListKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeys'
func (*ServiceUserService_ListKeys_Call) Return ¶
func (_c *ServiceUserService_ListKeys_Call) Return(_a0 []serviceuser.Credential, _a1 error) *ServiceUserService_ListKeys_Call
func (*ServiceUserService_ListKeys_Call) Run ¶
func (_c *ServiceUserService_ListKeys_Call) Run(run func(ctx context.Context, serviceUserID string)) *ServiceUserService_ListKeys_Call
func (*ServiceUserService_ListKeys_Call) RunAndReturn ¶
func (_c *ServiceUserService_ListKeys_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.Credential, error)) *ServiceUserService_ListKeys_Call
type ServiceUserService_ListSecret_Call ¶
ServiceUserService_ListSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSecret'
func (*ServiceUserService_ListSecret_Call) Return ¶
func (_c *ServiceUserService_ListSecret_Call) Return(_a0 []serviceuser.Credential, _a1 error) *ServiceUserService_ListSecret_Call
func (*ServiceUserService_ListSecret_Call) Run ¶
func (_c *ServiceUserService_ListSecret_Call) Run(run func(ctx context.Context, serviceUserID string)) *ServiceUserService_ListSecret_Call
func (*ServiceUserService_ListSecret_Call) RunAndReturn ¶
func (_c *ServiceUserService_ListSecret_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.Credential, error)) *ServiceUserService_ListSecret_Call
type ServiceUserService_ListToken_Call ¶ added in v0.9.1
ServiceUserService_ListToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListToken'
func (*ServiceUserService_ListToken_Call) Return ¶ added in v0.9.1
func (_c *ServiceUserService_ListToken_Call) Return(_a0 []serviceuser.Credential, _a1 error) *ServiceUserService_ListToken_Call
func (*ServiceUserService_ListToken_Call) Run ¶ added in v0.9.1
func (_c *ServiceUserService_ListToken_Call) Run(run func(ctx context.Context, serviceUserID string)) *ServiceUserService_ListToken_Call
func (*ServiceUserService_ListToken_Call) RunAndReturn ¶ added in v0.9.1
func (_c *ServiceUserService_ListToken_Call) RunAndReturn(run func(context.Context, string) ([]serviceuser.Credential, error)) *ServiceUserService_ListToken_Call
type ServiceUserService_List_Call ¶
ServiceUserService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ServiceUserService_List_Call) Return ¶
func (_c *ServiceUserService_List_Call) Return(_a0 []serviceuser.ServiceUser, _a1 error) *ServiceUserService_List_Call
func (*ServiceUserService_List_Call) Run ¶
func (_c *ServiceUserService_List_Call) Run(run func(ctx context.Context, flt serviceuser.Filter)) *ServiceUserService_List_Call
func (*ServiceUserService_List_Call) RunAndReturn ¶
func (_c *ServiceUserService_List_Call) RunAndReturn(run func(context.Context, serviceuser.Filter) ([]serviceuser.ServiceUser, error)) *ServiceUserService_List_Call
type ServiceUserService_Sudo_Call ¶ added in v0.8.0
ServiceUserService_Sudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sudo'
func (*ServiceUserService_Sudo_Call) Return ¶ added in v0.8.0
func (_c *ServiceUserService_Sudo_Call) Return(_a0 error) *ServiceUserService_Sudo_Call
func (*ServiceUserService_Sudo_Call) Run ¶ added in v0.8.0
func (_c *ServiceUserService_Sudo_Call) Run(run func(ctx context.Context, id string, relationName string)) *ServiceUserService_Sudo_Call
func (*ServiceUserService_Sudo_Call) RunAndReturn ¶ added in v0.8.0
func (_c *ServiceUserService_Sudo_Call) RunAndReturn(run func(context.Context, string, string) error) *ServiceUserService_Sudo_Call
type ServiceUserService_UnSudo_Call ¶ added in v0.14.0
ServiceUserService_UnSudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnSudo'
func (*ServiceUserService_UnSudo_Call) Return ¶ added in v0.14.0
func (_c *ServiceUserService_UnSudo_Call) Return(_a0 error) *ServiceUserService_UnSudo_Call
func (*ServiceUserService_UnSudo_Call) Run ¶ added in v0.14.0
func (_c *ServiceUserService_UnSudo_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_UnSudo_Call
func (*ServiceUserService_UnSudo_Call) RunAndReturn ¶ added in v0.14.0
func (_c *ServiceUserService_UnSudo_Call) RunAndReturn(run func(context.Context, string) error) *ServiceUserService_UnSudo_Call
type SessionService ¶
SessionService is an autogenerated mock type for the SessionService type
func NewSessionService ¶
func NewSessionService(t interface { mock.TestingT Cleanup(func()) }) *SessionService
NewSessionService creates a new instance of SessionService. 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 (*SessionService) EXPECT ¶
func (_m *SessionService) EXPECT() *SessionService_Expecter
func (*SessionService) ExtractFromContext ¶
ExtractFromContext provides a mock function with given fields: ctx
type SessionService_Create_Call ¶
SessionService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SessionService_Create_Call) Return ¶
func (_c *SessionService_Create_Call) Return(_a0 *session.Session, _a1 error) *SessionService_Create_Call
func (*SessionService_Create_Call) Run ¶
func (_c *SessionService_Create_Call) Run(run func(ctx context.Context, userID string)) *SessionService_Create_Call
func (*SessionService_Create_Call) RunAndReturn ¶
func (_c *SessionService_Create_Call) RunAndReturn(run func(context.Context, string) (*session.Session, error)) *SessionService_Create_Call
type SessionService_Delete_Call ¶
SessionService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*SessionService_Delete_Call) Return ¶
func (_c *SessionService_Delete_Call) Return(_a0 error) *SessionService_Delete_Call
func (*SessionService_Delete_Call) Run ¶
func (_c *SessionService_Delete_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *SessionService_Delete_Call
func (*SessionService_Delete_Call) RunAndReturn ¶
func (_c *SessionService_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *SessionService_Delete_Call
type SessionService_Expecter ¶
type SessionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SessionService_Expecter) Create ¶
func (_e *SessionService_Expecter) Create(ctx interface{}, userID interface{}) *SessionService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*SessionService_Expecter) Delete ¶
func (_e *SessionService_Expecter) Delete(ctx interface{}, sessionID interface{}) *SessionService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
func (*SessionService_Expecter) ExtractFromContext ¶
func (_e *SessionService_Expecter) ExtractFromContext(ctx interface{}) *SessionService_ExtractFromContext_Call
ExtractFromContext is a helper method to define mock.On call
- ctx context.Context
func (*SessionService_Expecter) Refresh ¶
func (_e *SessionService_Expecter) Refresh(ctx interface{}, sessionID interface{}) *SessionService_Refresh_Call
Refresh is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
type SessionService_ExtractFromContext_Call ¶
SessionService_ExtractFromContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtractFromContext'
func (*SessionService_ExtractFromContext_Call) Return ¶
func (_c *SessionService_ExtractFromContext_Call) Return(_a0 *session.Session, _a1 error) *SessionService_ExtractFromContext_Call
func (*SessionService_ExtractFromContext_Call) Run ¶
func (_c *SessionService_ExtractFromContext_Call) Run(run func(ctx context.Context)) *SessionService_ExtractFromContext_Call
func (*SessionService_ExtractFromContext_Call) RunAndReturn ¶
func (_c *SessionService_ExtractFromContext_Call) RunAndReturn(run func(context.Context) (*session.Session, error)) *SessionService_ExtractFromContext_Call
type SessionService_Refresh_Call ¶
SessionService_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'
func (*SessionService_Refresh_Call) Return ¶
func (_c *SessionService_Refresh_Call) Return(_a0 error) *SessionService_Refresh_Call
func (*SessionService_Refresh_Call) Run ¶
func (_c *SessionService_Refresh_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *SessionService_Refresh_Call
func (*SessionService_Refresh_Call) RunAndReturn ¶
func (_c *SessionService_Refresh_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *SessionService_Refresh_Call
type SubscriptionService ¶ added in v0.17.0
SubscriptionService is an autogenerated mock type for the SubscriptionService type
func NewSubscriptionService ¶ added in v0.17.0
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) Cancel ¶ added in v0.17.0
func (_m *SubscriptionService) Cancel(ctx context.Context, id string, immediate bool) (subscription.Subscription, error)
Cancel provides a mock function with given fields: ctx, id, immediate
func (*SubscriptionService) ChangePlan ¶ added in v0.17.0
func (_m *SubscriptionService) ChangePlan(ctx context.Context, id string, change subscription.ChangeRequest) (subscription.Phase, error)
ChangePlan provides a mock function with given fields: ctx, id, change
func (*SubscriptionService) EXPECT ¶ added in v0.17.0
func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
func (*SubscriptionService) GetByID ¶ added in v0.17.0
func (_m *SubscriptionService) GetByID(ctx context.Context, id string) (subscription.Subscription, error)
GetByID provides a mock function with given fields: ctx, id
func (*SubscriptionService) HasUserSubscribedBefore ¶ added in v0.17.0
func (_m *SubscriptionService) HasUserSubscribedBefore(ctx context.Context, customerID string, planID string) (bool, error)
HasUserSubscribedBefore provides a mock function with given fields: ctx, customerID, planID
func (*SubscriptionService) List ¶ added in v0.17.0
func (_m *SubscriptionService) List(ctx context.Context, filter subscription.Filter) ([]subscription.Subscription, error)
List provides a mock function with given fields: ctx, filter
type SubscriptionService_Cancel_Call ¶ added in v0.17.0
SubscriptionService_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'
func (*SubscriptionService_Cancel_Call) Return ¶ added in v0.17.0
func (_c *SubscriptionService_Cancel_Call) Return(_a0 subscription.Subscription, _a1 error) *SubscriptionService_Cancel_Call
func (*SubscriptionService_Cancel_Call) Run ¶ added in v0.17.0
func (_c *SubscriptionService_Cancel_Call) Run(run func(ctx context.Context, id string, immediate bool)) *SubscriptionService_Cancel_Call
func (*SubscriptionService_Cancel_Call) RunAndReturn ¶ added in v0.17.0
func (_c *SubscriptionService_Cancel_Call) RunAndReturn(run func(context.Context, string, bool) (subscription.Subscription, error)) *SubscriptionService_Cancel_Call
type SubscriptionService_ChangePlan_Call ¶ added in v0.17.0
SubscriptionService_ChangePlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangePlan'
func (*SubscriptionService_ChangePlan_Call) Return ¶ added in v0.17.0
func (_c *SubscriptionService_ChangePlan_Call) Return(_a0 subscription.Phase, _a1 error) *SubscriptionService_ChangePlan_Call
func (*SubscriptionService_ChangePlan_Call) Run ¶ added in v0.17.0
func (_c *SubscriptionService_ChangePlan_Call) Run(run func(ctx context.Context, id string, change subscription.ChangeRequest)) *SubscriptionService_ChangePlan_Call
func (*SubscriptionService_ChangePlan_Call) RunAndReturn ¶ added in v0.17.0
func (_c *SubscriptionService_ChangePlan_Call) RunAndReturn(run func(context.Context, string, subscription.ChangeRequest) (subscription.Phase, error)) *SubscriptionService_ChangePlan_Call
type SubscriptionService_Expecter ¶ added in v0.17.0
type SubscriptionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionService_Expecter) Cancel ¶ added in v0.17.0
func (_e *SubscriptionService_Expecter) Cancel(ctx interface{}, id interface{}, immediate interface{}) *SubscriptionService_Cancel_Call
Cancel is a helper method to define mock.On call
- ctx context.Context
- id string
- immediate bool
func (*SubscriptionService_Expecter) ChangePlan ¶ added in v0.17.0
func (_e *SubscriptionService_Expecter) ChangePlan(ctx interface{}, id interface{}, change interface{}) *SubscriptionService_ChangePlan_Call
ChangePlan is a helper method to define mock.On call
- ctx context.Context
- id string
- change subscription.ChangeRequest
func (*SubscriptionService_Expecter) GetByID ¶ added in v0.17.0
func (_e *SubscriptionService_Expecter) GetByID(ctx interface{}, id interface{}) *SubscriptionService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*SubscriptionService_Expecter) HasUserSubscribedBefore ¶ added in v0.17.0
func (_e *SubscriptionService_Expecter) HasUserSubscribedBefore(ctx interface{}, customerID interface{}, planID interface{}) *SubscriptionService_HasUserSubscribedBefore_Call
HasUserSubscribedBefore is a helper method to define mock.On call
- ctx context.Context
- customerID string
- planID string
func (*SubscriptionService_Expecter) List ¶ added in v0.17.0
func (_e *SubscriptionService_Expecter) List(ctx interface{}, filter interface{}) *SubscriptionService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter subscription.Filter
type SubscriptionService_GetByID_Call ¶ added in v0.17.0
SubscriptionService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*SubscriptionService_GetByID_Call) Return ¶ added in v0.17.0
func (_c *SubscriptionService_GetByID_Call) Return(_a0 subscription.Subscription, _a1 error) *SubscriptionService_GetByID_Call
func (*SubscriptionService_GetByID_Call) Run ¶ added in v0.17.0
func (_c *SubscriptionService_GetByID_Call) Run(run func(ctx context.Context, id string)) *SubscriptionService_GetByID_Call
func (*SubscriptionService_GetByID_Call) RunAndReturn ¶ added in v0.17.0
func (_c *SubscriptionService_GetByID_Call) RunAndReturn(run func(context.Context, string) (subscription.Subscription, error)) *SubscriptionService_GetByID_Call
type SubscriptionService_HasUserSubscribedBefore_Call ¶ added in v0.17.0
SubscriptionService_HasUserSubscribedBefore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasUserSubscribedBefore'
func (*SubscriptionService_HasUserSubscribedBefore_Call) Return ¶ added in v0.17.0
func (_c *SubscriptionService_HasUserSubscribedBefore_Call) Return(_a0 bool, _a1 error) *SubscriptionService_HasUserSubscribedBefore_Call
func (*SubscriptionService_HasUserSubscribedBefore_Call) Run ¶ added in v0.17.0
func (_c *SubscriptionService_HasUserSubscribedBefore_Call) Run(run func(ctx context.Context, customerID string, planID string)) *SubscriptionService_HasUserSubscribedBefore_Call
func (*SubscriptionService_HasUserSubscribedBefore_Call) RunAndReturn ¶ added in v0.17.0
func (_c *SubscriptionService_HasUserSubscribedBefore_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *SubscriptionService_HasUserSubscribedBefore_Call
type SubscriptionService_List_Call ¶ added in v0.17.0
SubscriptionService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SubscriptionService_List_Call) Return ¶ added in v0.17.0
func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) Run ¶ added in v0.17.0
func (_c *SubscriptionService_List_Call) Run(run func(ctx context.Context, filter subscription.Filter)) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) RunAndReturn ¶ added in v0.17.0
func (_c *SubscriptionService_List_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.Subscription, error)) *SubscriptionService_List_Call
type UsageService ¶ added in v0.17.0
UsageService is an autogenerated mock type for the UsageService type
func NewUsageService ¶ added in v0.17.0
func NewUsageService(t interface { mock.TestingT Cleanup(func()) }) *UsageService
NewUsageService creates a new instance of UsageService. 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 (*UsageService) EXPECT ¶ added in v0.17.0
func (_m *UsageService) EXPECT() *UsageService_Expecter
type UsageService_Expecter ¶ added in v0.17.0
type UsageService_Expecter struct {
// contains filtered or unexported fields
}
func (*UsageService_Expecter) Report ¶ added in v0.17.0
func (_e *UsageService_Expecter) Report(ctx interface{}, usages interface{}) *UsageService_Report_Call
Report is a helper method to define mock.On call
- ctx context.Context
- usages []usage.Usage
func (*UsageService_Expecter) Revert ¶ added in v0.17.0
func (_e *UsageService_Expecter) Revert(ctx interface{}, accountID interface{}, usageID interface{}, amount interface{}) *UsageService_Revert_Call
Revert is a helper method to define mock.On call
- ctx context.Context
- accountID string
- usageID string
- amount int64
type UsageService_Report_Call ¶ added in v0.17.0
UsageService_Report_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Report'
func (*UsageService_Report_Call) Return ¶ added in v0.17.0
func (_c *UsageService_Report_Call) Return(_a0 error) *UsageService_Report_Call
func (*UsageService_Report_Call) Run ¶ added in v0.17.0
func (_c *UsageService_Report_Call) Run(run func(ctx context.Context, usages []usage.Usage)) *UsageService_Report_Call
func (*UsageService_Report_Call) RunAndReturn ¶ added in v0.17.0
func (_c *UsageService_Report_Call) RunAndReturn(run func(context.Context, []usage.Usage) error) *UsageService_Report_Call
type UsageService_Revert_Call ¶ added in v0.17.0
UsageService_Revert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revert'
func (*UsageService_Revert_Call) Return ¶ added in v0.17.0
func (_c *UsageService_Revert_Call) Return(_a0 error) *UsageService_Revert_Call
func (*UsageService_Revert_Call) Run ¶ added in v0.17.0
func (_c *UsageService_Revert_Call) Run(run func(ctx context.Context, accountID string, usageID string, amount int64)) *UsageService_Revert_Call
func (*UsageService_Revert_Call) RunAndReturn ¶ added in v0.17.0
func (_c *UsageService_Revert_Call) RunAndReturn(run func(context.Context, string, string, int64) error) *UsageService_Revert_Call
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t interface { mock.TestingT Cleanup(func()) }) *UserService
NewUserService creates a new instance of UserService. 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 (*UserService) Disable ¶
func (_m *UserService) Disable(ctx context.Context, id string) error
Disable provides a mock function with given fields: ctx, id
func (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
func (*UserService) Enable ¶
func (_m *UserService) Enable(ctx context.Context, id string) error
Enable provides a mock function with given fields: ctx, id
func (*UserService) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
func (*UserService) IsSudo ¶
IsSudo provides a mock function with given fields: ctx, id, permissionName
func (*UserService) ListByGroup ¶
func (_m *UserService) ListByGroup(ctx context.Context, groupID string, roleFilter string) ([]user.User, error)
ListByGroup provides a mock function with given fields: ctx, groupID, roleFilter
func (*UserService) ListByOrg ¶
func (_m *UserService) ListByOrg(ctx context.Context, orgID string, roleFilter string) ([]user.User, error)
ListByOrg provides a mock function with given fields: ctx, orgID, roleFilter
func (*UserService) Sudo ¶ added in v0.8.0
Sudo provides a mock function with given fields: ctx, id, relationName
type UserService_Create_Call ¶
UserService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*UserService_Create_Call) Return ¶
func (_c *UserService_Create_Call) Return(_a0 user.User, _a1 error) *UserService_Create_Call
func (*UserService_Create_Call) Run ¶
func (_c *UserService_Create_Call) Run(run func(ctx context.Context, _a1 user.User)) *UserService_Create_Call
func (*UserService_Create_Call) RunAndReturn ¶
func (_c *UserService_Create_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_Create_Call
type UserService_Disable_Call ¶
UserService_Disable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disable'
func (*UserService_Disable_Call) Return ¶
func (_c *UserService_Disable_Call) Return(_a0 error) *UserService_Disable_Call
func (*UserService_Disable_Call) Run ¶
func (_c *UserService_Disable_Call) Run(run func(ctx context.Context, id string)) *UserService_Disable_Call
func (*UserService_Disable_Call) RunAndReturn ¶
func (_c *UserService_Disable_Call) RunAndReturn(run func(context.Context, string) error) *UserService_Disable_Call
type UserService_Enable_Call ¶
UserService_Enable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enable'
func (*UserService_Enable_Call) Return ¶
func (_c *UserService_Enable_Call) Return(_a0 error) *UserService_Enable_Call
func (*UserService_Enable_Call) Run ¶
func (_c *UserService_Enable_Call) Run(run func(ctx context.Context, id string)) *UserService_Enable_Call
func (*UserService_Enable_Call) RunAndReturn ¶
func (_c *UserService_Enable_Call) RunAndReturn(run func(context.Context, string) error) *UserService_Enable_Call
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) Create ¶
func (_e *UserService_Expecter) Create(ctx interface{}, _a1 interface{}) *UserService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 user.User
func (*UserService_Expecter) Disable ¶
func (_e *UserService_Expecter) Disable(ctx interface{}, id interface{}) *UserService_Disable_Call
Disable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UserService_Expecter) Enable ¶
func (_e *UserService_Expecter) Enable(ctx interface{}, id interface{}) *UserService_Enable_Call
Enable is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UserService_Expecter) GetByEmail ¶
func (_e *UserService_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserService_GetByEmail_Call
GetByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
func (*UserService_Expecter) GetByID ¶
func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UserService_Expecter) GetByIDs ¶
func (_e *UserService_Expecter) GetByIDs(ctx interface{}, userIDs interface{}) *UserService_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- userIDs []string
func (*UserService_Expecter) IsSudo ¶
func (_e *UserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *UserService_IsSudo_Call
IsSudo is a helper method to define mock.On call
- ctx context.Context
- id string
- permissionName string
func (*UserService_Expecter) List ¶
func (_e *UserService_Expecter) List(ctx interface{}, flt interface{}) *UserService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt user.Filter
func (*UserService_Expecter) ListByGroup ¶
func (_e *UserService_Expecter) ListByGroup(ctx interface{}, groupID interface{}, roleFilter interface{}) *UserService_ListByGroup_Call
ListByGroup is a helper method to define mock.On call
- ctx context.Context
- groupID string
- roleFilter string
func (*UserService_Expecter) ListByOrg ¶
func (_e *UserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}, roleFilter interface{}) *UserService_ListByOrg_Call
ListByOrg is a helper method to define mock.On call
- ctx context.Context
- orgID string
- roleFilter string
func (*UserService_Expecter) Sudo ¶ added in v0.8.0
func (_e *UserService_Expecter) Sudo(ctx interface{}, id interface{}, relationName interface{}) *UserService_Sudo_Call
Sudo is a helper method to define mock.On call
- ctx context.Context
- id string
- relationName string
func (*UserService_Expecter) UnSudo ¶ added in v0.14.0
func (_e *UserService_Expecter) UnSudo(ctx interface{}, id interface{}) *UserService_UnSudo_Call
UnSudo is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UserService_Expecter) Update ¶
func (_e *UserService_Expecter) Update(ctx interface{}, toUpdate interface{}) *UserService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- toUpdate user.User
type UserService_GetByEmail_Call ¶
UserService_GetByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByEmail'
func (*UserService_GetByEmail_Call) Return ¶
func (_c *UserService_GetByEmail_Call) Return(_a0 user.User, _a1 error) *UserService_GetByEmail_Call
func (*UserService_GetByEmail_Call) Run ¶
func (_c *UserService_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *UserService_GetByEmail_Call
func (*UserService_GetByEmail_Call) RunAndReturn ¶
func (_c *UserService_GetByEmail_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByEmail_Call
type UserService_GetByID_Call ¶
UserService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UserService_GetByID_Call) Return ¶
func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
func (*UserService_GetByID_Call) Run ¶
func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
func (*UserService_GetByID_Call) RunAndReturn ¶
func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
type UserService_GetByIDs_Call ¶
UserService_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*UserService_GetByIDs_Call) Return ¶
func (_c *UserService_GetByIDs_Call) Return(_a0 []user.User, _a1 error) *UserService_GetByIDs_Call
func (*UserService_GetByIDs_Call) Run ¶
func (_c *UserService_GetByIDs_Call) Run(run func(ctx context.Context, userIDs []string)) *UserService_GetByIDs_Call
func (*UserService_GetByIDs_Call) RunAndReturn ¶
func (_c *UserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]user.User, error)) *UserService_GetByIDs_Call
type UserService_IsSudo_Call ¶
UserService_IsSudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSudo'
func (*UserService_IsSudo_Call) Return ¶
func (_c *UserService_IsSudo_Call) Return(_a0 bool, _a1 error) *UserService_IsSudo_Call
func (*UserService_IsSudo_Call) Run ¶
func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call
func (*UserService_IsSudo_Call) RunAndReturn ¶
func (_c *UserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserService_IsSudo_Call
type UserService_ListByGroup_Call ¶
UserService_ListByGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByGroup'
func (*UserService_ListByGroup_Call) Return ¶
func (_c *UserService_ListByGroup_Call) Return(_a0 []user.User, _a1 error) *UserService_ListByGroup_Call
func (*UserService_ListByGroup_Call) Run ¶
func (_c *UserService_ListByGroup_Call) Run(run func(ctx context.Context, groupID string, roleFilter string)) *UserService_ListByGroup_Call
func (*UserService_ListByGroup_Call) RunAndReturn ¶
func (_c *UserService_ListByGroup_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *UserService_ListByGroup_Call
type UserService_ListByOrg_Call ¶
UserService_ListByOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByOrg'
func (*UserService_ListByOrg_Call) Return ¶
func (_c *UserService_ListByOrg_Call) Return(_a0 []user.User, _a1 error) *UserService_ListByOrg_Call
func (*UserService_ListByOrg_Call) Run ¶
func (_c *UserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string, roleFilter string)) *UserService_ListByOrg_Call
func (*UserService_ListByOrg_Call) RunAndReturn ¶
func (_c *UserService_ListByOrg_Call) RunAndReturn(run func(context.Context, string, string) ([]user.User, error)) *UserService_ListByOrg_Call
type UserService_List_Call ¶
UserService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*UserService_List_Call) Return ¶
func (_c *UserService_List_Call) Return(_a0 []user.User, _a1 error) *UserService_List_Call
func (*UserService_List_Call) Run ¶
func (_c *UserService_List_Call) Run(run func(ctx context.Context, flt user.Filter)) *UserService_List_Call
func (*UserService_List_Call) RunAndReturn ¶
func (_c *UserService_List_Call) RunAndReturn(run func(context.Context, user.Filter) ([]user.User, error)) *UserService_List_Call
type UserService_Sudo_Call ¶ added in v0.8.0
UserService_Sudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sudo'
func (*UserService_Sudo_Call) Return ¶ added in v0.8.0
func (_c *UserService_Sudo_Call) Return(_a0 error) *UserService_Sudo_Call
func (*UserService_Sudo_Call) Run ¶ added in v0.8.0
func (_c *UserService_Sudo_Call) Run(run func(ctx context.Context, id string, relationName string)) *UserService_Sudo_Call
func (*UserService_Sudo_Call) RunAndReturn ¶ added in v0.8.0
func (_c *UserService_Sudo_Call) RunAndReturn(run func(context.Context, string, string) error) *UserService_Sudo_Call
type UserService_UnSudo_Call ¶ added in v0.14.0
UserService_UnSudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnSudo'
func (*UserService_UnSudo_Call) Return ¶ added in v0.14.0
func (_c *UserService_UnSudo_Call) Return(_a0 error) *UserService_UnSudo_Call
func (*UserService_UnSudo_Call) Run ¶ added in v0.14.0
func (_c *UserService_UnSudo_Call) Run(run func(ctx context.Context, id string)) *UserService_UnSudo_Call
func (*UserService_UnSudo_Call) RunAndReturn ¶ added in v0.14.0
func (_c *UserService_UnSudo_Call) RunAndReturn(run func(context.Context, string) error) *UserService_UnSudo_Call
type UserService_Update_Call ¶
UserService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*UserService_Update_Call) Return ¶
func (_c *UserService_Update_Call) Return(_a0 user.User, _a1 error) *UserService_Update_Call
func (*UserService_Update_Call) Run ¶
func (_c *UserService_Update_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_Update_Call
func (*UserService_Update_Call) RunAndReturn ¶
func (_c *UserService_Update_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_Update_Call
type WebhookService ¶ added in v0.17.0
WebhookService is an autogenerated mock type for the WebhookService type
func NewWebhookService ¶ added in v0.17.0
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) CreateEndpoint ¶ added in v0.17.0
func (_m *WebhookService) CreateEndpoint(ctx context.Context, endpoint webhook.Endpoint) (webhook.Endpoint, error)
CreateEndpoint provides a mock function with given fields: ctx, endpoint
func (*WebhookService) DeleteEndpoint ¶ added in v0.17.0
func (_m *WebhookService) DeleteEndpoint(ctx context.Context, id string) error
DeleteEndpoint provides a mock function with given fields: ctx, id
func (*WebhookService) EXPECT ¶ added in v0.17.0
func (_m *WebhookService) EXPECT() *WebhookService_Expecter
func (*WebhookService) ListEndpoints ¶ added in v0.17.0
func (_m *WebhookService) ListEndpoints(ctx context.Context, filter webhook.EndpointFilter) ([]webhook.Endpoint, error)
ListEndpoints provides a mock function with given fields: ctx, filter
func (*WebhookService) UpdateEndpoint ¶ added in v0.17.0
func (_m *WebhookService) UpdateEndpoint(ctx context.Context, endpoint webhook.Endpoint) (webhook.Endpoint, error)
UpdateEndpoint provides a mock function with given fields: ctx, endpoint
type WebhookService_CreateEndpoint_Call ¶ added in v0.17.0
WebhookService_CreateEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEndpoint'
func (*WebhookService_CreateEndpoint_Call) Return ¶ added in v0.17.0
func (_c *WebhookService_CreateEndpoint_Call) Return(_a0 webhook.Endpoint, _a1 error) *WebhookService_CreateEndpoint_Call
func (*WebhookService_CreateEndpoint_Call) Run ¶ added in v0.17.0
func (_c *WebhookService_CreateEndpoint_Call) Run(run func(ctx context.Context, endpoint webhook.Endpoint)) *WebhookService_CreateEndpoint_Call
func (*WebhookService_CreateEndpoint_Call) RunAndReturn ¶ added in v0.17.0
func (_c *WebhookService_CreateEndpoint_Call) RunAndReturn(run func(context.Context, webhook.Endpoint) (webhook.Endpoint, error)) *WebhookService_CreateEndpoint_Call
type WebhookService_DeleteEndpoint_Call ¶ added in v0.17.0
WebhookService_DeleteEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEndpoint'
func (*WebhookService_DeleteEndpoint_Call) Return ¶ added in v0.17.0
func (_c *WebhookService_DeleteEndpoint_Call) Return(_a0 error) *WebhookService_DeleteEndpoint_Call
func (*WebhookService_DeleteEndpoint_Call) Run ¶ added in v0.17.0
func (_c *WebhookService_DeleteEndpoint_Call) Run(run func(ctx context.Context, id string)) *WebhookService_DeleteEndpoint_Call
func (*WebhookService_DeleteEndpoint_Call) RunAndReturn ¶ added in v0.17.0
func (_c *WebhookService_DeleteEndpoint_Call) RunAndReturn(run func(context.Context, string) error) *WebhookService_DeleteEndpoint_Call
type WebhookService_Expecter ¶ added in v0.17.0
type WebhookService_Expecter struct {
// contains filtered or unexported fields
}
func (*WebhookService_Expecter) CreateEndpoint ¶ added in v0.17.0
func (_e *WebhookService_Expecter) CreateEndpoint(ctx interface{}, endpoint interface{}) *WebhookService_CreateEndpoint_Call
CreateEndpoint is a helper method to define mock.On call
- ctx context.Context
- endpoint webhook.Endpoint
func (*WebhookService_Expecter) DeleteEndpoint ¶ added in v0.17.0
func (_e *WebhookService_Expecter) DeleteEndpoint(ctx interface{}, id interface{}) *WebhookService_DeleteEndpoint_Call
DeleteEndpoint is a helper method to define mock.On call
- ctx context.Context
- id string
func (*WebhookService_Expecter) ListEndpoints ¶ added in v0.17.0
func (_e *WebhookService_Expecter) ListEndpoints(ctx interface{}, filter interface{}) *WebhookService_ListEndpoints_Call
ListEndpoints is a helper method to define mock.On call
- ctx context.Context
- filter webhook.EndpointFilter
func (*WebhookService_Expecter) UpdateEndpoint ¶ added in v0.17.0
func (_e *WebhookService_Expecter) UpdateEndpoint(ctx interface{}, endpoint interface{}) *WebhookService_UpdateEndpoint_Call
UpdateEndpoint is a helper method to define mock.On call
- ctx context.Context
- endpoint webhook.Endpoint
type WebhookService_ListEndpoints_Call ¶ added in v0.17.0
WebhookService_ListEndpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEndpoints'
func (*WebhookService_ListEndpoints_Call) Return ¶ added in v0.17.0
func (_c *WebhookService_ListEndpoints_Call) Return(_a0 []webhook.Endpoint, _a1 error) *WebhookService_ListEndpoints_Call
func (*WebhookService_ListEndpoints_Call) Run ¶ added in v0.17.0
func (_c *WebhookService_ListEndpoints_Call) Run(run func(ctx context.Context, filter webhook.EndpointFilter)) *WebhookService_ListEndpoints_Call
func (*WebhookService_ListEndpoints_Call) RunAndReturn ¶ added in v0.17.0
func (_c *WebhookService_ListEndpoints_Call) RunAndReturn(run func(context.Context, webhook.EndpointFilter) ([]webhook.Endpoint, error)) *WebhookService_ListEndpoints_Call
type WebhookService_UpdateEndpoint_Call ¶ added in v0.17.0
WebhookService_UpdateEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEndpoint'
func (*WebhookService_UpdateEndpoint_Call) Return ¶ added in v0.17.0
func (_c *WebhookService_UpdateEndpoint_Call) Return(_a0 webhook.Endpoint, _a1 error) *WebhookService_UpdateEndpoint_Call
func (*WebhookService_UpdateEndpoint_Call) Run ¶ added in v0.17.0
func (_c *WebhookService_UpdateEndpoint_Call) Run(run func(ctx context.Context, endpoint webhook.Endpoint)) *WebhookService_UpdateEndpoint_Call
func (*WebhookService_UpdateEndpoint_Call) RunAndReturn ¶ added in v0.17.0
func (_c *WebhookService_UpdateEndpoint_Call) RunAndReturn(run func(context.Context, webhook.Endpoint) (webhook.Endpoint, error)) *WebhookService_UpdateEndpoint_Call
Source Files ¶
- audit_service.go
- authn_service.go
- bootstrap_service.go
- cascade_deleter.go
- checkout_service.go
- credit_service.go
- customer_service.go
- domain_service.go
- entitlement_service.go
- event_service.go
- group_service.go
- invitation_service.go
- invoice_service.go
- meta_schema_service.go
- namespace_service.go
- organization_service.go
- permission_service.go
- plan_service.go
- policy_service.go
- preference_service.go
- product_service.go
- project_service.go
- relation_service.go
- resource_service.go
- role_service.go
- service_user_service.go
- session_service.go
- subscription_service.go
- usage_service.go
- user_service.go
- webhook_service.go