mocks

package
v0.104.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialRepository

type CredentialRepository struct {
	mock.Mock
}

CredentialRepository is an autogenerated mock type for the CredentialRepository type

func NewCredentialRepository

func NewCredentialRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *CredentialRepository

NewCredentialRepository creates a new instance of CredentialRepository. 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 (*CredentialRepository) Create

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

func (*CredentialRepository) Delete

func (_m *CredentialRepository) Delete(ctx context.Context, id string) error

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

func (*CredentialRepository) EXPECT

func (*CredentialRepository) Get

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

func (*CredentialRepository) List

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

type CredentialRepository_Create_Call

type CredentialRepository_Create_Call struct {
	*mock.Call
}

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

func (*CredentialRepository_Create_Call) Return

func (*CredentialRepository_Create_Call) Run

func (*CredentialRepository_Create_Call) RunAndReturn

type CredentialRepository_Delete_Call

type CredentialRepository_Delete_Call struct {
	*mock.Call
}

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

func (*CredentialRepository_Delete_Call) Return

func (*CredentialRepository_Delete_Call) Run

func (*CredentialRepository_Delete_Call) RunAndReturn

type CredentialRepository_Expecter

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

func (*CredentialRepository_Expecter) Create

func (_e *CredentialRepository_Expecter) Create(ctx interface{}, credential interface{}) *CredentialRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • credential serviceuser.Credential

func (*CredentialRepository_Expecter) Delete

func (_e *CredentialRepository_Expecter) Delete(ctx interface{}, id interface{}) *CredentialRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CredentialRepository_Expecter) Get

func (_e *CredentialRepository_Expecter) Get(ctx interface{}, id interface{}) *CredentialRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CredentialRepository_Expecter) List

func (_e *CredentialRepository_Expecter) List(ctx interface{}, flt interface{}) *CredentialRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt serviceuser.Filter

type CredentialRepository_Get_Call

type CredentialRepository_Get_Call struct {
	*mock.Call
}

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

func (*CredentialRepository_Get_Call) Return

func (*CredentialRepository_Get_Call) Run

func (*CredentialRepository_Get_Call) RunAndReturn

type CredentialRepository_List_Call

type CredentialRepository_List_Call struct {
	*mock.Call
}

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

func (*CredentialRepository_List_Call) Return

func (*CredentialRepository_List_Call) Run

func (*CredentialRepository_List_Call) RunAndReturn

type MembershipService

type MembershipService struct {
	mock.Mock
}

MembershipService is an autogenerated mock type for the MembershipService type

func NewMembershipService

func NewMembershipService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MembershipService

NewMembershipService creates a new instance of MembershipService. 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 (*MembershipService) AddOrganizationMember

func (_m *MembershipService) AddOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string, roleID string) error

AddOrganizationMember provides a mock function with given fields: ctx, orgID, principalID, principalType, roleID

func (*MembershipService) EXPECT

func (*MembershipService) RemoveOrganizationMember

func (_m *MembershipService) RemoveOrganizationMember(ctx context.Context, orgID string, principalID string, principalType string) error

RemoveOrganizationMember provides a mock function with given fields: ctx, orgID, principalID, principalType

type MembershipService_AddOrganizationMember_Call

type MembershipService_AddOrganizationMember_Call struct {
	*mock.Call
}

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

func (*MembershipService_AddOrganizationMember_Call) Return

func (*MembershipService_AddOrganizationMember_Call) Run

func (*MembershipService_AddOrganizationMember_Call) RunAndReturn

type MembershipService_Expecter

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

func (*MembershipService_Expecter) AddOrganizationMember

func (_e *MembershipService_Expecter) AddOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, principalType interface{}, roleID interface{}) *MembershipService_AddOrganizationMember_Call

AddOrganizationMember is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • principalID string
  • principalType string
  • roleID string

func (*MembershipService_Expecter) RemoveOrganizationMember

func (_e *MembershipService_Expecter) RemoveOrganizationMember(ctx interface{}, orgID interface{}, principalID interface{}, principalType interface{}) *MembershipService_RemoveOrganizationMember_Call

RemoveOrganizationMember is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • principalID string
  • principalType string

type MembershipService_RemoveOrganizationMember_Call

type MembershipService_RemoveOrganizationMember_Call struct {
	*mock.Call
}

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

func (*MembershipService_RemoveOrganizationMember_Call) Return

func (*MembershipService_RemoveOrganizationMember_Call) Run

func (*MembershipService_RemoveOrganizationMember_Call) RunAndReturn

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

