mocks

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLogger

type AuditLogger struct {
	mock.Mock
}

AuditLogger is an autogenerated mock type for the auditLogger type

func NewAuditLogger added in v0.7.5

func NewAuditLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditLogger

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

func (_m *AuditLogger) EXPECT() *AuditLogger_Expecter

func (*AuditLogger) Log

func (_m *AuditLogger) Log(ctx context.Context, action string, data interface{}) error

Log provides a mock function with given fields: ctx, action, data

type AuditLogger_Expecter

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

func (*AuditLogger_Expecter) Log

func (_e *AuditLogger_Expecter) Log(ctx interface{}, action interface{}, data interface{}) *AuditLogger_Log_Call

Log is a helper method to define mock.On call

  • ctx context.Context
  • action string
  • data interface{}

type AuditLogger_Log_Call

type AuditLogger_Log_Call struct {
	*mock.Call
}

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

func (*AuditLogger_Log_Call) Return

func (*AuditLogger_Log_Call) Run

func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call

func (*AuditLogger_Log_Call) RunAndReturn added in v0.7.5

func (_c *AuditLogger_Log_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *AuditLogger_Log_Call

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the notifier type

func NewNotifier added in v0.7.5

func NewNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Notifier

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

func (_m *Notifier) EXPECT() *Notifier_Expecter

func (*Notifier) Notify

func (_m *Notifier) Notify(_a0 context.Context, _a1 []domain.Notification) []error

Notify provides a mock function with given fields: _a0, _a1

type Notifier_Expecter

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

func (*Notifier_Expecter) Notify

func (_e *Notifier_Expecter) Notify(_a0 interface{}, _a1 interface{}) *Notifier_Notify_Call

Notify is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []domain.Notification

type Notifier_Notify_Call

type Notifier_Notify_Call struct {
	*mock.Call
}

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

func (*Notifier_Notify_Call) Return

func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call

func (*Notifier_Notify_Call) Run

func (*Notifier_Notify_Call) RunAndReturn added in v0.7.5

type ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the providerService type

func NewProviderService added in v0.7.5

func NewProviderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderService

NewProviderService creates a new instance of ProviderService. 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 (*ProviderService) CorrelateGrantActivities added in v0.7.5

func (_m *ProviderService) CorrelateGrantActivities(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Grant, _a3 []*domain.Activity) error

CorrelateGrantActivities provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*ProviderService) EXPECT

func (*ProviderService) GetByID

func (_m *ProviderService) GetByID(_a0 context.Context, _a1 string) (*domain.Provider, error)

GetByID provides a mock function with given fields: _a0, _a1

func (*ProviderService) GrantAccess added in v0.11.0

func (_m *ProviderService) GrantAccess(_a0 context.Context, _a1 domain.Grant) error

GrantAccess provides a mock function with given fields: _a0, _a1

func (*ProviderService) ListAccess

ListAccess provides a mock function with given fields: _a0, _a1, _a2

func (*ProviderService) ListActivities added in v0.7.5

ListActivities provides a mock function with given fields: _a0, _a1, _a2

func (*ProviderService) RevokeAccess

func (_m *ProviderService) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error

RevokeAccess provides a mock function with given fields: _a0, _a1

type ProviderService_CorrelateGrantActivities_Call added in v0.7.5

type ProviderService_CorrelateGrantActivities_Call struct {
	*mock.Call
}

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

func (*ProviderService_CorrelateGrantActivities_Call) Return added in v0.7.5

func (*ProviderService_CorrelateGrantActivities_Call) Run added in v0.7.5

func (*ProviderService_CorrelateGrantActivities_Call) RunAndReturn added in v0.7.5

type ProviderService_Expecter

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

func (*ProviderService_Expecter) CorrelateGrantActivities added in v0.7.5

func (_e *ProviderService_Expecter) CorrelateGrantActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_CorrelateGrantActivities_Call

CorrelateGrantActivities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Provider
  • _a2 []*domain.Grant
  • _a3 []*domain.Activity

func (*ProviderService_Expecter) GetByID

func (_e *ProviderService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *ProviderService_GetByID_Call

GetByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ProviderService_Expecter) GrantAccess added in v0.11.0

func (_e *ProviderService_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}) *ProviderService_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Grant

func (*ProviderService_Expecter) ListAccess

func (_e *ProviderService_Expecter) ListAccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_ListAccess_Call

ListAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Provider
  • _a2 []*domain.Resource

func (*ProviderService_Expecter) ListActivities added in v0.7.5

func (_e *ProviderService_Expecter) ListActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_ListActivities_Call

ListActivities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Provider
  • _a2 domain.ListActivitiesFilter

func (*ProviderService_Expecter) RevokeAccess

func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Grant

type ProviderService_GetByID_Call

type ProviderService_GetByID_Call struct {
	*mock.Call
}

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

func (*ProviderService_GetByID_Call) Return

func (*ProviderService_GetByID_Call) Run

func (*ProviderService_GetByID_Call) RunAndReturn added in v0.7.5

type ProviderService_GrantAccess_Call added in v0.11.0

type ProviderService_GrantAccess_Call struct {
	*mock.Call
}

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

