mocks

package
v0.12.6-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 ActivityManager

type ActivityManager struct {
	mock.Mock
}

ActivityManager is an autogenerated mock type for the activityManager type

func NewActivityManager added in v0.9.0

func NewActivityManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityManager

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

func (*ActivityManager) GetActivities

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

type ActivityManager_Expecter

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

func (*ActivityManager_Expecter) GetActivities

func (_e *ActivityManager_Expecter) GetActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ActivityManager_GetActivities_Call

GetActivities is a helper method to define mock.On call

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

type ActivityManager_GetActivities_Call

type ActivityManager_GetActivities_Call struct {
	*mock.Call
}

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

func (*ActivityManager_GetActivities_Call) Return

func (*ActivityManager_GetActivities_Call) Run

func (*ActivityManager_GetActivities_Call) RunAndReturn added in v0.9.0

type AssignmentTyper added in v0.9.0

type AssignmentTyper struct {
	mock.Mock
}

AssignmentTyper is an autogenerated mock type for the assignmentTyper type

func NewAssignmentTyper added in v0.9.0

func NewAssignmentTyper(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssignmentTyper

NewAssignmentTyper creates a new instance of AssignmentTyper. 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 (*AssignmentTyper) EXPECT added in v0.9.0

func (*AssignmentTyper) IsExclusiveRoleAssignment added in v0.9.0

func (_m *AssignmentTyper) IsExclusiveRoleAssignment(_a0 context.Context) bool

IsExclusiveRoleAssignment provides a mock function with given fields: _a0

type AssignmentTyper_Expecter added in v0.9.0

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

func (*AssignmentTyper_Expecter) IsExclusiveRoleAssignment added in v0.9.0

func (_e *AssignmentTyper_Expecter) IsExclusiveRoleAssignment(_a0 interface{}) *AssignmentTyper_IsExclusiveRoleAssignment_Call

IsExclusiveRoleAssignment is a helper method to define mock.On call

  • _a0 context.Context

type AssignmentTyper_IsExclusiveRoleAssignment_Call added in v0.9.0

type AssignmentTyper_IsExclusiveRoleAssignment_Call struct {
	*mock.Call
}

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

func (*AssignmentTyper_IsExclusiveRoleAssignment_Call) Return added in v0.9.0

func (*AssignmentTyper_IsExclusiveRoleAssignment_Call) Run added in v0.9.0

func (*AssignmentTyper_IsExclusiveRoleAssignment_Call) RunAndReturn added in v0.9.0

type AuditLogger

type AuditLogger struct {
	mock.Mock
}

AuditLogger is an autogenerated mock type for the auditLogger type

func NewAuditLogger added in v0.9.0

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.9.0

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

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v0.8.0

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) CreateConfig

func (_m *Client) CreateConfig(_a0 *domain.ProviderConfig) error

CreateConfig provides a mock function with given fields: _a0

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetAccountTypes

func (_m *Client) GetAccountTypes() []string

GetAccountTypes provides a mock function with given fields:

func (*Client) GetPermissions

func (_m *Client) GetPermissions(p *domain.ProviderConfig, resourceType string, role string) ([]interface{}, error)

GetPermissions provides a mock function with given fields: p, resourceType, role

func (*Client) GetResources

func (_m *Client) GetResources(ctx context.Context, pc *domain.ProviderConfig) ([]*domain.Resource, error)

GetResources provides a mock function with given fields: ctx, pc

func (*Client) GetRoles

func (_m *Client) GetRoles(pc *domain.ProviderConfig, resourceType string) ([]*domain.Role, error)

GetRoles provides a mock function with given fields: pc, resourceType

func (*Client) GetType

func (_m *Client) GetType() string

GetType provides a mock function with given fields:

func (*Client) GrantAccess

func (_m *Client) GrantAccess(_a0 context.Context, _a1 *domain.ProviderConfig, _a2 domain.Grant) error

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

func (*Client) ListAccess

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

func (*Client) RevokeAccess