func (_m *RelationService) BatchCheckPermission(ctx context.Context, rel []relation.Relation) ([]relation.CheckPair, error)

BatchCheckPermission provides a mock function with given fields: ctx, rel

func (*RelationService) CheckPermission

func (_m *RelationService) CheckPermission(ctx context.Context, rel relation.Relation) (bool, error)

CheckPermission provides a mock function with given fields: ctx, rel

func (*RelationService) Create

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

func (*RelationService) Delete

func (_m *RelationService) Delete(ctx context.Context, rel relation.Relation) error

Delete provides a mock function with given fields: ctx, rel

func (*RelationService) EXPECT

func (*RelationService) LookupSubjects

func (_m *RelationService) LookupSubjects(ctx context.Context, rel relation.Relation) ([]string, error)

LookupSubjects provides a mock function with given fields: ctx, rel

type RelationService_BatchCheckPermission_Call

type RelationService_BatchCheckPermission_Call struct {
	*mock.Call
}

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

func (*RelationService_BatchCheckPermission_Call) Return

func (*RelationService_BatchCheckPermission_Call) Run

func (*RelationService_BatchCheckPermission_Call) RunAndReturn

type RelationService_CheckPermission_Call

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

func (*RelationService_CheckPermission_Call) Run

func (*RelationService_CheckPermission_Call) RunAndReturn

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

type RelationService_Delete_Call

type RelationService_Delete_Call struct {
	*mock.Call
}

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

func (*RelationService_Delete_Call) Return

func (*RelationService_Delete_Call) Run

func (*RelationService_Delete_Call) RunAndReturn

type RelationService_Expecter

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

func (*RelationService_Expecter) BatchCheckPermission

func (_e *RelationService_Expecter) BatchCheckPermission(ctx interface{}, rel interface{}) *RelationService_BatchCheckPermission_Call

BatchCheckPermission is a helper method to define mock.On call

  • ctx context.Context
  • rel []relation.Relation

func (*RelationService_Expecter) CheckPermission

func (_e *RelationService_Expecter) CheckPermission(ctx interface{}, rel interface{}) *RelationService_CheckPermission_Call

CheckPermission is a helper method to define mock.On call

  • ctx context.Context
  • rel relation.Relation

func (*RelationService_Expecter) Create

func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • rel relation.Relation

func (*RelationService_Expecter) Delete

func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • rel relation.Relation

func (*RelationService_Expecter) LookupSubjects

func (_e *RelationService_Expecter) LookupSubjects(ctx interface{}, rel interface{}) *RelationService_LookupSubjects_Call

LookupSubjects is a helper method to define mock.On call

  • ctx context.Context
  • rel relation.Relation

type RelationService_LookupSubjects_Call

type RelationService_LookupSubjects_Call struct {
	*mock.Call
}

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

func (*RelationService_LookupSubjects_Call) Return

func (*RelationService_LookupSubjects_Call) Run

func (*RelationService_LookupSubjects_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Create

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

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, id string) error

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, id string) (serviceuser.ServiceUser, error)

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

func (*Repository) GetByIDs

func (_m *Repository) GetByIDs(ctx context.Context, id []string) ([]serviceuser.ServiceUser, error)

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

func (*Repository) List

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

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn

type Repository_Delete_Call

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return

func (*Repository_Delete_Call) Run

func (*Repository_Delete_Call) RunAndReturn

type Repository_Expecter

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

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(ctx interface{}, serviceUser interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • serviceUser serviceuser.ServiceUser

func (*Repository_Expecter) Delete

func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) GetByID

func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) GetByIDs

func (_e *Repository_Expecter) GetByIDs(ctx interface{}, id interface{}) *Repository_GetByIDs_Call

GetByIDs is a helper method to define mock.On call

  • ctx context.Context
  • id []string

func (*Repository_Expecter) List

func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt serviceuser.Filter

type Repository_GetByID_Call

type Repository_GetByID_Call struct {
	*mock.Call
}

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

func (*Repository_GetByID_Call) Return

func (*Repository_GetByID_Call) Run

func (*Repository_GetByID_Call) RunAndReturn

type Repository_GetByIDs_Call

type Repository_GetByIDs_Call struct {
	*mock.Call
}

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

func (*Repository_GetByIDs_Call) Return

func (*Repository_GetByIDs_Call) Run

func (*Repository_GetByIDs_Call) RunAndReturn

type Repository_List_Call

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return

func (*Repository_List_Call) Run

func (*Repository_List_Call) RunAndReturn

Jump to

Keyboard shortcuts

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