func (*ProviderService_GrantAccess_Call) Return added in v0.11.0

func (*ProviderService_GrantAccess_Call) Run added in v0.11.0

func (*ProviderService_GrantAccess_Call) RunAndReturn added in v0.11.0

type ProviderService_ListAccess_Call

type ProviderService_ListAccess_Call struct {
	*mock.Call
}

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

func (*ProviderService_ListAccess_Call) Return

func (*ProviderService_ListAccess_Call) Run

func (*ProviderService_ListAccess_Call) RunAndReturn added in v0.7.5

type ProviderService_ListActivities_Call added in v0.7.5

type ProviderService_ListActivities_Call struct {
	*mock.Call
}

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

func (*ProviderService_ListActivities_Call) Return added in v0.7.5

func (*ProviderService_ListActivities_Call) Run added in v0.7.5

func (*ProviderService_ListActivities_Call) RunAndReturn added in v0.7.5

type ProviderService_RevokeAccess_Call

type ProviderService_RevokeAccess_Call struct {
	*mock.Call
}

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

func (*ProviderService_RevokeAccess_Call) Return

func (*ProviderService_RevokeAccess_Call) Run

func (*ProviderService_RevokeAccess_Call) RunAndReturn added in v0.7.5

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the repository type

func NewRepository added in v0.7.5

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

func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []*domain.Grant) error

BulkUpsert provides a mock function with given fields: _a0, _a1

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetByID

func (_m *Repository) GetByID(_a0 context.Context, _a1 string) (*domain.Grant, error)

GetByID provides a mock function with given fields: _a0, _a1

func (*Repository) GetGrantsTotalCount added in v0.7.5

func (_m *Repository) GetGrantsTotalCount(_a0 context.Context, _a1 domain.ListGrantsFilter) (int64, error)

GetGrantsTotalCount provides a mock function with given fields: _a0, _a1

func (*Repository) List

List provides a mock function with given fields: _a0, _a1

func (*Repository) ListUserRoles added in v0.7.6

func (_m *Repository) ListUserRoles(_a0 context.Context, _a1 string) ([]string, error)

ListUserRoles provides a mock function with given fields: _a0, _a1

func (*Repository) Update

func (_m *Repository) Update(_a0 context.Context, _a1 *domain.Grant) error

Update provides a mock function with given fields: _a0, _a1

type Repository_BulkUpsert_Call

type Repository_BulkUpsert_Call struct {
	*mock.Call
}

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

func (*Repository_BulkUpsert_Call) Return

func (*Repository_BulkUpsert_Call) Run

func (*Repository_BulkUpsert_Call) RunAndReturn added in v0.7.5

type Repository_Expecter

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

func (*Repository_Expecter) BulkUpsert

func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call

BulkUpsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []*domain.Grant

func (*Repository_Expecter) GetByID

func (_e *Repository_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *Repository_GetByID_Call

GetByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*Repository_Expecter) GetGrantsTotalCount added in v0.7.5

func (_e *Repository_Expecter) GetGrantsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetGrantsTotalCount_Call

GetGrantsTotalCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListGrantsFilter

func (*Repository_Expecter) List

func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListGrantsFilter

func (*Repository_Expecter) ListUserRoles added in v0.7.6

func (_e *Repository_Expecter) ListUserRoles(_a0 interface{}, _a1 interface{}) *Repository_ListUserRoles_Call

ListUserRoles is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*Repository_Expecter) Update

func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Grant

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 added in v0.7.5

type Repository_GetGrantsTotalCount_Call added in v0.7.5

type Repository_GetGrantsTotalCount_Call struct {
	*mock.Call
}

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

func (*Repository_GetGrantsTotalCount_Call) Return added in v0.7.5

func (*Repository_GetGrantsTotalCount_Call) Run added in v0.7.5

func (*Repository_GetGrantsTotalCount_Call) RunAndReturn added in v0.7.5

type Repository_ListUserRoles_Call added in v0.7.6

type Repository_ListUserRoles_Call struct {
	*mock.Call
}

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

func (*Repository_ListUserRoles_Call) Return added in v0.7.6

func (*Repository_ListUserRoles_Call) Run added in v0.7.6

func (*Repository_ListUserRoles_Call) RunAndReturn added in v0.7.6

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 added in v0.7.5

type Repository_Update_Call

type Repository_Update_Call struct {
	*mock.Call
}

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

func (*Repository_Update_Call) Return

func (*Repository_Update_Call) Run

func (*Repository_Update_Call) RunAndReturn added in v0.7.5

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the resourceService type

func NewResourceService added in v0.7.5

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

func (*ResourceService) Find

Find provides a mock function with given fields: _a0, _a1

type ResourceService_Expecter

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

func (*ResourceService_Expecter) Find

func (_e *ResourceService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ResourceService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListResourcesFilter

type ResourceService_Find_Call

type ResourceService_Find_Call struct {
	*mock.Call
}

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

func (*ResourceService_Find_Call) Return

func (*ResourceService_Find_Call) Run

func (*ResourceService_Find_Call) RunAndReturn added in v0.7.5

Jump to

Keyboard shortcuts

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