func (_m *Client) RevokeAccess(_a0 context.Context, _a1 *domain.ProviderConfig, _a2 domain.Grant) error

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

type Client_CreateConfig_Call

type Client_CreateConfig_Call struct {
	*mock.Call
}

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

func (*Client_CreateConfig_Call) Return

func (*Client_CreateConfig_Call) Run

func (*Client_CreateConfig_Call) RunAndReturn added in v0.8.0

type Client_Expecter

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

func (*Client_Expecter) CreateConfig

func (_e *Client_Expecter) CreateConfig(_a0 interface{}) *Client_CreateConfig_Call

CreateConfig is a helper method to define mock.On call

  • _a0 *domain.ProviderConfig

func (*Client_Expecter) GetAccountTypes

func (_e *Client_Expecter) GetAccountTypes() *Client_GetAccountTypes_Call

GetAccountTypes is a helper method to define mock.On call

func (*Client_Expecter) GetPermissions

func (_e *Client_Expecter) GetPermissions(p interface{}, resourceType interface{}, role interface{}) *Client_GetPermissions_Call

GetPermissions is a helper method to define mock.On call

  • p *domain.ProviderConfig
  • resourceType string
  • role string

func (*Client_Expecter) GetResources

func (_e *Client_Expecter) GetResources(ctx interface{}, pc interface{}) *Client_GetResources_Call

GetResources is a helper method to define mock.On call

  • ctx context.Context
  • pc *domain.ProviderConfig

func (*Client_Expecter) GetRoles

func (_e *Client_Expecter) GetRoles(pc interface{}, resourceType interface{}) *Client_GetRoles_Call

GetRoles is a helper method to define mock.On call

  • pc *domain.ProviderConfig
  • resourceType string

func (*Client_Expecter) GetType

func (_e *Client_Expecter) GetType() *Client_GetType_Call

GetType is a helper method to define mock.On call

func (*Client_Expecter) GrantAccess

