mocks

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditRecordRepository

type AuditRecordRepository struct {
	mock.Mock
}

AuditRecordRepository is an autogenerated mock type for the AuditRecordRepository type

func NewAuditRecordRepository

func NewAuditRecordRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditRecordRepository

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

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

func (*AuditRecordRepository) EXPECT

type AuditRecordRepository_Create_Call

type AuditRecordRepository_Create_Call struct {
	*mock.Call
}

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

func (*AuditRecordRepository_Create_Call) Return

func (*AuditRecordRepository_Create_Call) Run

func (*AuditRecordRepository_Create_Call) RunAndReturn

type AuditRecordRepository_Expecter

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

func (*AuditRecordRepository_Expecter) Create

func (_e *AuditRecordRepository_Expecter) Create(ctx interface{}, auditRecord interface{}) *AuditRecordRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • auditRecord models.AuditRecord

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

func (_m *GroupService) EXPECT() *GroupService_Expecter

func (*GroupService) Get

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

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

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

type GroupService_Expecter

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

func (*GroupService_Expecter) Get

func (_e *GroupService_Expecter) Get(ctx interface{}, idOrName interface{}) *GroupService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • idOrName 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

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 (_c *GroupService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *GroupService_Get_Call

func (*GroupService_Get_Call) RunAndReturn

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

type OrgService

type OrgService struct {
	mock.Mock
}

OrgService is an autogenerated mock type for the OrgService type

func NewOrgService

func NewOrgService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrgService

NewOrgService creates a new instance of OrgService. 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 (*OrgService) EXPECT

func (_m *OrgService) EXPECT() *OrgService_Expecter

func (*OrgService) Get

func (_m *OrgService) Get(ctx context.Context, idOrName string) (organization.Organization, error)

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

type OrgService_Expecter

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

func (*OrgService_Expecter) Get

func (_e *OrgService_Expecter) Get(ctx interface{}, idOrName interface{}) *OrgService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • idOrName string

type OrgService_Get_Call

type OrgService_Get_Call struct {
	*mock.Call
}

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

func (*OrgService_Get_Call) Return

func (*OrgService_Get_Call) Run

func (_c *OrgService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *OrgService_Get_Call

func (*OrgService_Get_Call) RunAndReturn

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

func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) (policy.Policy, error)

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

func (*PolicyService) Delete

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

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

func (*PolicyService) EXPECT

func (_m *PolicyService) EXPECT() *PolicyService_Expecter

func (*PolicyService) List

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

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

type PolicyService_Create_Call

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

func (*PolicyService_Create_Call) RunAndReturn

type PolicyService_Delete_Call

type PolicyService_Delete_Call struct {
	*mock.Call
}

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

func (*PolicyService_Delete_Call) Return

func (*PolicyService_Delete_Call) Run

func (*PolicyService_Delete_Call) RunAndReturn

type PolicyService_Expecter

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

func (*PolicyService_Expecter) Create

func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • pol policy.Policy

func (*PolicyService_Expecter) Delete

func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*PolicyService_Expecter) List

func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt policy.Filter

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

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

func (*ProjectService) Get

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

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

func (*ProjectService) List

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

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

type ProjectService_Expecter

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

func (*ProjectService_Expecter) Get

func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrName interface{}) *ProjectService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • idOrName string

func (*ProjectService_Expecter) List

func (_e *ProjectService_Expecter) List(ctx interface{}, flt interface{}) *ProjectService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt project.Filter

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, idOrName string)) *ProjectService_Get_Call

func (*ProjectService_Get_Call) RunAndReturn

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

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

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

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, idOrName string) (role.Role, error)

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

type RoleService_Expecter

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

func (*RoleService_Expecter) Get

func (_e *RoleService_Expecter) Get(ctx interface{}, idOrName interface{}) *RoleService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • idOrName string

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, idOrName string)) *RoleService_Get_Call

func (*RoleService_Get_Call) RunAndReturn

func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call

type ServiceuserService

type ServiceuserService struct {
	mock.Mock
}

ServiceuserService is an autogenerated mock type for the ServiceuserService type

func NewServiceuserService

func NewServiceuserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceuserService

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

func (*ServiceuserService) EXPECT

func (*ServiceuserService) Get

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

type ServiceuserService_Expecter

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

func (*ServiceuserService_Expecter) Get

func (_e *ServiceuserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceuserService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

type ServiceuserService_Get_Call

type ServiceuserService_Get_Call struct {
	*mock.Call
}

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

func (*ServiceuserService_Get_Call) Return

func (*ServiceuserService_Get_Call) Run

func (*ServiceuserService_Get_Call) RunAndReturn

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

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) GetByID

func (_m *UserService) GetByID(ctx context.Context, id string) (user.User, error)

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

type UserService_Expecter

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

func (*UserService_Expecter) GetByID

func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type UserService_GetByID_Call

type UserService_GetByID_Call struct {
	*mock.Call
}

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

func (*UserService_GetByID_Call) Return

func (*UserService_GetByID_Call) Run

func (*UserService_GetByID_Call) RunAndReturn

Jump to

Keyboard shortcuts

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