Documentation ¶
Index ¶
- type ActionService
- func (_m *ActionService) Create(ctx context.Context, _a1 action.Action) (action.Action, error)
- func (_m *ActionService) EXPECT() *ActionService_Expecter
- func (_m *ActionService) Get(ctx context.Context, id string) (action.Action, error)
- func (_m *ActionService) List(ctx context.Context) ([]action.Action, error)
- func (_m *ActionService) Update(ctx context.Context, id string, _a2 action.Action) (action.Action, error)
- type ActionService_Create_Call
- func (_c *ActionService_Create_Call) Return(_a0 action.Action, _a1 error) *ActionService_Create_Call
- func (_c *ActionService_Create_Call) Run(run func(ctx context.Context, _a1 action.Action)) *ActionService_Create_Call
- func (_c *ActionService_Create_Call) RunAndReturn(run func(context.Context, action.Action) (action.Action, error)) *ActionService_Create_Call
- type ActionService_Expecter
- func (_e *ActionService_Expecter) Create(ctx interface{}, _a1 interface{}) *ActionService_Create_Call
- func (_e *ActionService_Expecter) Get(ctx interface{}, id interface{}) *ActionService_Get_Call
- func (_e *ActionService_Expecter) List(ctx interface{}) *ActionService_List_Call
- func (_e *ActionService_Expecter) Update(ctx interface{}, id interface{}, _a2 interface{}) *ActionService_Update_Call
- type ActionService_Get_Call
- func (_c *ActionService_Get_Call) Return(_a0 action.Action, _a1 error) *ActionService_Get_Call
- func (_c *ActionService_Get_Call) Run(run func(ctx context.Context, id string)) *ActionService_Get_Call
- func (_c *ActionService_Get_Call) RunAndReturn(run func(context.Context, string) (action.Action, error)) *ActionService_Get_Call
- type ActionService_List_Call
- func (_c *ActionService_List_Call) Return(_a0 []action.Action, _a1 error) *ActionService_List_Call
- func (_c *ActionService_List_Call) Run(run func(ctx context.Context)) *ActionService_List_Call
- func (_c *ActionService_List_Call) RunAndReturn(run func(context.Context) ([]action.Action, error)) *ActionService_List_Call
- type ActionService_Update_Call
- func (_c *ActionService_Update_Call) Return(_a0 action.Action, _a1 error) *ActionService_Update_Call
- func (_c *ActionService_Update_Call) Run(run func(ctx context.Context, id string, _a2 action.Action)) *ActionService_Update_Call
- func (_c *ActionService_Update_Call) RunAndReturn(run func(context.Context, string, action.Action) (action.Action, error)) *ActionService_Update_Call
- type ActivityService
- type ActivityService_Expecter
- type ActivityService_List_Call
- func (_c *ActivityService_List_Call) Return(_a0 activity.PagedActivity, _a1 error) *ActivityService_List_Call
- func (_c *ActivityService_List_Call) Run(run func(ctx context.Context, filter activity.Filter)) *ActivityService_List_Call
- func (_c *ActivityService_List_Call) RunAndReturn(run func(context.Context, activity.Filter) (activity.PagedActivity, error)) *ActivityService_List_Call
- type GroupService
- func (_m *GroupService) Create(ctx context.Context, grp group.Group) (group.Group, error)
- func (_m *GroupService) EXPECT() *GroupService_Expecter
- 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) ListGroupRelations(ctx context.Context, objectId string, subjectType string, role string) ([]user.User, []group.Group, map[string][]string, map[string][]string, error)
- func (_m *GroupService) ListUserGroups(ctx context.Context, userId string, roleId string) ([]group.Group, error)
- func (_m *GroupService) Update(ctx context.Context, grp group.Group) (group.Group, error)
- 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_Expecter
- func (_e *GroupService_Expecter) Create(ctx interface{}, grp interface{}) *GroupService_Create_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) ListGroupRelations(ctx interface{}, objectId interface{}, subjectType interface{}, ...) *GroupService_ListGroupRelations_Call
- func (_e *GroupService_Expecter) ListUserGroups(ctx interface{}, userId interface{}, roleId interface{}) *GroupService_ListUserGroups_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_ListGroupRelations_Call
- func (_c *GroupService_ListGroupRelations_Call) Return(_a0 []user.User, _a1 []group.Group, _a2 map[string][]string, ...) *GroupService_ListGroupRelations_Call
- func (_c *GroupService_ListGroupRelations_Call) Run(...) *GroupService_ListGroupRelations_Call
- func (_c *GroupService_ListGroupRelations_Call) RunAndReturn(...) *GroupService_ListGroupRelations_Call
- type GroupService_ListUserGroups_Call
- func (_c *GroupService_ListUserGroups_Call) Return(_a0 []group.Group, _a1 error) *GroupService_ListUserGroups_Call
- func (_c *GroupService_ListUserGroups_Call) Run(run func(ctx context.Context, userId string, roleId string)) *GroupService_ListUserGroups_Call
- func (_c *GroupService_ListUserGroups_Call) RunAndReturn(run func(context.Context, string, string) ([]group.Group, error)) *GroupService_ListUserGroups_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_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 NamespaceService
- func (_m *NamespaceService) Create(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- 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)
- type NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) Run(run func(ctx context.Context, ns namespace.Namespace)) *NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Create_Call
- type NamespaceService_Expecter
- func (_e *NamespaceService_Expecter) Create(ctx interface{}, ns interface{}) *NamespaceService_Create_Call
- 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
- 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 OrganizationService
- func (_m *OrganizationService) Create(ctx context.Context, org organization.Organization) (organization.Organization, error)
- func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
- func (_m *OrganizationService) Get(ctx context.Context, idOrSlug string) (organization.Organization, error)
- func (_m *OrganizationService) List(ctx context.Context) ([]organization.Organization, error)
- func (_m *OrganizationService) ListAdmins(ctx context.Context, id string) ([]user.User, error)
- func (_m *OrganizationService) Update(ctx context.Context, toUpdate organization.Organization) (organization.Organization, error)
- 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_Expecter
- func (_e *OrganizationService_Expecter) Create(ctx interface{}, org interface{}) *OrganizationService_Create_Call
- func (_e *OrganizationService_Expecter) Get(ctx interface{}, idOrSlug interface{}) *OrganizationService_Get_Call
- func (_e *OrganizationService_Expecter) List(ctx interface{}) *OrganizationService_List_Call
- func (_e *OrganizationService_Expecter) ListAdmins(ctx interface{}, id interface{}) *OrganizationService_ListAdmins_Call
- func (_e *OrganizationService_Expecter) Update(ctx interface{}, toUpdate interface{}) *OrganizationService_Update_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_ListAdmins_Call
- func (_c *OrganizationService_ListAdmins_Call) Return(_a0 []user.User, _a1 error) *OrganizationService_ListAdmins_Call
- func (_c *OrganizationService_ListAdmins_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_ListAdmins_Call
- func (_c *OrganizationService_ListAdmins_Call) RunAndReturn(run func(context.Context, string) ([]user.User, error)) *OrganizationService_ListAdmins_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)) *OrganizationService_List_Call
- func (_c *OrganizationService_List_Call) RunAndReturn(run func(context.Context) ([]organization.Organization, error)) *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 PolicyService
- func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) ([]policy.Policy, 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) ([]policy.Policy, error)
- func (_m *PolicyService) Update(ctx context.Context, pol policy.Policy) ([]policy.Policy, 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_Expecter
- func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Get(ctx interface{}, id interface{}) *PolicyService_Get_Call
- func (_e *PolicyService_Expecter) List(ctx interface{}) *PolicyService_List_Call
- func (_e *PolicyService_Expecter) Update(ctx interface{}, pol interface{}) *PolicyService_Update_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_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)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context) ([]policy.Policy, error)) *PolicyService_List_Call
- type PolicyService_Update_Call
- func (_c *PolicyService_Update_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_Update_Call
- func (_c *PolicyService_Update_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Update_Call
- func (_c *PolicyService_Update_Call) RunAndReturn(run func(context.Context, policy.Policy) ([]policy.Policy, error)) *PolicyService_Update_Call
- type ProjectService
- func (_m *ProjectService) Create(ctx context.Context, prj project.Project) (project.Project, error)
- func (_m *ProjectService) EXPECT() *ProjectService_Expecter
- func (_m *ProjectService) Get(ctx context.Context, idOrSlugd string) (project.Project, error)
- func (_m *ProjectService) List(ctx context.Context) ([]project.Project, error)
- func (_m *ProjectService) ListAdmins(ctx context.Context, id 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_Expecter
- func (_e *ProjectService_Expecter) Create(ctx interface{}, prj interface{}) *ProjectService_Create_Call
- func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrSlugd interface{}) *ProjectService_Get_Call
- func (_e *ProjectService_Expecter) List(ctx interface{}) *ProjectService_List_Call
- func (_e *ProjectService_Expecter) ListAdmins(ctx interface{}, id interface{}) *ProjectService_ListAdmins_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, idOrSlugd string)) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
- type ProjectService_ListAdmins_Call
- func (_c *ProjectService_ListAdmins_Call) Return(_a0 []user.User, _a1 error) *ProjectService_ListAdmins_Call
- func (_c *ProjectService_ListAdmins_Call) Run(run func(ctx context.Context, id string)) *ProjectService_ListAdmins_Call
- func (_c *ProjectService_ListAdmins_Call) RunAndReturn(run func(context.Context, string) ([]user.User, error)) *ProjectService_ListAdmins_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)) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context) ([]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.RelationV2) (relation.RelationV2, error)
- func (_m *RelationService) DeleteV2(ctx context.Context, rel relation.RelationV2) error
- func (_m *RelationService) EXPECT() *RelationService_Expecter
- func (_m *RelationService) Get(ctx context.Context, id string) (relation.RelationV2, error)
- func (_m *RelationService) GetRelationByFields(ctx context.Context, rel relation.RelationV2) (relation.RelationV2, error)
- func (_m *RelationService) List(ctx context.Context) ([]relation.RelationV2, error)
- type RelationService_Create_Call
- func (_c *RelationService_Create_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_Create_Call
- type RelationService_DeleteV2_Call
- func (_c *RelationService_DeleteV2_Call) Return(_a0 error) *RelationService_DeleteV2_Call
- func (_c *RelationService_DeleteV2_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_DeleteV2_Call
- func (_c *RelationService_DeleteV2_Call) RunAndReturn(run func(context.Context, relation.RelationV2) error) *RelationService_DeleteV2_Call
- type RelationService_Expecter
- func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
- func (_e *RelationService_Expecter) DeleteV2(ctx interface{}, rel interface{}) *RelationService_DeleteV2_Call
- func (_e *RelationService_Expecter) Get(ctx interface{}, id interface{}) *RelationService_Get_Call
- func (_e *RelationService_Expecter) GetRelationByFields(ctx interface{}, rel interface{}) *RelationService_GetRelationByFields_Call
- func (_e *RelationService_Expecter) List(ctx interface{}) *RelationService_List_Call
- type RelationService_GetRelationByFields_Call
- func (_c *RelationService_GetRelationByFields_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_GetRelationByFields_Call
- func (_c *RelationService_GetRelationByFields_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_GetRelationByFields_Call
- func (_c *RelationService_GetRelationByFields_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_GetRelationByFields_Call
- type RelationService_Get_Call
- func (_c *RelationService_Get_Call) Return(_a0 relation.RelationV2, _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.RelationV2, error)) *RelationService_Get_Call
- type RelationService_List_Call
- func (_c *RelationService_List_Call) Return(_a0 []relation.RelationV2, _a1 error) *RelationService_List_Call
- func (_c *RelationService_List_Call) Run(run func(ctx context.Context)) *RelationService_List_Call
- func (_c *RelationService_List_Call) RunAndReturn(run func(context.Context) ([]relation.RelationV2, error)) *RelationService_List_Call
- type RelationTransformer
- type RelationTransformer_Expecter
- type RelationTransformer_TransformRelation_Call
- func (_c *RelationTransformer_TransformRelation_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationTransformer_TransformRelation_Call
- func (_c *RelationTransformer_TransformRelation_Call) Run(run func(ctx context.Context, rlt relation.RelationV2)) *RelationTransformer_TransformRelation_Call
- func (_c *RelationTransformer_TransformRelation_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationTransformer_TransformRelation_Call
- type ResourceService
- func (_m *ResourceService) CheckAuthz(ctx context.Context, _a1 resource.Resource, _a2 action.Action) (bool, error)
- func (_m *ResourceService) Create(ctx context.Context, _a1 resource.Resource) (resource.Resource, 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.PagedResources, error)
- func (_m *ResourceService) Update(ctx context.Context, id string, _a2 resource.Resource) (resource.Resource, error)
- 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, _a1 resource.Resource, _a2 action.Action)) *ResourceService_CheckAuthz_Call
- func (_c *ResourceService_CheckAuthz_Call) RunAndReturn(run func(context.Context, resource.Resource, action.Action) (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_Expecter
- func (_e *ResourceService_Expecter) CheckAuthz(ctx interface{}, _a1 interface{}, _a2 interface{}) *ResourceService_CheckAuthz_Call
- func (_e *ResourceService_Expecter) Create(ctx interface{}, _a1 interface{}) *ResourceService_Create_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{}, id interface{}, _a2 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.PagedResources, _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.PagedResources, 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, id string, _a2 resource.Resource)) *ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) RunAndReturn(...) *ResourceService_Update_Call
- type RoleService
- func (_m *RoleService) Create(ctx context.Context, toCreate role.Role) (role.Role, 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) ([]role.Role, error)
- func (_m *RoleService) Update(ctx context.Context, toUpdate role.Role) (role.Role, error)
- type RoleService_Create_Call
- func (_c *RoleService_Create_Call) Return(_a0 role.Role, _a1 error) *RoleService_Create_Call
- func (_c *RoleService_Create_Call) Run(run func(ctx context.Context, toCreate role.Role)) *RoleService_Create_Call
- func (_c *RoleService_Create_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Create_Call
- type RoleService_Expecter
- func (_e *RoleService_Expecter) Create(ctx interface{}, toCreate interface{}) *RoleService_Create_Call
- func (_e *RoleService_Expecter) Get(ctx interface{}, id interface{}) *RoleService_Get_Call
- func (_e *RoleService_Expecter) List(ctx interface{}) *RoleService_List_Call
- func (_e *RoleService_Expecter) Update(ctx interface{}, toUpdate interface{}) *RoleService_Update_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
- 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 RuleService
- type RuleService_Expecter
- type RuleService_GetAllConfigs_Call
- func (_c *RuleService_GetAllConfigs_Call) Return(_a0 []rule.Ruleset, _a1 error) *RuleService_GetAllConfigs_Call
- func (_c *RuleService_GetAllConfigs_Call) Run(run func(ctx context.Context)) *RuleService_GetAllConfigs_Call
- func (_c *RuleService_GetAllConfigs_Call) RunAndReturn(run func(context.Context) ([]rule.Ruleset, error)) *RuleService_GetAllConfigs_Call
- type UserService
- func (_m *UserService) Create(ctx context.Context, _a1 user.User) (user.User, error)
- func (_m *UserService) CreateMetadataKey(ctx context.Context, key user.UserMetadataKey) (user.UserMetadataKey, error)
- func (_m *UserService) EXPECT() *UserService_Expecter
- func (_m *UserService) FetchCurrentUser(ctx context.Context) (user.User, error)
- func (_m *UserService) Get(ctx context.Context, idOrEmail string) (user.User, error)
- func (_m *UserService) GetByEmail(ctx context.Context, email string) (user.User, error)
- func (_m *UserService) GetByIDs(ctx context.Context, userIDs []string) ([]user.User, error)
- func (_m *UserService) List(ctx context.Context, flt user.Filter) (user.PagedUsers, error)
- func (_m *UserService) UpdateByEmail(ctx context.Context, toUpdate user.User) (user.User, error)
- func (_m *UserService) UpdateByID(ctx context.Context, toUpdate user.User) (user.User, error)
- type UserService_CreateMetadataKey_Call
- func (_c *UserService_CreateMetadataKey_Call) Return(_a0 user.UserMetadataKey, _a1 error) *UserService_CreateMetadataKey_Call
- func (_c *UserService_CreateMetadataKey_Call) Run(run func(ctx context.Context, key user.UserMetadataKey)) *UserService_CreateMetadataKey_Call
- func (_c *UserService_CreateMetadataKey_Call) RunAndReturn(run func(context.Context, user.UserMetadataKey) (user.UserMetadataKey, error)) *UserService_CreateMetadataKey_Call
- 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_Expecter
- func (_e *UserService_Expecter) Create(ctx interface{}, _a1 interface{}) *UserService_Create_Call
- func (_e *UserService_Expecter) CreateMetadataKey(ctx interface{}, key interface{}) *UserService_CreateMetadataKey_Call
- func (_e *UserService_Expecter) FetchCurrentUser(ctx interface{}) *UserService_FetchCurrentUser_Call
- func (_e *UserService_Expecter) Get(ctx interface{}, idOrEmail interface{}) *UserService_Get_Call
- func (_e *UserService_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserService_GetByEmail_Call
- func (_e *UserService_Expecter) GetByIDs(ctx interface{}, userIDs interface{}) *UserService_GetByIDs_Call
- func (_e *UserService_Expecter) List(ctx interface{}, flt interface{}) *UserService_List_Call
- func (_e *UserService_Expecter) UpdateByEmail(ctx interface{}, toUpdate interface{}) *UserService_UpdateByEmail_Call
- func (_e *UserService_Expecter) UpdateByID(ctx interface{}, toUpdate interface{}) *UserService_UpdateByID_Call
- type UserService_FetchCurrentUser_Call
- func (_c *UserService_FetchCurrentUser_Call) Return(_a0 user.User, _a1 error) *UserService_FetchCurrentUser_Call
- func (_c *UserService_FetchCurrentUser_Call) Run(run func(ctx context.Context)) *UserService_FetchCurrentUser_Call
- func (_c *UserService_FetchCurrentUser_Call) RunAndReturn(run func(context.Context) (user.User, error)) *UserService_FetchCurrentUser_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_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_Get_Call
- func (_c *UserService_Get_Call) Return(_a0 user.User, _a1 error) *UserService_Get_Call
- func (_c *UserService_Get_Call) Run(run func(ctx context.Context, idOrEmail string)) *UserService_Get_Call
- func (_c *UserService_Get_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_Get_Call
- type UserService_List_Call
- func (_c *UserService_List_Call) Return(_a0 user.PagedUsers, _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.PagedUsers, error)) *UserService_List_Call
- type UserService_UpdateByEmail_Call
- func (_c *UserService_UpdateByEmail_Call) Return(_a0 user.User, _a1 error) *UserService_UpdateByEmail_Call
- func (_c *UserService_UpdateByEmail_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_UpdateByEmail_Call
- func (_c *UserService_UpdateByEmail_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_UpdateByEmail_Call
- type UserService_UpdateByID_Call
- func (_c *UserService_UpdateByID_Call) Return(_a0 user.User, _a1 error) *UserService_UpdateByID_Call
- func (_c *UserService_UpdateByID_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_UpdateByID_Call
- func (_c *UserService_UpdateByID_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_UpdateByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionService ¶
ActionService is an autogenerated mock type for the ActionService type
func NewActionService ¶
func NewActionService(t interface { mock.TestingT Cleanup(func()) }) *ActionService
NewActionService creates a new instance of ActionService. 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 (*ActionService) EXPECT ¶
func (_m *ActionService) EXPECT() *ActionService_Expecter
type ActionService_Create_Call ¶
ActionService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ActionService_Create_Call) Return ¶
func (_c *ActionService_Create_Call) Return(_a0 action.Action, _a1 error) *ActionService_Create_Call
func (*ActionService_Create_Call) Run ¶
func (_c *ActionService_Create_Call) Run(run func(ctx context.Context, _a1 action.Action)) *ActionService_Create_Call
func (*ActionService_Create_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ActionService_Create_Call) RunAndReturn(run func(context.Context, action.Action) (action.Action, error)) *ActionService_Create_Call
type ActionService_Expecter ¶
type ActionService_Expecter struct {
// contains filtered or unexported fields
}
func (*ActionService_Expecter) Create ¶
func (_e *ActionService_Expecter) Create(ctx interface{}, _a1 interface{}) *ActionService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 action.Action
func (*ActionService_Expecter) Get ¶
func (_e *ActionService_Expecter) Get(ctx interface{}, id interface{}) *ActionService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ActionService_Expecter) List ¶
func (_e *ActionService_Expecter) List(ctx interface{}) *ActionService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*ActionService_Expecter) Update ¶
func (_e *ActionService_Expecter) Update(ctx interface{}, id interface{}, _a2 interface{}) *ActionService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id string
- _a2 action.Action
type ActionService_Get_Call ¶
ActionService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ActionService_Get_Call) Return ¶
func (_c *ActionService_Get_Call) Return(_a0 action.Action, _a1 error) *ActionService_Get_Call
func (*ActionService_Get_Call) Run ¶
func (_c *ActionService_Get_Call) Run(run func(ctx context.Context, id string)) *ActionService_Get_Call
func (*ActionService_Get_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ActionService_Get_Call) RunAndReturn(run func(context.Context, string) (action.Action, error)) *ActionService_Get_Call
type ActionService_List_Call ¶
ActionService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ActionService_List_Call) Return ¶
func (_c *ActionService_List_Call) Return(_a0 []action.Action, _a1 error) *ActionService_List_Call
func (*ActionService_List_Call) Run ¶
func (_c *ActionService_List_Call) Run(run func(ctx context.Context)) *ActionService_List_Call
func (*ActionService_List_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ActionService_List_Call) RunAndReturn(run func(context.Context) ([]action.Action, error)) *ActionService_List_Call
type ActionService_Update_Call ¶
ActionService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ActionService_Update_Call) Return ¶
func (_c *ActionService_Update_Call) Return(_a0 action.Action, _a1 error) *ActionService_Update_Call
func (*ActionService_Update_Call) Run ¶
func (_c *ActionService_Update_Call) Run(run func(ctx context.Context, id string, _a2 action.Action)) *ActionService_Update_Call
func (*ActionService_Update_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ActionService_Update_Call) RunAndReturn(run func(context.Context, string, action.Action) (action.Action, error)) *ActionService_Update_Call
type ActivityService ¶ added in v0.6.17
ActivityService is an autogenerated mock type for the ActivityService type
func NewActivityService ¶ added in v0.6.17
func NewActivityService(t interface { mock.TestingT Cleanup(func()) }) *ActivityService
NewActivityService creates a new instance of ActivityService. 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 (*ActivityService) EXPECT ¶ added in v0.6.17
func (_m *ActivityService) EXPECT() *ActivityService_Expecter
func (*ActivityService) List ¶ added in v0.6.17
func (_m *ActivityService) List(ctx context.Context, filter activity.Filter) (activity.PagedActivity, error)
List provides a mock function with given fields: ctx, filter
type ActivityService_Expecter ¶ added in v0.6.17
type ActivityService_Expecter struct {
// contains filtered or unexported fields
}
func (*ActivityService_Expecter) List ¶ added in v0.6.17
func (_e *ActivityService_Expecter) List(ctx interface{}, filter interface{}) *ActivityService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter activity.Filter
type ActivityService_List_Call ¶ added in v0.6.17
ActivityService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ActivityService_List_Call) Return ¶ added in v0.6.17
func (_c *ActivityService_List_Call) Return(_a0 activity.PagedActivity, _a1 error) *ActivityService_List_Call
func (*ActivityService_List_Call) Run ¶ added in v0.6.17
func (_c *ActivityService_List_Call) Run(run func(ctx context.Context, filter activity.Filter)) *ActivityService_List_Call
func (*ActivityService_List_Call) RunAndReturn ¶ added in v0.6.17
func (_c *ActivityService_List_Call) RunAndReturn(run func(context.Context, activity.Filter) (activity.PagedActivity, error)) *ActivityService_List_Call
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) EXPECT ¶
func (_m *GroupService) EXPECT() *GroupService_Expecter
func (*GroupService) ListGroupRelations ¶
func (_m *GroupService) ListGroupRelations(ctx context.Context, objectId string, subjectType string, role string) ([]user.User, []group.Group, map[string][]string, map[string][]string, error)
ListGroupRelations provides a mock function with given fields: ctx, objectId, subjectType, role
func (*GroupService) ListUserGroups ¶
func (_m *GroupService) ListUserGroups(ctx context.Context, userId string, roleId string) ([]group.Group, error)
ListUserGroups provides a mock function with given fields: ctx, userId, roleId
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 ¶ added in v0.6.5
func (_c *GroupService_Create_Call) RunAndReturn(run func(context.Context, group.Group) (group.Group, error)) *GroupService_Create_Call
type GroupService_Expecter ¶
type GroupService_Expecter struct {
// contains filtered or unexported fields
}
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) 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) ListGroupRelations ¶
func (_e *GroupService_Expecter) ListGroupRelations(ctx interface{}, objectId interface{}, subjectType interface{}, role interface{}) *GroupService_ListGroupRelations_Call
ListGroupRelations is a helper method to define mock.On call
- ctx context.Context
- objectId string
- subjectType string
- role string
func (*GroupService_Expecter) ListUserGroups ¶
func (_e *GroupService_Expecter) ListUserGroups(ctx interface{}, userId interface{}, roleId interface{}) *GroupService_ListUserGroups_Call
ListUserGroups is a helper method to define mock.On call
- ctx context.Context
- userId string
- roleId 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 ¶ added in v0.6.5
func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
type GroupService_ListGroupRelations_Call ¶
GroupService_ListGroupRelations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroupRelations'
func (*GroupService_ListGroupRelations_Call) Run ¶
func (_c *GroupService_ListGroupRelations_Call) Run(run func(ctx context.Context, objectId string, subjectType string, role string)) *GroupService_ListGroupRelations_Call
func (*GroupService_ListGroupRelations_Call) RunAndReturn ¶ added in v0.6.5
type GroupService_ListUserGroups_Call ¶
GroupService_ListUserGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserGroups'
func (*GroupService_ListUserGroups_Call) Return ¶
func (_c *GroupService_ListUserGroups_Call) Return(_a0 []group.Group, _a1 error) *GroupService_ListUserGroups_Call
func (*GroupService_ListUserGroups_Call) Run ¶
func (_c *GroupService_ListUserGroups_Call) Run(run func(ctx context.Context, userId string, roleId string)) *GroupService_ListUserGroups_Call
func (*GroupService_ListUserGroups_Call) RunAndReturn ¶ added in v0.6.5
func (_c *GroupService_ListUserGroups_Call) RunAndReturn(run func(context.Context, string, string) ([]group.Group, error)) *GroupService_ListUserGroups_Call
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 ¶ added in v0.6.5
func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_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 ¶ added in v0.6.5
func (_c *GroupService_Update_Call) RunAndReturn(run func(context.Context, group.Group) (group.Group, error)) *GroupService_Update_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) Create ¶
func (_m *NamespaceService) Create(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
Create provides a mock function with given fields: ctx, ns
func (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Create_Call ¶
NamespaceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*NamespaceService_Create_Call) Return ¶
func (_c *NamespaceService_Create_Call) Return(_a0 namespace.Namespace, _a1 error) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) Run ¶
func (_c *NamespaceService_Create_Call) Run(run func(ctx context.Context, ns namespace.Namespace)) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) RunAndReturn ¶ added in v0.6.5
func (_c *NamespaceService_Create_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Create_Call
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) Create ¶
func (_e *NamespaceService_Expecter) Create(ctx interface{}, ns interface{}) *NamespaceService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- ns namespace.Namespace
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
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 ¶ added in v0.6.5
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 ¶ added in v0.6.5
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 ¶ added in v0.6.5
func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, namespace.Namespace) (namespace.Namespace, error)) *NamespaceService_Update_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) 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) EXPECT ¶
func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
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) List ¶
func (_m *OrganizationService) List(ctx context.Context) ([]organization.Organization, error)
List provides a mock function with given fields: ctx
func (*OrganizationService) ListAdmins ¶
ListAdmins provides a mock function with given fields: ctx, id
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_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 ¶ added in v0.6.5
func (_c *OrganizationService_Create_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *OrganizationService_Create_Call
type OrganizationService_Expecter ¶
type OrganizationService_Expecter struct {
// contains filtered or unexported fields
}
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) 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) List ¶
func (_e *OrganizationService_Expecter) List(ctx interface{}) *OrganizationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*OrganizationService_Expecter) ListAdmins ¶
func (_e *OrganizationService_Expecter) ListAdmins(ctx interface{}, id interface{}) *OrganizationService_ListAdmins_Call
ListAdmins is a helper method to define mock.On call
- ctx context.Context
- id string
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_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 ¶ added in v0.6.5
func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
type OrganizationService_ListAdmins_Call ¶
OrganizationService_ListAdmins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAdmins'
func (*OrganizationService_ListAdmins_Call) Return ¶
func (_c *OrganizationService_ListAdmins_Call) Return(_a0 []user.User, _a1 error) *OrganizationService_ListAdmins_Call
func (*OrganizationService_ListAdmins_Call) Run ¶
func (_c *OrganizationService_ListAdmins_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_ListAdmins_Call
func (*OrganizationService_ListAdmins_Call) RunAndReturn ¶ added in v0.6.5
func (_c *OrganizationService_ListAdmins_Call) RunAndReturn(run func(context.Context, string) ([]user.User, error)) *OrganizationService_ListAdmins_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)) *OrganizationService_List_Call
func (*OrganizationService_List_Call) RunAndReturn ¶ added in v0.6.5
func (_c *OrganizationService_List_Call) RunAndReturn(run func(context.Context) ([]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 ¶ added in v0.6.5
func (_c *OrganizationService_Update_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *OrganizationService_Update_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) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
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 ¶ added in v0.6.5
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) ([]policy.Policy, error)) *PolicyService_Create_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) 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{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*PolicyService_Expecter) Update ¶
func (_e *PolicyService_Expecter) Update(ctx interface{}, pol interface{}) *PolicyService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- pol policy.Policy
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 ¶ added in v0.6.5
func (_c *PolicyService_Get_Call) RunAndReturn(run func(context.Context, string) (policy.Policy, error)) *PolicyService_Get_Call
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)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶ added in v0.6.5
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context) ([]policy.Policy, error)) *PolicyService_List_Call
type PolicyService_Update_Call ¶
PolicyService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*PolicyService_Update_Call) Return ¶
func (_c *PolicyService_Update_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_Update_Call
func (*PolicyService_Update_Call) Run ¶
func (_c *PolicyService_Update_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Update_Call
func (*PolicyService_Update_Call) RunAndReturn ¶ added in v0.6.5
func (_c *PolicyService_Update_Call) RunAndReturn(run func(context.Context, policy.Policy) ([]policy.Policy, error)) *PolicyService_Update_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) EXPECT ¶
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
func (*ProjectService) ListAdmins ¶
ListAdmins provides a mock function with given fields: ctx, id
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 ¶ added in v0.6.5
func (_c *ProjectService_Create_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *ProjectService_Create_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) Get ¶
func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrSlugd interface{}) *ProjectService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrSlugd string
func (*ProjectService_Expecter) List ¶
func (_e *ProjectService_Expecter) List(ctx interface{}) *ProjectService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*ProjectService_Expecter) ListAdmins ¶
func (_e *ProjectService_Expecter) ListAdmins(ctx interface{}, id interface{}) *ProjectService_ListAdmins_Call
ListAdmins is a helper method to define mock.On call
- ctx context.Context
- id 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, idOrSlugd string)) *ProjectService_Get_Call
func (*ProjectService_Get_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
type ProjectService_ListAdmins_Call ¶
ProjectService_ListAdmins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAdmins'
func (*ProjectService_ListAdmins_Call) Return ¶
func (_c *ProjectService_ListAdmins_Call) Return(_a0 []user.User, _a1 error) *ProjectService_ListAdmins_Call
func (*ProjectService_ListAdmins_Call) Run ¶
func (_c *ProjectService_ListAdmins_Call) Run(run func(ctx context.Context, id string)) *ProjectService_ListAdmins_Call
func (*ProjectService_ListAdmins_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ProjectService_ListAdmins_Call) RunAndReturn(run func(context.Context, string) ([]user.User, error)) *ProjectService_ListAdmins_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)) *ProjectService_List_Call
func (*ProjectService_List_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context) ([]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 ¶ added in v0.6.5
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.RelationV2) (relation.RelationV2, error)
Create provides a mock function with given fields: ctx, rel
func (*RelationService) DeleteV2 ¶
func (_m *RelationService) DeleteV2(ctx context.Context, rel relation.RelationV2) error
DeleteV2 provides a mock function with given fields: ctx, rel
func (*RelationService) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
func (*RelationService) Get ¶
func (_m *RelationService) Get(ctx context.Context, id string) (relation.RelationV2, error)
Get provides a mock function with given fields: ctx, id
func (*RelationService) GetRelationByFields ¶
func (_m *RelationService) GetRelationByFields(ctx context.Context, rel relation.RelationV2) (relation.RelationV2, error)
GetRelationByFields provides a mock function with given fields: ctx, rel
func (*RelationService) List ¶
func (_m *RelationService) List(ctx context.Context) ([]relation.RelationV2, error)
List provides a mock function with given fields: ctx
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.RelationV2, _a1 error) *RelationService_Create_Call
func (*RelationService_Create_Call) Run ¶
func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_Create_Call
func (*RelationService_Create_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_Create_Call
type RelationService_DeleteV2_Call ¶
RelationService_DeleteV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteV2'
func (*RelationService_DeleteV2_Call) Return ¶
func (_c *RelationService_DeleteV2_Call) Return(_a0 error) *RelationService_DeleteV2_Call
func (*RelationService_DeleteV2_Call) Run ¶
func (_c *RelationService_DeleteV2_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_DeleteV2_Call
func (*RelationService_DeleteV2_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationService_DeleteV2_Call) RunAndReturn(run func(context.Context, relation.RelationV2) error) *RelationService_DeleteV2_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.RelationV2
func (*RelationService_Expecter) DeleteV2 ¶
func (_e *RelationService_Expecter) DeleteV2(ctx interface{}, rel interface{}) *RelationService_DeleteV2_Call
DeleteV2 is a helper method to define mock.On call
- ctx context.Context
- rel relation.RelationV2
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) GetRelationByFields ¶
func (_e *RelationService_Expecter) GetRelationByFields(ctx interface{}, rel interface{}) *RelationService_GetRelationByFields_Call
GetRelationByFields is a helper method to define mock.On call
- ctx context.Context
- rel relation.RelationV2
func (*RelationService_Expecter) List ¶
func (_e *RelationService_Expecter) List(ctx interface{}) *RelationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
type RelationService_GetRelationByFields_Call ¶
RelationService_GetRelationByFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRelationByFields'
func (*RelationService_GetRelationByFields_Call) Return ¶
func (_c *RelationService_GetRelationByFields_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_GetRelationByFields_Call
func (*RelationService_GetRelationByFields_Call) Run ¶
func (_c *RelationService_GetRelationByFields_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_GetRelationByFields_Call
func (*RelationService_GetRelationByFields_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationService_GetRelationByFields_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_GetRelationByFields_Call
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.RelationV2, _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 ¶ added in v0.6.5
func (_c *RelationService_Get_Call) RunAndReturn(run func(context.Context, string) (relation.RelationV2, 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.RelationV2, _a1 error) *RelationService_List_Call
func (*RelationService_List_Call) Run ¶
func (_c *RelationService_List_Call) Run(run func(ctx context.Context)) *RelationService_List_Call
func (*RelationService_List_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationService_List_Call) RunAndReturn(run func(context.Context) ([]relation.RelationV2, error)) *RelationService_List_Call
type RelationTransformer ¶ added in v0.6.5
RelationTransformer is an autogenerated mock type for the RelationTransformer type
func NewRelationTransformer ¶ added in v0.6.5
func NewRelationTransformer(t interface { mock.TestingT Cleanup(func()) }) *RelationTransformer
NewRelationTransformer creates a new instance of RelationTransformer. 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 (*RelationTransformer) EXPECT ¶ added in v0.6.5
func (_m *RelationTransformer) EXPECT() *RelationTransformer_Expecter
func (*RelationTransformer) TransformRelation ¶ added in v0.6.5
func (_m *RelationTransformer) TransformRelation(ctx context.Context, rlt relation.RelationV2) (relation.RelationV2, error)
TransformRelation provides a mock function with given fields: ctx, rlt
type RelationTransformer_Expecter ¶ added in v0.6.5
type RelationTransformer_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationTransformer_Expecter) TransformRelation ¶ added in v0.6.5
func (_e *RelationTransformer_Expecter) TransformRelation(ctx interface{}, rlt interface{}) *RelationTransformer_TransformRelation_Call
TransformRelation is a helper method to define mock.On call
- ctx context.Context
- rlt relation.RelationV2
type RelationTransformer_TransformRelation_Call ¶ added in v0.6.5
RelationTransformer_TransformRelation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformRelation'
func (*RelationTransformer_TransformRelation_Call) Return ¶ added in v0.6.5
func (_c *RelationTransformer_TransformRelation_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationTransformer_TransformRelation_Call
func (*RelationTransformer_TransformRelation_Call) Run ¶ added in v0.6.5
func (_c *RelationTransformer_TransformRelation_Call) Run(run func(ctx context.Context, rlt relation.RelationV2)) *RelationTransformer_TransformRelation_Call
func (*RelationTransformer_TransformRelation_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RelationTransformer_TransformRelation_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationTransformer_TransformRelation_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) CheckAuthz ¶
func (_m *ResourceService) CheckAuthz(ctx context.Context, _a1 resource.Resource, _a2 action.Action) (bool, error)
CheckAuthz provides a mock function with given fields: ctx, _a1, _a2
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) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
func (*ResourceService) List ¶
func (_m *ResourceService) List(ctx context.Context, flt resource.Filter) (resource.PagedResources, error)
List provides a mock function with given fields: ctx, flt
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, _a1 resource.Resource, _a2 action.Action)) *ResourceService_CheckAuthz_Call
func (*ResourceService_CheckAuthz_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ResourceService_CheckAuthz_Call) RunAndReturn(run func(context.Context, resource.Resource, action.Action) (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 ¶ added in v0.6.5
func (_c *ResourceService_Create_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Create_Call
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceService_Expecter) CheckAuthz ¶
func (_e *ResourceService_Expecter) CheckAuthz(ctx interface{}, _a1 interface{}, _a2 interface{}) *ResourceService_CheckAuthz_Call
CheckAuthz is a helper method to define mock.On call
- ctx context.Context
- _a1 resource.Resource
- _a2 action.Action
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) 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{}, id interface{}, _a2 interface{}) *ResourceService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id string
- _a2 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 ¶ added in v0.6.5
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.PagedResources, _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 ¶ added in v0.6.5
func (_c *ResourceService_List_Call) RunAndReturn(run func(context.Context, resource.Filter) (resource.PagedResources, 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, id string, _a2 resource.Resource)) *ResourceService_Update_Call
func (*ResourceService_Update_Call) RunAndReturn ¶ added in v0.6.5
func (_c *ResourceService_Update_Call) RunAndReturn(run func(context.Context, string, 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) EXPECT ¶
func (_m *RoleService) EXPECT() *RoleService_Expecter
type RoleService_Create_Call ¶
RoleService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RoleService_Create_Call) Return ¶
func (_c *RoleService_Create_Call) Return(_a0 role.Role, _a1 error) *RoleService_Create_Call
func (*RoleService_Create_Call) Run ¶
func (_c *RoleService_Create_Call) Run(run func(ctx context.Context, toCreate role.Role)) *RoleService_Create_Call
func (*RoleService_Create_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RoleService_Create_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Create_Call
type RoleService_Expecter ¶
type RoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleService_Expecter) Create ¶
func (_e *RoleService_Expecter) Create(ctx interface{}, toCreate interface{}) *RoleService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- toCreate role.Role
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{}) *RoleService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
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
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 ¶ added in v0.6.5
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)) *RoleService_List_Call
func (*RoleService_List_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context) ([]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 ¶ added in v0.6.5
func (_c *RoleService_Update_Call) RunAndReturn(run func(context.Context, role.Role) (role.Role, error)) *RoleService_Update_Call
type RuleService ¶
RuleService is an autogenerated mock type for the RuleService type
func NewRuleService ¶
func NewRuleService(t interface { mock.TestingT Cleanup(func()) }) *RuleService
NewRuleService creates a new instance of RuleService. 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 (*RuleService) EXPECT ¶
func (_m *RuleService) EXPECT() *RuleService_Expecter
func (*RuleService) GetAllConfigs ¶
GetAllConfigs provides a mock function with given fields: ctx
type RuleService_Expecter ¶
type RuleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleService_Expecter) GetAllConfigs ¶
func (_e *RuleService_Expecter) GetAllConfigs(ctx interface{}) *RuleService_GetAllConfigs_Call
GetAllConfigs is a helper method to define mock.On call
- ctx context.Context
type RuleService_GetAllConfigs_Call ¶
RuleService_GetAllConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllConfigs'
func (*RuleService_GetAllConfigs_Call) Return ¶
func (_c *RuleService_GetAllConfigs_Call) Return(_a0 []rule.Ruleset, _a1 error) *RuleService_GetAllConfigs_Call
func (*RuleService_GetAllConfigs_Call) Run ¶
func (_c *RuleService_GetAllConfigs_Call) Run(run func(ctx context.Context)) *RuleService_GetAllConfigs_Call
func (*RuleService_GetAllConfigs_Call) RunAndReturn ¶ added in v0.6.5
func (_c *RuleService_GetAllConfigs_Call) RunAndReturn(run func(context.Context) ([]rule.Ruleset, error)) *RuleService_GetAllConfigs_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) CreateMetadataKey ¶
func (_m *UserService) CreateMetadataKey(ctx context.Context, key user.UserMetadataKey) (user.UserMetadataKey, error)
CreateMetadataKey provides a mock function with given fields: ctx, key
func (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
func (*UserService) FetchCurrentUser ¶
FetchCurrentUser provides a mock function with given fields: ctx
func (*UserService) Get ¶ added in v0.6.8
Get provides a mock function with given fields: ctx, idOrEmail
func (*UserService) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
func (*UserService) List ¶
func (_m *UserService) List(ctx context.Context, flt user.Filter) (user.PagedUsers, error)
List provides a mock function with given fields: ctx, flt
func (*UserService) UpdateByEmail ¶
UpdateByEmail provides a mock function with given fields: ctx, toUpdate
func (*UserService) UpdateByID ¶
UpdateByID provides a mock function with given fields: ctx, toUpdate
type UserService_CreateMetadataKey_Call ¶
UserService_CreateMetadataKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMetadataKey'
func (*UserService_CreateMetadataKey_Call) Return ¶
func (_c *UserService_CreateMetadataKey_Call) Return(_a0 user.UserMetadataKey, _a1 error) *UserService_CreateMetadataKey_Call
func (*UserService_CreateMetadataKey_Call) Run ¶
func (_c *UserService_CreateMetadataKey_Call) Run(run func(ctx context.Context, key user.UserMetadataKey)) *UserService_CreateMetadataKey_Call
func (*UserService_CreateMetadataKey_Call) RunAndReturn ¶ added in v0.6.5
func (_c *UserService_CreateMetadataKey_Call) RunAndReturn(run func(context.Context, user.UserMetadataKey) (user.UserMetadataKey, error)) *UserService_CreateMetadataKey_Call
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 ¶ added in v0.6.5
func (_c *UserService_Create_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_Create_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) CreateMetadataKey ¶
func (_e *UserService_Expecter) CreateMetadataKey(ctx interface{}, key interface{}) *UserService_CreateMetadataKey_Call
CreateMetadataKey is a helper method to define mock.On call
- ctx context.Context
- key user.UserMetadataKey
func (*UserService_Expecter) FetchCurrentUser ¶
func (_e *UserService_Expecter) FetchCurrentUser(ctx interface{}) *UserService_FetchCurrentUser_Call
FetchCurrentUser is a helper method to define mock.On call
- ctx context.Context
func (*UserService_Expecter) Get ¶ added in v0.6.8
func (_e *UserService_Expecter) Get(ctx interface{}, idOrEmail interface{}) *UserService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrEmail 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) 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) 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) UpdateByEmail ¶
func (_e *UserService_Expecter) UpdateByEmail(ctx interface{}, toUpdate interface{}) *UserService_UpdateByEmail_Call
UpdateByEmail is a helper method to define mock.On call
- ctx context.Context
- toUpdate user.User
func (*UserService_Expecter) UpdateByID ¶
func (_e *UserService_Expecter) UpdateByID(ctx interface{}, toUpdate interface{}) *UserService_UpdateByID_Call
UpdateByID is a helper method to define mock.On call
- ctx context.Context
- toUpdate user.User
type UserService_FetchCurrentUser_Call ¶
UserService_FetchCurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchCurrentUser'
func (*UserService_FetchCurrentUser_Call) Return ¶
func (_c *UserService_FetchCurrentUser_Call) Return(_a0 user.User, _a1 error) *UserService_FetchCurrentUser_Call
func (*UserService_FetchCurrentUser_Call) Run ¶
func (_c *UserService_FetchCurrentUser_Call) Run(run func(ctx context.Context)) *UserService_FetchCurrentUser_Call
func (*UserService_FetchCurrentUser_Call) RunAndReturn ¶ added in v0.6.5
func (_c *UserService_FetchCurrentUser_Call) RunAndReturn(run func(context.Context) (user.User, error)) *UserService_FetchCurrentUser_Call
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 ¶ added in v0.6.5
func (_c *UserService_GetByEmail_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByEmail_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 ¶ added in v0.6.5
func (_c *UserService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]user.User, error)) *UserService_GetByIDs_Call
type UserService_Get_Call ¶ added in v0.6.8
UserService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*UserService_Get_Call) Return ¶ added in v0.6.8
func (_c *UserService_Get_Call) Return(_a0 user.User, _a1 error) *UserService_Get_Call
func (*UserService_Get_Call) Run ¶ added in v0.6.8
func (_c *UserService_Get_Call) Run(run func(ctx context.Context, idOrEmail string)) *UserService_Get_Call
func (*UserService_Get_Call) RunAndReturn ¶ added in v0.6.8
func (_c *UserService_Get_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_Get_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.PagedUsers, _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 ¶ added in v0.6.5
func (_c *UserService_List_Call) RunAndReturn(run func(context.Context, user.Filter) (user.PagedUsers, error)) *UserService_List_Call
type UserService_UpdateByEmail_Call ¶
UserService_UpdateByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByEmail'
func (*UserService_UpdateByEmail_Call) Return ¶
func (_c *UserService_UpdateByEmail_Call) Return(_a0 user.User, _a1 error) *UserService_UpdateByEmail_Call
func (*UserService_UpdateByEmail_Call) Run ¶
func (_c *UserService_UpdateByEmail_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_UpdateByEmail_Call
func (*UserService_UpdateByEmail_Call) RunAndReturn ¶ added in v0.6.5
func (_c *UserService_UpdateByEmail_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_UpdateByEmail_Call
type UserService_UpdateByID_Call ¶
UserService_UpdateByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByID'
func (*UserService_UpdateByID_Call) Return ¶
func (_c *UserService_UpdateByID_Call) Return(_a0 user.User, _a1 error) *UserService_UpdateByID_Call
func (*UserService_UpdateByID_Call) Run ¶
func (_c *UserService_UpdateByID_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_UpdateByID_Call
func (*UserService_UpdateByID_Call) RunAndReturn ¶ added in v0.6.5
func (_c *UserService_UpdateByID_Call) RunAndReturn(run func(context.Context, user.User) (user.User, error)) *UserService_UpdateByID_Call