func (_e *Client_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ProviderConfig
  • _a2 domain.Grant

func (*Client_Expecter) ListAccess

func (_e *Client_Expecter) ListAccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_ListAccess_Call

ListAccess is a helper method to define mock.On call

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

func (*Client_Expecter) RevokeAccess

func (_e *Client_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ProviderConfig
  • _a2 domain.Grant

type Client_GetAccountTypes_Call

type Client_GetAccountTypes_Call struct {
	*mock.Call
}

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

func (*Client_GetAccountTypes_Call) Return

func (*Client_GetAccountTypes_Call) Run

func (*Client_GetAccountTypes_Call) RunAndReturn added in v0.8.0

func (_c *Client_GetAccountTypes_Call) RunAndReturn(run func() []string) *Client_GetAccountTypes_Call

type Client_GetPermissions_Call

type Client_GetPermissions_Call struct {
	*mock.Call
}

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

func (*Client_GetPermissions_Call) Return

func (_c *Client_GetPermissions_Call) Return(_a0 []interface{}, _a1 error) *Client_GetPermissions_Call

func (*Client_GetPermissions_Call) Run

func (_c *Client_GetPermissions_Call) Run(run func(p *domain.ProviderConfig, resourceType string, role string)) *Client_GetPermissions_Call

func (*Client_GetPermissions_Call) RunAndReturn added in v0.8.0

func (_c *Client_GetPermissions_Call) RunAndReturn(run func(*domain.ProviderConfig, string, string) ([]interface{}, error)) *Client_GetPermissions_Call

type Client_GetResources_Call

type Client_GetResources_Call struct {
	*mock.Call
}

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

func (*Client_GetResources_Call) Return

func (*Client_GetResources_Call) Run

func (*Client_GetResources_Call) RunAndReturn added in v0.8.0

type Client_GetRoles_Call

type Client_GetRoles_Call struct {
	*mock.Call
}

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

func (*Client_GetRoles_Call) Return

func (_c *Client_GetRoles_Call) Return(_a0 []*domain.Role, _a1 error) *Client_GetRoles_Call

func (*Client_GetRoles_Call) Run

func (_c *Client_GetRoles_Call) Run(run func(pc *domain.ProviderConfig, resourceType string)) *Client_GetRoles_Call

func (*Client_GetRoles_Call) RunAndReturn added in v0.8.0

type Client_GetType_Call

type Client_GetType_Call struct {
	*mock.Call
}

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

func (*Client_GetType_Call) Return

func (*Client_GetType_Call) Run

func (_c *Client_GetType_Call) Run(run func()) *Client_GetType_Call

func (*Client_GetType_Call) RunAndReturn added in v0.8.0

func (_c *Client_GetType_Call) RunAndReturn(run func() string) *Client_GetType_Call

type Client_GrantAccess_Call

type Client_GrantAccess_Call struct {
	*mock.Call
}

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

func (*Client_GrantAccess_Call) Return

func (*Client_GrantAccess_Call) Run

func (*Client_GrantAccess_Call) RunAndReturn added in v0.8.0

type Client_ListAccess_Call

type Client_ListAccess_Call struct {
	*mock.Call
}

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

func (*Client_ListAccess_Call) Return

func (*Client_ListAccess_Call) Run

func (*Client_ListAccess_Call) RunAndReturn added in v0.8.0

type Client_RevokeAccess_Call

type Client_RevokeAccess_Call struct {
	*mock.Call
}

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

func (*Client_RevokeAccess_Call) Return

func (*Client_RevokeAccess_Call) Run

func (*Client_RevokeAccess_Call) RunAndReturn added in v0.8.0

type DormancyChecker added in v0.7.5

type DormancyChecker struct {
	mock.Mock
}

DormancyChecker is an autogenerated mock type for the dormancyChecker type

func NewDormancyChecker added in v0.7.5

func NewDormancyChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *DormancyChecker

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

func (_m *DormancyChecker) 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 (*DormancyChecker) EXPECT added in v0.7.5

func (*DormancyChecker) ListActivities added in v0.7.5

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

type DormancyChecker_CorrelateGrantActivities_Call added in v0.7.5

type DormancyChecker_CorrelateGrantActivities_Call struct {
	*mock.Call
}

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

func (*DormancyChecker_CorrelateGrantActivities_Call) Return added in v0.7.5

func (*DormancyChecker_CorrelateGrantActivities_Call) Run added in v0.7.5

func (*DormancyChecker_CorrelateGrantActivities_Call) RunAndReturn added in v0.7.5

type DormancyChecker_Expecter added in v0.7.5

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

func (*DormancyChecker_Expecter) CorrelateGrantActivities added in v0.7.5

func (_e *DormancyChecker_Expecter) CorrelateGrantActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *DormancyChecker_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 (*DormancyChecker_Expecter) ListActivities added in v0.7.5

func (_e *DormancyChecker_Expecter) ListActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DormancyChecker_ListActivities_Call

ListActivities is a helper method to define mock.On call

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

type DormancyChecker_ListActivities_Call added in v0.7.5

type DormancyChecker_ListActivities_Call struct {
	*mock.Call
}

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

func (*DormancyChecker_ListActivities_Call) Return added in v0.7.5

func (*DormancyChecker_ListActivities_Call) Run added in v0.7.5

func (*DormancyChecker_ListActivities_Call) RunAndReturn added in v0.7.5

type ProviderActivityService

type ProviderActivityService struct {
	mock.Mock
}

ProviderActivityService is an autogenerated mock type for the providerActivityService type

func (*ProviderActivityService) BulkInsert

func (_m *ProviderActivityService) BulkInsert(_a0 context.Context, _a1 []*domain.Activity) error

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

func (*ProviderActivityService) EXPECT

type ProviderActivityService_BulkInsert_Call

type ProviderActivityService_BulkInsert_Call struct {
	*mock.Call
}

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

func (*ProviderActivityService_BulkInsert_Call) Return

func (*ProviderActivityService_BulkInsert_Call) Run

type ProviderActivityService_Expecter

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

func (*ProviderActivityService_Expecter) BulkInsert

func (_e *ProviderActivityService_Expecter) BulkInsert(_a0 interface{}, _a1 interface{}) *ProviderActivityService_BulkInsert_Call

BulkInsert is a helper method to define mock.On call

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

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the repository type

func NewRepository added in v0.9.0

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

func (_m *Repository) Create(_a0 context.Context, _a1 *domain.Provider) error

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

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

func (_m *Repository) Find(_a0 context.Context) ([]*domain.Provider, error)

Find provides a mock function with given fields: _a0

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, id string) (*domain.Provider, error)

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

func (*Repository) GetOne

func (_m *Repository) GetOne(ctx context.Context, pType string, urn string) (*domain.Provider, error)

GetOne provides a mock function with given fields: ctx, pType, urn

func (*Repository) GetTypes

func (_m *Repository) GetTypes(_a0 context.Context) ([]domain.ProviderType, error)

GetTypes provides a mock function with given fields: _a0

func (*Repository) Update

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

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

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

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

type Repository_Expecter

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

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Provider

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

func (_e *Repository_Expecter) Find(_a0 interface{}) *Repository_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context

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

func (_e *Repository_Expecter) GetOne(ctx interface{}, pType interface{}, urn interface{}) *Repository_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • pType string
  • urn string

func (*Repository_Expecter) GetTypes

func (_e *Repository_Expecter) GetTypes(_a0 interface{}) *Repository_GetTypes_Call

GetTypes is a helper method to define mock.On call

  • _a0 context.Context

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.Provider

type Repository_Find_Call

type Repository_Find_Call struct {
	*mock.Call
}

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

func (*Repository_Find_Call) Return

func (*Repository_Find_Call) Run

func (_c *Repository_Find_Call) Run(run func(_a0 context.Context)) *Repository_Find_Call

func (*Repository_Find_Call) RunAndReturn added in v0.9.0

func (_c *Repository_Find_Call) RunAndReturn(run func(context.Context) ([]*domain.Provider, error)) *Repository_Find_Call

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.9.0

type Repository_GetOne_Call

type Repository_GetOne_Call struct {
	*mock.Call
}

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

func (*Repository_GetOne_Call) Return

func (*Repository_GetOne_Call) Run

func (_c *Repository_GetOne_Call) Run(run func(ctx context.Context, pType string, urn string)) *Repository_GetOne_Call

func (*Repository_GetOne_Call) RunAndReturn added in v0.9.0

type Repository_GetTypes_Call

type Repository_GetTypes_Call struct {
	*mock.Call
}

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

func (*Repository_GetTypes_Call) Return

func (*Repository_GetTypes_Call) Run

func (*Repository_GetTypes_Call) RunAndReturn added in v0.9.0

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.9.0

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the resourceService type

func NewResourceService added in v0.9.0

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

func (_m *ResourceService) BatchDelete(_a0 context.Context, _a1 []string) error

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

func (*ResourceService) BulkUpsert

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

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

func (*ResourceService) EXPECT

func (*ResourceService) Find

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

type ResourceService_BatchDelete_Call

type ResourceService_BatchDelete_Call struct {
	*mock.Call
}

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

func (*ResourceService_BatchDelete_Call) Return

func (*ResourceService_BatchDelete_Call) Run

func (*ResourceService_BatchDelete_Call) RunAndReturn added in v0.9.0

type ResourceService_BulkUpsert_Call

type ResourceService_BulkUpsert_Call struct {
	*mock.Call
}

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

func (*ResourceService_BulkUpsert_Call) Return

func (*ResourceService_BulkUpsert_Call) Run

func (*ResourceService_BulkUpsert_Call) RunAndReturn added in v0.9.0

type ResourceService_Expecter

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

func (*ResourceService_Expecter) BatchDelete

func (_e *ResourceService_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *ResourceService_BatchDelete_Call

BatchDelete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []string

func (*ResourceService_Expecter) BulkUpsert

func (_e *ResourceService_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *ResourceService_BulkUpsert_Call

BulkUpsert is a helper method to define mock.On call

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

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.9.0

Jump to

Keyboard shortcuts

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