mocks

package
v0.6.28-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionService

type ActionService struct {
	mock.Mock
}

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

func (*ActionService) Get

func (_m *ActionService) Get(ctx context.Context, id string) (action.Action, error)

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

func (*ActionService) List

func (_m *ActionService) List(ctx context.Context) ([]action.Action, error)

List provides a mock function with given fields: ctx

func (*ActionService) Update

func (_m *ActionService) Update(ctx context.Context, id string, _a2 action.Action) (action.Action, error)

Update provides a mock function with given fields: ctx, id, _a2

func (*ActionService) Upsert added in v0.6.25

func (_m *ActionService) Upsert(ctx context.Context, _a1 action.Action) (action.Action, error)

Upsert provides a mock function with given fields: ctx, _a1

type ActionService_Expecter

type ActionService_Expecter struct {
	// contains filtered or unexported fields
}

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

func (*ActionService_Expecter) Upsert added in v0.6.25

func (_e *ActionService_Expecter) Upsert(ctx interface{}, _a1 interface{}) *ActionService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • _a1 action.Action

type ActionService_Get_Call

type ActionService_Get_Call struct {
	*mock.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 (*ActionService_Get_Call) Run

func (*ActionService_Get_Call) RunAndReturn added in v0.6.5

type ActionService_List_Call

type ActionService_List_Call struct {
	*mock.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 (*ActionService_List_Call) Run

func (*ActionService_List_Call) RunAndReturn added in v0.6.5

type ActionService_Update_Call

type ActionService_Update_Call struct {
	*mock.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 (*ActionService_Update_Call) Run

func (*ActionService_Update_Call) RunAndReturn added in v0.6.5

type ActionService_Upsert_Call added in v0.6.25

type ActionService_Upsert_Call struct {
	*mock.Call
}

ActionService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*ActionService_Upsert_Call) Return added in v0.6.25

func (*ActionService_Upsert_Call) Run added in v0.6.25

func (*ActionService_Upsert_Call) RunAndReturn added in v0.6.25

type ActivityService added in v0.6.17

type ActivityService struct {
	mock.Mock
}

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 (*ActivityService) List added in v0.6.17

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

type ActivityService_List_Call struct {
	*mock.Call
}

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 (*ActivityService_List_Call) Run added in v0.6.17

func (*ActivityService_List_Call) RunAndReturn added in v0.6.17

type GroupService

type GroupService struct {
	mock.Mock
}

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

func (_m *GroupService) Create(ctx context.Context, grp group.Group) (group.Group, error)

Create provides a mock function with given fields: ctx, grp

func (*GroupService) EXPECT

func (_m *GroupService) EXPECT() *GroupService_Expecter

func (*GroupService) Get

func (_m *GroupService) Get(ctx context.Context, id string) (group.Group, error)

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

func (*GroupService) List

func (_m *GroupService) List(ctx context.Context, flt group.Filter) ([]group.Group, error)

List provides a mock function with given fields: ctx, flt

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

func (*GroupService) Update

func (_m *GroupService) Update(ctx context.Context, grp group.Group) (group.Group, error)

Update provides a mock function with given fields: ctx, grp

type GroupService_Create_Call

type GroupService_Create_Call struct {
	*mock.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 (*GroupService_Create_Call) Run

func (*GroupService_Create_Call) RunAndReturn added in v0.6.5

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

type GroupService_Get_Call struct {
	*mock.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 (*GroupService_Get_Call) Run

func (*GroupService_Get_Call) RunAndReturn added in v0.6.5

type GroupService_ListGroupRelations_Call

type GroupService_ListGroupRelations_Call struct {
	*mock.Call
}

GroupService_ListGroupRelations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroupRelations'

func (*GroupService_ListGroupRelations_Call) Return

func (*GroupService_ListGroupRelations_Call) Run

func (*GroupService_ListGroupRelations_Call) RunAndReturn added in v0.6.5

type GroupService_ListUserGroups_Call

type GroupService_ListUserGroups_Call struct {
	*mock.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 (*GroupService_ListUserGroups_Call) Run

func (*GroupService_ListUserGroups_Call) RunAndReturn added in v0.6.5

type GroupService_List_Call

type GroupService_List_Call struct {
	*mock.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 (*GroupService_List_Call) Run

func (*GroupService_List_Call) RunAndReturn added in v0.6.5

type GroupService_Update_Call

type GroupService_Update_Call struct {
	*mock.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 (*GroupService_Update_Call) Run

func (*GroupService_Update_Call) RunAndReturn added in v0.6.5

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NamespaceService

NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NamespaceService) EXPECT

func (*NamespaceService) Get

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

func (*NamespaceService) List

List provides a mock function with given fields: ctx

func (*NamespaceService) Update

Update provides a mock function with given fields: ctx, ns

func (*NamespaceService) Upsert added in v0.6.25

Upsert provides a mock function with given fields: ctx, ns

type NamespaceService_Expecter

type NamespaceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*NamespaceService_Expecter) Get

func (_e *NamespaceService_Expecter) Get(ctx interface{}, id interface{}) *NamespaceService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*NamespaceService_Expecter) List

func (_e *NamespaceService_Expecter) List(ctx interface{}) *NamespaceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

func (*NamespaceService_Expecter) Update

func (_e *NamespaceService_Expecter) Update(ctx interface{}, ns interface{}) *NamespaceService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • ns namespace.Namespace

func (*NamespaceService_Expecter) Upsert added in v0.6.25

func (_e *NamespaceService_Expecter) Upsert(ctx interface{}, ns interface{}) *NamespaceService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • ns namespace.Namespace

type NamespaceService_Get_Call

type NamespaceService_Get_Call struct {
	*mock.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 (*NamespaceService_Get_Call) Run

func (*NamespaceService_Get_Call) RunAndReturn added in v0.6.5

type NamespaceService_List_Call

type NamespaceService_List_Call struct {
	*mock.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 (*NamespaceService_List_Call) Run

func (*NamespaceService_List_Call) RunAndReturn added in v0.6.5

type NamespaceService_Update_Call

type NamespaceService_Update_Call struct {
	*mock.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 (*NamespaceService_Update_Call) Run

func (*NamespaceService_Update_Call) RunAndReturn added in v0.6.5

type NamespaceService_Upsert_Call added in v0.6.25

type NamespaceService_Upsert_Call struct {
	*mock.Call
}

NamespaceService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*NamespaceService_Upsert_Call) Return added in v0.6.25

func (*NamespaceService_Upsert_Call) Run added in v0.6.25

func (*NamespaceService_Upsert_Call) RunAndReturn added in v0.6.25

type OrganizationService

type OrganizationService struct {
	mock.Mock
}

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

Create provides a mock function with given fields: ctx, org

func (*OrganizationService) EXPECT

func (*OrganizationService) Get

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

func (*OrganizationService) List

List provides a mock function with given fields: ctx

func (*OrganizationService) ListAdmins

func (_m *OrganizationService) ListAdmins(ctx context.Context, id string) ([]user.User, error)

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

func (*OrganizationService) Update

Update provides a mock function with given fields: ctx, toUpdate

type OrganizationService_Create_Call

type OrganizationService_Create_Call struct {
	*mock.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 (*OrganizationService_Create_Call) Run

func (*OrganizationService_Create_Call) RunAndReturn added in v0.6.5

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

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

type OrganizationService_Get_Call struct {
	*mock.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 (*OrganizationService_Get_Call) Run

func (*OrganizationService_Get_Call) RunAndReturn added in v0.6.5

type OrganizationService_ListAdmins_Call

type OrganizationService_ListAdmins_Call struct {
	*mock.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 (*OrganizationService_ListAdmins_Call) Run

func (*OrganizationService_ListAdmins_Call) RunAndReturn added in v0.6.5

type OrganizationService_List_Call

type OrganizationService_List_Call struct {
	*mock.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 (*OrganizationService_List_Call) Run

func (*OrganizationService_List_Call) RunAndReturn added in v0.6.5

type OrganizationService_Update_Call

type OrganizationService_Update_Call struct {
	*mock.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 (*OrganizationService_Update_Call) Run

func (*OrganizationService_Update_Call) RunAndReturn added in v0.6.5

type PolicyService

type PolicyService struct {
	mock.Mock
}

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

func (*PolicyService) Get

func (_m *PolicyService) Get(ctx context.Context, id string) (policy.Policy, error)

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

func (*PolicyService) List

func (_m *PolicyService) List(ctx context.Context) ([]policy.Policy, error)

List provides a mock function with given fields: ctx

func (*PolicyService) Update

func (_m *PolicyService) Update(ctx context.Context, pol *policy.Policy) ([]policy.Policy, error)

Update provides a mock function with given fields: ctx, pol

func (*PolicyService) Upsert added in v0.6.25

func (_m *PolicyService) Upsert(ctx context.Context, pol *policy.Policy) ([]policy.Policy, error)

Upsert provides a mock function with given fields: ctx, pol

type PolicyService_Expecter

type PolicyService_Expecter struct {
	// contains filtered or unexported fields
}

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

func (*PolicyService_Expecter) Upsert added in v0.6.25

func (_e *PolicyService_Expecter) Upsert(ctx interface{}, pol interface{}) *PolicyService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • pol *policy.Policy

type PolicyService_Get_Call

type PolicyService_Get_Call struct {
	*mock.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 (*PolicyService_Get_Call) Run

func (*PolicyService_Get_Call) RunAndReturn added in v0.6.5

type PolicyService_List_Call

type PolicyService_List_Call struct {
	*mock.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 (*PolicyService_List_Call) Run

func (*PolicyService_List_Call) RunAndReturn added in v0.6.5

type PolicyService_Update_Call

type PolicyService_Update_Call struct {
	*mock.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 (*PolicyService_Update_Call) Run

func (*PolicyService_Update_Call) RunAndReturn added in v0.6.5

type PolicyService_Upsert_Call added in v0.6.25

type PolicyService_Upsert_Call struct {
	*mock.Call
}

PolicyService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*PolicyService_Upsert_Call) Return added in v0.6.25

func (*PolicyService_Upsert_Call) Run added in v0.6.25

func (*PolicyService_Upsert_Call) RunAndReturn added in v0.6.25

type ProjectService

type ProjectService struct {
	mock.Mock
}

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

Create provides a mock function with given fields: ctx, prj

func (*ProjectService) EXPECT

func (*ProjectService) Get

func (_m *ProjectService) Get(ctx context.Context, idOrSlugd string) (project.Project, error)

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

func (*ProjectService) List

func (_m *ProjectService) List(ctx context.Context) ([]project.Project, error)

List provides a mock function with given fields: ctx

func (*ProjectService) ListAdmins

func (_m *ProjectService) ListAdmins(ctx context.Context, id string) ([]user.User, error)

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

func (*ProjectService) Update

func (_m *ProjectService) Update(ctx context.Context, toUpdate project.Project) (project.Project, error)

Update provides a mock function with given fields: ctx, toUpdate

type ProjectService_Create_Call

type ProjectService_Create_Call struct {
	*mock.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 (*ProjectService_Create_Call) Run

func (*ProjectService_Create_Call) RunAndReturn added in v0.6.5

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

type ProjectService_Get_Call struct {
	*mock.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 (*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

type ProjectService_ListAdmins_Call

type ProjectService_ListAdmins_Call struct {
	*mock.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 (*ProjectService_ListAdmins_Call) Run

func (*ProjectService_ListAdmins_Call) RunAndReturn added in v0.6.5

type ProjectService_List_Call

type ProjectService_List_Call struct {
	*mock.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 (*ProjectService_List_Call) Run

func (*ProjectService_List_Call) RunAndReturn added in v0.6.5

type ProjectService_Update_Call

type ProjectService_Update_Call struct {
	*mock.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 (*ProjectService_Update_Call) Run

func (*ProjectService_Update_Call) RunAndReturn added in v0.6.5

type RelationService

type RelationService struct {
	mock.Mock
}

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) CheckPermission added in v0.6.29

func (_m *RelationService) CheckPermission(ctx context.Context, usr user.User, resourceNS namespace.Namespace, resourceIdxa string, _a4 action.Action) (bool, error)

CheckPermission provides a mock function with given fields: ctx, usr, resourceNS, resourceIdxa, _a4

func (*RelationService) Create

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 (*RelationService) Get

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

List provides a mock function with given fields: ctx

func (*RelationService) LookupResources added in v0.6.29

func (_m *RelationService) LookupResources(ctx context.Context, resourceType string, permission string, subjectType string, subjectID string) ([]string, error)

LookupResources provides a mock function with given fields: ctx, resourceType, permission, subjectType, subjectID

type RelationService_CheckPermission_Call added in v0.6.29

type RelationService_CheckPermission_Call struct {
	*mock.Call
}

RelationService_CheckPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPermission'

func (*RelationService_CheckPermission_Call) Return added in v0.6.29

func (*RelationService_CheckPermission_Call) Run added in v0.6.29

func (*RelationService_CheckPermission_Call) RunAndReturn added in v0.6.29

type RelationService_Create_Call

type RelationService_Create_Call struct {
	*mock.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 (*RelationService_Create_Call) Run

func (*RelationService_Create_Call) RunAndReturn added in v0.6.5

type RelationService_DeleteV2_Call

type RelationService_DeleteV2_Call struct {
	*mock.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 (*RelationService_DeleteV2_Call) Run

func (*RelationService_DeleteV2_Call) RunAndReturn added in v0.6.5

type RelationService_Expecter

type RelationService_Expecter struct {
	// contains filtered or unexported fields
}

func (*RelationService_Expecter) CheckPermission added in v0.6.29

func (_e *RelationService_Expecter) CheckPermission(ctx interface{}, usr interface{}, resourceNS interface{}, resourceIdxa interface{}, _a4 interface{}) *RelationService_CheckPermission_Call

CheckPermission is a helper method to define mock.On call

  • ctx context.Context
  • usr user.User
  • resourceNS namespace.Namespace
  • resourceIdxa string
  • _a4 action.Action

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

func (*RelationService_Expecter) LookupResources added in v0.6.29

func (_e *RelationService_Expecter) LookupResources(ctx interface{}, resourceType interface{}, permission interface{}, subjectType interface{}, subjectID interface{}) *RelationService_LookupResources_Call

LookupResources is a helper method to define mock.On call

  • ctx context.Context
  • resourceType string
  • permission string
  • subjectType string
  • subjectID string

type RelationService_GetRelationByFields_Call

type RelationService_GetRelationByFields_Call struct {
	*mock.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 (*RelationService_GetRelationByFields_Call) Run

func (*RelationService_GetRelationByFields_Call) RunAndReturn added in v0.6.5

type RelationService_Get_Call

type RelationService_Get_Call struct {
	*mock.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 (*RelationService_Get_Call) Run

func (*RelationService_Get_Call) RunAndReturn added in v0.6.5

type RelationService_List_Call

type RelationService_List_Call struct {
	*mock.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 (*RelationService_List_Call) Run

func (*RelationService_List_Call) RunAndReturn added in v0.6.5

type RelationService_LookupResources_Call added in v0.6.29

type RelationService_LookupResources_Call struct {
	*mock.Call
}

RelationService_LookupResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LookupResources'

func (*RelationService_LookupResources_Call) Return added in v0.6.29

func (*RelationService_LookupResources_Call) Run added in v0.6.29

func (_c *RelationService_LookupResources_Call) Run(run func(ctx context.Context, resourceType string, permission string, subjectType string, subjectID string)) *RelationService_LookupResources_Call

func (*RelationService_LookupResources_Call) RunAndReturn added in v0.6.29

type RelationTransformer added in v0.6.5

type RelationTransformer struct {
	mock.Mock
}

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 (*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

type RelationTransformer_TransformRelation_Call struct {
	*mock.Call
}

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 (*RelationTransformer_TransformRelation_Call) Run added in v0.6.5

func (*RelationTransformer_TransformRelation_Call) RunAndReturn added in v0.6.5

type ResourceService

type ResourceService struct {
	mock.Mock
}

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

func (*ResourceService) Get

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

func (*ResourceService) List

List provides a mock function with given fields: ctx, flt

func (*ResourceService) Update

Update provides a mock function with given fields: ctx, id, _a2

func (*ResourceService) Upsert added in v0.6.21

Upsert provides a mock function with given fields: ctx, _a1

type ResourceService_CheckAuthz_Call

type ResourceService_CheckAuthz_Call struct {
	*mock.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 (*ResourceService_CheckAuthz_Call) Run

func (*ResourceService_CheckAuthz_Call) RunAndReturn added in v0.6.5

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

func (*ResourceService_Expecter) Upsert added in v0.6.21

func (_e *ResourceService_Expecter) Upsert(ctx interface{}, _a1 interface{}) *ResourceService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • _a1 resource.Resource

type ResourceService_Get_Call

type ResourceService_Get_Call struct {
	*mock.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 (*ResourceService_Get_Call) Run

func (*ResourceService_Get_Call) RunAndReturn added in v0.6.5

type ResourceService_List_Call

type ResourceService_List_Call struct {
	*mock.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 (*ResourceService_List_Call) Run

func (*ResourceService_List_Call) RunAndReturn added in v0.6.5

type ResourceService_Update_Call

type ResourceService_Update_Call struct {
	*mock.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 (*ResourceService_Update_Call) Run

func (*ResourceService_Update_Call) RunAndReturn added in v0.6.5

type ResourceService_Upsert_Call added in v0.6.21

type ResourceService_Upsert_Call struct {
	*mock.Call
}

ResourceService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*ResourceService_Upsert_Call) Return added in v0.6.21

func (*ResourceService_Upsert_Call) Run added in v0.6.21

func (*ResourceService_Upsert_Call) RunAndReturn added in v0.6.21

type RoleService

type RoleService struct {
	mock.Mock
}

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

func (*RoleService) Get

func (_m *RoleService) Get(ctx context.Context, id string) (role.Role, error)

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

func (*RoleService) List

func (_m *RoleService) List(ctx context.Context) ([]role.Role, error)

List provides a mock function with given fields: ctx

func (*RoleService) Update

func (_m *RoleService) Update(ctx context.Context, toUpdate role.Role) (role.Role, error)

Update provides a mock function with given fields: ctx, toUpdate

func (*RoleService) Upsert added in v0.6.25

func (_m *RoleService) Upsert(ctx context.Context, toUpsert role.Role) (role.Role, error)

Upsert provides a mock function with given fields: ctx, toUpsert

type RoleService_Expecter

type RoleService_Expecter struct {
	// contains filtered or unexported fields
}

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

func (*RoleService_Expecter) Upsert added in v0.6.25

func (_e *RoleService_Expecter) Upsert(ctx interface{}, toUpsert interface{}) *RoleService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • toUpsert role.Role

type RoleService_Get_Call

type RoleService_Get_Call struct {
	*mock.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 (*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

type RoleService_List_Call struct {
	*mock.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 (*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

type RoleService_Update_Call struct {
	*mock.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 (*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

type RoleService_Upsert_Call added in v0.6.25

type RoleService_Upsert_Call struct {
	*mock.Call
}

RoleService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*RoleService_Upsert_Call) Return added in v0.6.25

func (*RoleService_Upsert_Call) Run added in v0.6.25

func (_c *RoleService_Upsert_Call) Run(run func(ctx context.Context, toUpsert role.Role)) *RoleService_Upsert_Call

func (*RoleService_Upsert_Call) RunAndReturn added in v0.6.25

type RuleService

type RuleService struct {
	mock.Mock
}

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

func (_m *RuleService) GetAllConfigs(ctx context.Context) ([]rule.Ruleset, error)

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

type RuleService_GetAllConfigs_Call struct {
	*mock.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 (*RuleService_GetAllConfigs_Call) Run

func (*RuleService_GetAllConfigs_Call) RunAndReturn added in v0.6.5

type ServiceDataService added in v0.6.20

type ServiceDataService struct {
	mock.Mock
}

ServiceDataService is an autogenerated mock type for the ServiceDataService type

func NewServiceDataService added in v0.6.20

func NewServiceDataService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceDataService

NewServiceDataService creates a new instance of ServiceDataService. 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 (*ServiceDataService) CreateKey added in v0.6.20

CreateKey provides a mock function with given fields: ctx, key

func (*ServiceDataService) EXPECT added in v0.6.20

func (*ServiceDataService) Get added in v0.6.22

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

func (*ServiceDataService) GetKeyByURN added in v0.6.29

func (_m *ServiceDataService) GetKeyByURN(ctx context.Context, urn string) (servicedata.Key, error)

GetKeyByURN provides a mock function with given fields: ctx, urn

func (*ServiceDataService) Upsert added in v0.6.22

Upsert provides a mock function with given fields: ctx, serviceData

type ServiceDataService_CreateKey_Call added in v0.6.20

type ServiceDataService_CreateKey_Call struct {
	*mock.Call
}

ServiceDataService_CreateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateKey'

func (*ServiceDataService_CreateKey_Call) Return added in v0.6.20

func (*ServiceDataService_CreateKey_Call) Run added in v0.6.20

func (*ServiceDataService_CreateKey_Call) RunAndReturn added in v0.6.20

type ServiceDataService_Expecter added in v0.6.20

type ServiceDataService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ServiceDataService_Expecter) CreateKey added in v0.6.20

func (_e *ServiceDataService_Expecter) CreateKey(ctx interface{}, key interface{}) *ServiceDataService_CreateKey_Call

CreateKey is a helper method to define mock.On call

  • ctx context.Context
  • key servicedata.Key

func (*ServiceDataService_Expecter) Get added in v0.6.22

func (_e *ServiceDataService_Expecter) Get(ctx interface{}, filter interface{}) *ServiceDataService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • filter servicedata.Filter

func (*ServiceDataService_Expecter) GetKeyByURN added in v0.6.29

func (_e *ServiceDataService_Expecter) GetKeyByURN(ctx interface{}, urn interface{}) *ServiceDataService_GetKeyByURN_Call

GetKeyByURN is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*ServiceDataService_Expecter) Upsert added in v0.6.22

func (_e *ServiceDataService_Expecter) Upsert(ctx interface{}, serviceData interface{}) *ServiceDataService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • serviceData servicedata.ServiceData

type ServiceDataService_GetKeyByURN_Call added in v0.6.29

type ServiceDataService_GetKeyByURN_Call struct {
	*mock.Call
}

ServiceDataService_GetKeyByURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeyByURN'

func (*ServiceDataService_GetKeyByURN_Call) Return added in v0.6.29

func (*ServiceDataService_GetKeyByURN_Call) Run added in v0.6.29

func (*ServiceDataService_GetKeyByURN_Call) RunAndReturn added in v0.6.29

type ServiceDataService_Get_Call added in v0.6.22

type ServiceDataService_Get_Call struct {
	*mock.Call
}

ServiceDataService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ServiceDataService_Get_Call) Return added in v0.6.22

func (*ServiceDataService_Get_Call) Run added in v0.6.22

func (*ServiceDataService_Get_Call) RunAndReturn added in v0.6.22

type ServiceDataService_Upsert_Call added in v0.6.22

type ServiceDataService_Upsert_Call struct {
	*mock.Call
}

ServiceDataService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*ServiceDataService_Upsert_Call) Return added in v0.6.22

func (*ServiceDataService_Upsert_Call) Run added in v0.6.22

func (*ServiceDataService_Upsert_Call) RunAndReturn added in v0.6.22

type UserService

type UserService struct {
	mock.Mock
}

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

func (_m *UserService) Create(ctx context.Context, _a1 user.User) (user.User, error)

Create provides a mock function with given fields: ctx, _a1

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

func (_m *UserService) FetchCurrentUser(ctx context.Context) (user.User, error)

FetchCurrentUser provides a mock function with given fields: ctx

func (*UserService) Get added in v0.6.8

func (_m *UserService) Get(ctx context.Context, idOrEmail string) (user.User, error)

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

func (*UserService) GetByEmail

func (_m *UserService) GetByEmail(ctx context.Context, email string) (user.User, error)

GetByEmail provides a mock function with given fields: ctx, email

func (*UserService) GetByIDs

func (_m *UserService) GetByIDs(ctx context.Context, userIDs []string) ([]user.User, error)

GetByIDs provides a mock function with given fields: ctx, userIDs

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

func (_m *UserService) UpdateByEmail(ctx context.Context, toUpdate user.User) (user.User, error)

UpdateByEmail provides a mock function with given fields: ctx, toUpdate

func (*UserService) UpdateByID

func (_m *UserService) UpdateByID(ctx context.Context, toUpdate user.User) (user.User, error)

UpdateByID provides a mock function with given fields: ctx, toUpdate

type UserService_CreateMetadataKey_Call

type UserService_CreateMetadataKey_Call struct {
	*mock.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 (*UserService_CreateMetadataKey_Call) Run

func (*UserService_CreateMetadataKey_Call) RunAndReturn added in v0.6.5

type UserService_Create_Call

type UserService_Create_Call struct {
	*mock.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 (*UserService_Create_Call) Run

func (*UserService_Create_Call) RunAndReturn added in v0.6.5

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

type UserService_FetchCurrentUser_Call struct {
	*mock.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 (*UserService_FetchCurrentUser_Call) Run

func (*UserService_FetchCurrentUser_Call) RunAndReturn added in v0.6.5

type UserService_GetByEmail_Call

type UserService_GetByEmail_Call struct {
	*mock.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 (*UserService_GetByEmail_Call) Run

func (*UserService_GetByEmail_Call) RunAndReturn added in v0.6.5

type UserService_GetByIDs_Call

type UserService_GetByIDs_Call struct {
	*mock.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 (*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

type UserService_Get_Call added in v0.6.8

type UserService_Get_Call struct {
	*mock.Call
}

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 (*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

type UserService_List_Call struct {
	*mock.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 (*UserService_List_Call) Run

func (*UserService_List_Call) RunAndReturn added in v0.6.5

type UserService_UpdateByEmail_Call

type UserService_UpdateByEmail_Call struct {
	*mock.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 (*UserService_UpdateByEmail_Call) Run

func (*UserService_UpdateByEmail_Call) RunAndReturn added in v0.6.5

type UserService_UpdateByID_Call

type UserService_UpdateByID_Call struct {
	*mock.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 (*UserService_UpdateByID_Call) Run

func (*UserService_UpdateByID_Call) RunAndReturn added in v0.6.5

Jump to

Keyboard shortcuts

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