mocks

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 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 (*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.ImportActivitiesFilter

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

type AuditLogger

type AuditLogger struct {
	mock.Mock
}

AuditLogger is an autogenerated mock type for the auditLogger type

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

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

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(pc *domain.ProviderConfig) ([]*domain.Resource, error)

GetResources provides a mock function with given fields: 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 *domain.ProviderConfig, _a1 domain.Grant) error

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

func (*Client) ListAccess

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

func (*Client) RevokeAccess

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

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

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

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(pc interface{}) *Client_GetResources_Call

GetResources is a helper method to define mock.On call

  • 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{}) *Client_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • _a0 *domain.ProviderConfig
  • _a1 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{}) *Client_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • _a0 *domain.ProviderConfig
  • _a1 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

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

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

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

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

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

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

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

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 mockConstructorTestingTNewDormancyChecker) *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.

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

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

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

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

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

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

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

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the resourceService type

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

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

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

Jump to

Keyboard shortcuts

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