mocks

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditService

type AuditService struct {
	mock.Mock
}

AuditService is an autogenerated mock type for the AuditService type

func NewAuditService

func NewAuditService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditService

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

func (_m *AuditService) Create(ctx context.Context, log *audit.Log) error

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

func (*AuditService) EXPECT

func (_m *AuditService) EXPECT() *AuditService_Expecter

func (*AuditService) GetByID

func (_m *AuditService) GetByID(ctx context.Context, id string) (audit.Log, error)

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

func (*AuditService) List

func (_m *AuditService) List(ctx context.Context, filter audit.Filter) ([]audit.Log, error)

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

type AuditService_Create_Call

type AuditService_Create_Call struct {
	*mock.Call
}

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

func (*AuditService_Create_Call) Return

func (*AuditService_Create_Call) Run

func (*AuditService_Create_Call) RunAndReturn

type AuditService_Expecter

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

func (*AuditService_Expecter) Create

func (_e *AuditService_Expecter) Create(ctx interface{}, log interface{}) *AuditService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • log *audit.Log

func (*AuditService_Expecter) GetByID

func (_e *AuditService_Expecter) GetByID(ctx interface{}, id interface{}) *AuditService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*AuditService_Expecter) List

func (_e *AuditService_Expecter) List(ctx interface{}, filter interface{}) *AuditService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter audit.Filter

type AuditService_GetByID_Call

type AuditService_GetByID_Call struct {
	*mock.Call
}

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

func (*AuditService_GetByID_Call) Return

func (*AuditService_GetByID_Call) Run

func (*AuditService_GetByID_Call) RunAndReturn

type AuditService_List_Call

type AuditService_List_Call struct {
	*mock.Call
}

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

func (*AuditService_List_Call) Return

func (*AuditService_List_Call) Run

func (_c *AuditService_List_Call) Run(run func(ctx context.Context, filter audit.Filter)) *AuditService_List_Call

func (*AuditService_List_Call) RunAndReturn

type AuthnService

type AuthnService struct {
	mock.Mock
}

AuthnService is an autogenerated mock type for the AuthnService type

func NewAuthnService

func NewAuthnService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthnService

NewAuthnService creates a new instance of AuthnService. 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 (*AuthnService) BuildToken

func (_m *AuthnService) BuildToken(ctx context.Context, principalID string, metadata map[string]string) ([]byte, error)

BuildToken provides a mock function with given fields: ctx, principalID, metadata

func (*AuthnService) EXPECT

func (_m *AuthnService) EXPECT() *AuthnService_Expecter

func (*AuthnService) FinishFlow

FinishFlow provides a mock function with given fields: ctx, request

func (*AuthnService) GetPrincipal

GetPrincipal provides a mock function with given fields: ctx, via

func (*AuthnService) InitFlows

func (_m *AuthnService) InitFlows(ctx context.Context) error

InitFlows provides a mock function with given fields: ctx

func (*AuthnService) JWKs

func (_m *AuthnService) JWKs(ctx context.Context) jwk.Set

JWKs provides a mock function with given fields: ctx

func (*AuthnService) SanitizeCallbackURL added in v0.7.2

func (_m *AuthnService) SanitizeCallbackURL(url string) string

SanitizeCallbackURL provides a mock function with given fields: url

func (*AuthnService) SanitizeReturnToURL added in v0.7.2

func (_m *AuthnService) SanitizeReturnToURL(url string) string

SanitizeReturnToURL provides a mock function with given fields: url

func (*AuthnService) StartFlow

StartFlow provides a mock function with given fields: ctx, request

func (*AuthnService) SupportedStrategies

func (_m *AuthnService) SupportedStrategies() []string

SupportedStrategies provides a mock function with given fields:

type AuthnService_BuildToken_Call

type AuthnService_BuildToken_Call struct {
	*mock.Call
}

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

func (*AuthnService_BuildToken_Call) Return

func (*AuthnService_BuildToken_Call) Run

func (_c *AuthnService_BuildToken_Call) Run(run func(ctx context.Context, principalID string, metadata map[string]string)) *AuthnService_BuildToken_Call

func (*AuthnService_BuildToken_Call) RunAndReturn

type AuthnService_Expecter

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

func (*AuthnService_Expecter) BuildToken

func (_e *AuthnService_Expecter) BuildToken(ctx interface{}, principalID interface{}, metadata interface{}) *AuthnService_BuildToken_Call

BuildToken is a helper method to define mock.On call

  • ctx context.Context
  • principalID string
  • metadata map[string]string

func (*AuthnService_Expecter) FinishFlow

func (_e *AuthnService_Expecter) FinishFlow(ctx interface{}, request interface{}) *AuthnService_FinishFlow_Call

FinishFlow is a helper method to define mock.On call

  • ctx context.Context
  • request authenticate.RegistrationFinishRequest

func (*AuthnService_Expecter) GetPrincipal

func (_e *AuthnService_Expecter) GetPrincipal(ctx interface{}, via ...interface{}) *AuthnService_GetPrincipal_Call

GetPrincipal is a helper method to define mock.On call

  • ctx context.Context
  • via ...authenticate.ClientAssertion

func (*AuthnService_Expecter) InitFlows

func (_e *AuthnService_Expecter) InitFlows(ctx interface{}) *AuthnService_InitFlows_Call

InitFlows is a helper method to define mock.On call

  • ctx context.Context

func (*AuthnService_Expecter) JWKs

func (_e *AuthnService_Expecter) JWKs(ctx interface{}) *AuthnService_JWKs_Call

JWKs is a helper method to define mock.On call

  • ctx context.Context

func (*AuthnService_Expecter) SanitizeCallbackURL added in v0.7.2

func (_e *AuthnService_Expecter) SanitizeCallbackURL(url interface{}) *AuthnService_SanitizeCallbackURL_Call

SanitizeCallbackURL is a helper method to define mock.On call

  • url string

func (*AuthnService_Expecter) SanitizeReturnToURL added in v0.7.2

func (_e *AuthnService_Expecter) SanitizeReturnToURL(url interface{}) *AuthnService_SanitizeReturnToURL_Call

SanitizeReturnToURL is a helper method to define mock.On call

  • url string

func (*AuthnService_Expecter) StartFlow

func (_e *AuthnService_Expecter) StartFlow(ctx interface{}, request interface{}) *AuthnService_StartFlow_Call

StartFlow is a helper method to define mock.On call

  • ctx context.Context
  • request authenticate.RegistrationStartRequest

func (*AuthnService_Expecter) SupportedStrategies

SupportedStrategies is a helper method to define mock.On call

type AuthnService_FinishFlow_Call

type AuthnService_FinishFlow_Call struct {
	*mock.Call
}

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

func (*AuthnService_FinishFlow_Call) Return

func (*AuthnService_FinishFlow_Call) Run

type AuthnService_GetPrincipal_Call

type AuthnService_GetPrincipal_Call struct {
	*mock.Call
}

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

func (*AuthnService_GetPrincipal_Call) Return

func (*AuthnService_GetPrincipal_Call) Run

func (*AuthnService_GetPrincipal_Call) RunAndReturn

type AuthnService_InitFlows_Call

type AuthnService_InitFlows_Call struct {
	*mock.Call
}

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

func (*AuthnService_InitFlows_Call) Return

func (*AuthnService_InitFlows_Call) Run

func (*AuthnService_InitFlows_Call) RunAndReturn

type AuthnService_JWKs_Call

type AuthnService_JWKs_Call struct {
	*mock.Call
}

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

func (*AuthnService_JWKs_Call) Return

func (*AuthnService_JWKs_Call) Run

func (*AuthnService_JWKs_Call) RunAndReturn

func (_c *AuthnService_JWKs_Call) RunAndReturn(run func(context.Context) jwk.Set) *AuthnService_JWKs_Call

type AuthnService_SanitizeCallbackURL_Call added in v0.7.2

type AuthnService_SanitizeCallbackURL_Call struct {
	*mock.Call
}

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

func (*AuthnService_SanitizeCallbackURL_Call) Return added in v0.7.2

func (*AuthnService_SanitizeCallbackURL_Call) Run added in v0.7.2

func (*AuthnService_SanitizeCallbackURL_Call) RunAndReturn added in v0.7.2

type AuthnService_SanitizeReturnToURL_Call added in v0.7.2

type AuthnService_SanitizeReturnToURL_Call struct {
	*mock.Call
}

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

func (*AuthnService_SanitizeReturnToURL_Call) Return added in v0.7.2

func (*AuthnService_SanitizeReturnToURL_Call) Run added in v0.7.2

func (*AuthnService_SanitizeReturnToURL_Call) RunAndReturn added in v0.7.2

type AuthnService_StartFlow_Call

type AuthnService_StartFlow_Call struct {
	*mock.Call
}

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

func (*AuthnService_StartFlow_Call) Return

func (*AuthnService_StartFlow_Call) Run

type AuthnService_SupportedStrategies_Call

type AuthnService_SupportedStrategies_Call struct {
	*mock.Call
}

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

func (*AuthnService_SupportedStrategies_Call) Return

func (*AuthnService_SupportedStrategies_Call) Run

func (*AuthnService_SupportedStrategies_Call) RunAndReturn

type BootstrapService

type BootstrapService struct {
	mock.Mock
}

BootstrapService is an autogenerated mock type for the BootstrapService type

func NewBootstrapService

func NewBootstrapService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BootstrapService

NewBootstrapService creates a new instance of BootstrapService. 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 (*BootstrapService) AppendSchema

func (_m *BootstrapService) AppendSchema(ctx context.Context, definition schema.ServiceDefinition) error

AppendSchema provides a mock function with given fields: ctx, definition

func (*BootstrapService) EXPECT

type BootstrapService_AppendSchema_Call

type BootstrapService_AppendSchema_Call struct {
	*mock.Call
}

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

func (*BootstrapService_AppendSchema_Call) Return

func (*BootstrapService_AppendSchema_Call) Run

func (*BootstrapService_AppendSchema_Call) RunAndReturn

type BootstrapService_Expecter

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

func (*BootstrapService_Expecter) AppendSchema

func (_e *BootstrapService_Expecter) AppendSchema(ctx interface{}, definition interface{}) *BootstrapService_AppendSchema_Call

AppendSchema is a helper method to define mock.On call

  • ctx context.Context
  • definition schema.ServiceDefinition

type CascadeDeleter

type CascadeDeleter struct {
	mock.Mock
}

CascadeDeleter is an autogenerated mock type for the CascadeDeleter type

func NewCascadeDeleter

func NewCascadeDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *CascadeDeleter

NewCascadeDeleter creates a new instance of CascadeDeleter. 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 (*CascadeDeleter) DeleteOrganization

func (_m *CascadeDeleter) DeleteOrganization(ctx context.Context, id string) error

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

func (*CascadeDeleter) DeleteProject

func (_m *CascadeDeleter) DeleteProject(ctx context.Context, id string) error

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

func (*CascadeDeleter) DeleteUser added in v0.7.6

func (_m *CascadeDeleter) DeleteUser(ctx context.Context, userID string) error

DeleteUser provides a mock function with given fields: ctx, userID

func (*CascadeDeleter) EXPECT

func (*CascadeDeleter) RemoveUsersFromOrg added in v0.7.5

func (_m *CascadeDeleter) RemoveUsersFromOrg(ctx context.Context, orgID string, userIDs []string) error

RemoveUsersFromOrg provides a mock function with given fields: ctx, orgID, userIDs

type CascadeDeleter_DeleteOrganization_Call

type CascadeDeleter_DeleteOrganization_Call struct {
	*mock.Call
}

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

func (*CascadeDeleter_DeleteOrganization_Call) Return

func (*CascadeDeleter_DeleteOrganization_Call) Run

func (*CascadeDeleter_DeleteOrganization_Call) RunAndReturn

type CascadeDeleter_DeleteProject_Call

type CascadeDeleter_DeleteProject_Call struct {
	*mock.Call
}

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

func (*CascadeDeleter_DeleteProject_Call) Return

func (*CascadeDeleter_DeleteProject_Call) Run

func (*CascadeDeleter_DeleteProject_Call) RunAndReturn

type CascadeDeleter_DeleteUser_Call added in v0.7.6

type CascadeDeleter_DeleteUser_Call struct {
	*mock.Call
}

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

func (*CascadeDeleter_DeleteUser_Call) Return added in v0.7.6

func (*CascadeDeleter_DeleteUser_Call) Run added in v0.7.6

func (*CascadeDeleter_DeleteUser_Call) RunAndReturn added in v0.7.6

type CascadeDeleter_Expecter

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

func (*CascadeDeleter_Expecter) DeleteOrganization

func (_e *CascadeDeleter_Expecter) DeleteOrganization(ctx interface{}, id interface{}) *CascadeDeleter_DeleteOrganization_Call

DeleteOrganization is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CascadeDeleter_Expecter) DeleteProject

func (_e *CascadeDeleter_Expecter) DeleteProject(ctx interface{}, id interface{}) *CascadeDeleter_DeleteProject_Call

DeleteProject is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CascadeDeleter_Expecter) DeleteUser added in v0.7.6

func (_e *CascadeDeleter_Expecter) DeleteUser(ctx interface{}, userID interface{}) *CascadeDeleter_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string

func (*CascadeDeleter_Expecter) RemoveUsersFromOrg added in v0.7.5

func (_e *CascadeDeleter_Expecter) RemoveUsersFromOrg(ctx interface{}, orgID interface{}, userIDs interface{}) *CascadeDeleter_RemoveUsersFromOrg_Call

RemoveUsersFromOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • userIDs []string

type CascadeDeleter_RemoveUsersFromOrg_Call added in v0.7.5

type CascadeDeleter_RemoveUsersFromOrg_Call struct {
	*mock.Call
}

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

func (*CascadeDeleter_RemoveUsersFromOrg_Call) Return added in v0.7.5

func (*CascadeDeleter_RemoveUsersFromOrg_Call) Run added in v0.7.5

func (*CascadeDeleter_RemoveUsersFromOrg_Call) RunAndReturn added in v0.7.5

type DomainService added in v0.7.2

type DomainService struct {
	mock.Mock
}

DomainService is an autogenerated mock type for the DomainService type

func NewDomainService added in v0.7.2

func NewDomainService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DomainService

NewDomainService creates a new instance of DomainService. 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 (*DomainService) Create added in v0.7.2

func (_m *DomainService) Create(ctx context.Context, toCreate domain.Domain) (domain.Domain, error)

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

func (*DomainService) Delete added in v0.7.2

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

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

func (*DomainService) EXPECT added in v0.7.2

func (_m *DomainService) EXPECT() *DomainService_Expecter

func (*DomainService) Get added in v0.7.2

func (_m *DomainService) Get(ctx context.Context, id string) (domain.Domain, error)

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

func (*DomainService) Join added in v0.7.2

func (_m *DomainService) Join(ctx context.Context, orgID string, userID string) error

Join provides a mock function with given fields: ctx, orgID, userID

func (*DomainService) List added in v0.7.2

func (_m *DomainService) List(ctx context.Context, flt domain.Filter) ([]domain.Domain, error)

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

func (*DomainService) ListJoinableOrgsByDomain added in v0.7.3

func (_m *DomainService) ListJoinableOrgsByDomain(ctx context.Context, email string) ([]string, error)

ListJoinableOrgsByDomain provides a mock function with given fields: ctx, email

func (*DomainService) VerifyDomain added in v0.7.2

func (_m *DomainService) VerifyDomain(ctx context.Context, id string) (domain.Domain, error)

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

type DomainService_Create_Call added in v0.7.2

type DomainService_Create_Call struct {
	*mock.Call
}

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

func (*DomainService_Create_Call) Return added in v0.7.2

func (*DomainService_Create_Call) Run added in v0.7.2

func (*DomainService_Create_Call) RunAndReturn added in v0.7.2

type DomainService_Delete_Call added in v0.7.2

type DomainService_Delete_Call struct {
	*mock.Call
}

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

func (*DomainService_Delete_Call) Return added in v0.7.2

func (*DomainService_Delete_Call) Run added in v0.7.2

func (*DomainService_Delete_Call) RunAndReturn added in v0.7.2

type DomainService_Expecter added in v0.7.2

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

func (*DomainService_Expecter) Create added in v0.7.2

func (_e *DomainService_Expecter) Create(ctx interface{}, toCreate interface{}) *DomainService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • toCreate domain.Domain

func (*DomainService_Expecter) Delete added in v0.7.2

func (_e *DomainService_Expecter) Delete(ctx interface{}, id interface{}) *DomainService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*DomainService_Expecter) Get added in v0.7.2

func (_e *DomainService_Expecter) Get(ctx interface{}, id interface{}) *DomainService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*DomainService_Expecter) Join added in v0.7.2

func (_e *DomainService_Expecter) Join(ctx interface{}, orgID interface{}, userID interface{}) *DomainService_Join_Call

Join is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • userID string

func (*DomainService_Expecter) List added in v0.7.2

func (_e *DomainService_Expecter) List(ctx interface{}, flt interface{}) *DomainService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt domain.Filter

func (*DomainService_Expecter) ListJoinableOrgsByDomain added in v0.7.3

func (_e *DomainService_Expecter) ListJoinableOrgsByDomain(ctx interface{}, email interface{}) *DomainService_ListJoinableOrgsByDomain_Call

ListJoinableOrgsByDomain is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*DomainService_Expecter) VerifyDomain added in v0.7.2

func (_e *DomainService_Expecter) VerifyDomain(ctx interface{}, id interface{}) *DomainService_VerifyDomain_Call

VerifyDomain is a helper method to define mock.On call

  • ctx context.Context
  • id string

type DomainService_Get_Call added in v0.7.2

type DomainService_Get_Call struct {
	*mock.Call
}

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

func (*DomainService_Get_Call) Return added in v0.7.2

func (*DomainService_Get_Call) Run added in v0.7.2

func (*DomainService_Get_Call) RunAndReturn added in v0.7.2

type DomainService_Join_Call added in v0.7.2

type DomainService_Join_Call struct {
	*mock.Call
}

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

func (*DomainService_Join_Call) Return added in v0.7.2

func (*DomainService_Join_Call) Run added in v0.7.2

func (_c *DomainService_Join_Call) Run(run func(ctx context.Context, orgID string, userID string)) *DomainService_Join_Call

func (*DomainService_Join_Call) RunAndReturn added in v0.7.2

type DomainService_ListJoinableOrgsByDomain_Call added in v0.7.3

type DomainService_ListJoinableOrgsByDomain_Call struct {
	*mock.Call
}

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

func (*DomainService_ListJoinableOrgsByDomain_Call) Return added in v0.7.3

func (*DomainService_ListJoinableOrgsByDomain_Call) Run added in v0.7.3

func (*DomainService_ListJoinableOrgsByDomain_Call) RunAndReturn added in v0.7.3

type DomainService_List_Call added in v0.7.2

type DomainService_List_Call struct {
	*mock.Call
}

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

func (*DomainService_List_Call) Return added in v0.7.2

func (*DomainService_List_Call) Run added in v0.7.2

func (*DomainService_List_Call) RunAndReturn added in v0.7.2

type DomainService_VerifyDomain_Call added in v0.7.2

type DomainService_VerifyDomain_Call struct {
	*mock.Call
}

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

func (*DomainService_VerifyDomain_Call) Return added in v0.7.2

func (*DomainService_VerifyDomain_Call) Run added in v0.7.2

func (*DomainService_VerifyDomain_Call) RunAndReturn added in v0.7.2

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

func (_m *GroupService) AddUsers(ctx context.Context, groupID string, userID []string) error

AddUsers provides a mock function with given fields: ctx, groupID, userID

func (*GroupService) Create

func (_m *GroupService) Create(ctx context.Context, grp group.Group) (group.Group, error)

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

func (*GroupService) Delete

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

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

func (*GroupService) Disable

func (_m *GroupService) Disable(ctx context.Context, id string) error

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

func (*GroupService) EXPECT

func (_m *GroupService) EXPECT() *GroupService_Expecter

func (*GroupService) Enable

func (_m *GroupService) Enable(ctx context.Context, id string) error

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

func (*GroupService) Get

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

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

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

func (*GroupService) ListByUser

func (_m *GroupService) ListByUser(ctx context.Context, userId string, flt group.Filter) ([]group.Group, error)

ListByUser provides a mock function with given fields: ctx, userId, flt

func (*GroupService) RemoveUsers

func (_m *GroupService) RemoveUsers(ctx context.Context, groupID string, userID []string) error

RemoveUsers provides a mock function with given fields: ctx, groupID, userID

func (*GroupService) Update

func (_m *GroupService) Update(ctx context.Context, grp group.Group) (group.Group, error)

Update provides a mock function with given fields: ctx, grp

type GroupService_AddUsers_Call

type GroupService_AddUsers_Call struct {
	*mock.Call
}

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

func (*GroupService_AddUsers_Call) Return

func (*GroupService_AddUsers_Call) Run

func (_c *GroupService_AddUsers_Call) Run(run func(ctx context.Context, groupID string, userID []string)) *GroupService_AddUsers_Call

func (*GroupService_AddUsers_Call) RunAndReturn

type GroupService_Create_Call

type GroupService_Create_Call struct {
	*mock.Call
}

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

func (*GroupService_Create_Call) Return

func (*GroupService_Create_Call) Run

func (*GroupService_Create_Call) RunAndReturn

type GroupService_Delete_Call

type GroupService_Delete_Call struct {
	*mock.Call
}

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

func (*GroupService_Delete_Call) Return

func (*GroupService_Delete_Call) Run

func (*GroupService_Delete_Call) RunAndReturn

type GroupService_Disable_Call

type GroupService_Disable_Call struct {
	*mock.Call
}

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

func (*GroupService_Disable_Call) Return

func (*GroupService_Disable_Call) Run

func (*GroupService_Disable_Call) RunAndReturn

type GroupService_Enable_Call

type GroupService_Enable_Call struct {
	*mock.Call
}

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

func (*GroupService_Enable_Call) Return

func (*GroupService_Enable_Call) Run

func (*GroupService_Enable_Call) RunAndReturn

type GroupService_Expecter

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

func (*GroupService_Expecter) AddUsers

func (_e *GroupService_Expecter) AddUsers(ctx interface{}, groupID interface{}, userID interface{}) *GroupService_AddUsers_Call

AddUsers is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • userID []string

func (*GroupService_Expecter) Create

func (_e *GroupService_Expecter) Create(ctx interface{}, grp interface{}) *GroupService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • grp group.Group

func (*GroupService_Expecter) Delete

func (_e *GroupService_Expecter) Delete(ctx interface{}, id interface{}) *GroupService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*GroupService_Expecter) Disable

func (_e *GroupService_Expecter) Disable(ctx interface{}, id interface{}) *GroupService_Disable_Call

Disable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*GroupService_Expecter) Enable

func (_e *GroupService_Expecter) Enable(ctx interface{}, id interface{}) *GroupService_Enable_Call

Enable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*GroupService_Expecter) Get

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

Get is a helper method to define mock.On call

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

func (*GroupService_Expecter) ListByUser

func (_e *GroupService_Expecter) ListByUser(ctx interface{}, userId interface{}, flt interface{}) *GroupService_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • ctx context.Context
  • userId string
  • flt group.Filter

func (*GroupService_Expecter) RemoveUsers

func (_e *GroupService_Expecter) RemoveUsers(ctx interface{}, groupID interface{}, userID interface{}) *GroupService_RemoveUsers_Call

RemoveUsers is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • userID []string

func (*GroupService_Expecter) Update

func (_e *GroupService_Expecter) Update(ctx interface{}, grp interface{}) *GroupService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • grp group.Group

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 (*GroupService_Get_Call) RunAndReturn

type GroupService_ListByUser_Call

type GroupService_ListByUser_Call struct {
	*mock.Call
}

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

func (*GroupService_ListByUser_Call) Return

func (*GroupService_ListByUser_Call) Run

func (*GroupService_ListByUser_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 GroupService_RemoveUsers_Call

type GroupService_RemoveUsers_Call struct {
	*mock.Call
}

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

func (*GroupService_RemoveUsers_Call) Return

func (*GroupService_RemoveUsers_Call) Run

func (_c *GroupService_RemoveUsers_Call) Run(run func(ctx context.Context, groupID string, userID []string)) *GroupService_RemoveUsers_Call

func (*GroupService_RemoveUsers_Call) RunAndReturn

type GroupService_Update_Call

type GroupService_Update_Call struct {
	*mock.Call
}

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

func (*GroupService_Update_Call) Return

func (*GroupService_Update_Call) Run

func (*GroupService_Update_Call) RunAndReturn

type InvitationService

type InvitationService struct {
	mock.Mock
}

InvitationService is an autogenerated mock type for the InvitationService type

func NewInvitationService

func NewInvitationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *InvitationService

NewInvitationService creates a new instance of InvitationService. 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 (*InvitationService) Accept

func (_m *InvitationService) Accept(ctx context.Context, id uuid.UUID) error

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

func (*InvitationService) Create

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

func (*InvitationService) Delete

func (_m *InvitationService) Delete(ctx context.Context, id uuid.UUID) error

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

func (*InvitationService) EXPECT

func (*InvitationService) Get

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

func (*InvitationService) List

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

func (*InvitationService) ListByUser

func (_m *InvitationService) ListByUser(ctx context.Context, userID string) ([]invitation.Invitation, error)

ListByUser provides a mock function with given fields: ctx, userID

type InvitationService_Accept_Call

type InvitationService_Accept_Call struct {
	*mock.Call
}

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

func (*InvitationService_Accept_Call) Return

func (*InvitationService_Accept_Call) Run

func (*InvitationService_Accept_Call) RunAndReturn

type InvitationService_Create_Call

type InvitationService_Create_Call struct {
	*mock.Call
}

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

func (*InvitationService_Create_Call) Return

func (*InvitationService_Create_Call) Run

func (*InvitationService_Create_Call) RunAndReturn

type InvitationService_Delete_Call

type InvitationService_Delete_Call struct {
	*mock.Call
}

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

func (*InvitationService_Delete_Call) Return

func (*InvitationService_Delete_Call) Run

func (*InvitationService_Delete_Call) RunAndReturn

type InvitationService_Expecter

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

func (*InvitationService_Expecter) Accept

func (_e *InvitationService_Expecter) Accept(ctx interface{}, id interface{}) *InvitationService_Accept_Call

Accept is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*InvitationService_Expecter) Create

func (_e *InvitationService_Expecter) Create(ctx interface{}, inv interface{}) *InvitationService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • inv invitation.Invitation

func (*InvitationService_Expecter) Delete

func (_e *InvitationService_Expecter) Delete(ctx interface{}, id interface{}) *InvitationService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*InvitationService_Expecter) Get

func (_e *InvitationService_Expecter) Get(ctx interface{}, id interface{}) *InvitationService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*InvitationService_Expecter) List

func (_e *InvitationService_Expecter) List(ctx interface{}, filter interface{}) *InvitationService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter invitation.Filter

func (*InvitationService_Expecter) ListByUser

func (_e *InvitationService_Expecter) ListByUser(ctx interface{}, userID interface{}) *InvitationService_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string

type InvitationService_Get_Call

type InvitationService_Get_Call struct {
	*mock.Call
}

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

func (*InvitationService_Get_Call) Return

func (*InvitationService_Get_Call) Run

func (*InvitationService_Get_Call) RunAndReturn

type InvitationService_ListByUser_Call

type InvitationService_ListByUser_Call struct {
	*mock.Call
}

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

func (*InvitationService_ListByUser_Call) Return

func (*InvitationService_ListByUser_Call) Run

func (*InvitationService_ListByUser_Call) RunAndReturn

type InvitationService_List_Call

type InvitationService_List_Call struct {
	*mock.Call
}

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

func (*InvitationService_List_Call) Return

func (*InvitationService_List_Call) Run

func (*InvitationService_List_Call) RunAndReturn

type MetaSchemaService

type MetaSchemaService struct {
	mock.Mock
}

MetaSchemaService is an autogenerated mock type for the MetaSchemaService type

func NewMetaSchemaService

func NewMetaSchemaService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetaSchemaService

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

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

func (*MetaSchemaService) Delete

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

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

func (*MetaSchemaService) EXPECT

func (*MetaSchemaService) Get

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

func (*MetaSchemaService) List

List provides a mock function with given fields: ctx

func (*MetaSchemaService) Update

Update provides a mock function with given fields: ctx, id, toUpdate

func (*MetaSchemaService) Validate

func (_m *MetaSchemaService) Validate(schema metadata.Metadata, data string) error

Validate provides a mock function with given fields: schema, data

type MetaSchemaService_Create_Call

type MetaSchemaService_Create_Call struct {
	*mock.Call
}

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

func (*MetaSchemaService_Create_Call) Return

func (*MetaSchemaService_Create_Call) Run

func (*MetaSchemaService_Create_Call) RunAndReturn

type MetaSchemaService_Delete_Call

type MetaSchemaService_Delete_Call struct {
	*mock.Call
}

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

func (*MetaSchemaService_Delete_Call) Return

func (*MetaSchemaService_Delete_Call) Run

func (*MetaSchemaService_Delete_Call) RunAndReturn

type MetaSchemaService_Expecter

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

func (*MetaSchemaService_Expecter) Create

func (_e *MetaSchemaService_Expecter) Create(ctx interface{}, toCreate interface{}) *MetaSchemaService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • toCreate metaschema.MetaSchema

func (*MetaSchemaService_Expecter) Delete

func (_e *MetaSchemaService_Expecter) Delete(ctx interface{}, id interface{}) *MetaSchemaService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MetaSchemaService_Expecter) Get

func (_e *MetaSchemaService_Expecter) Get(ctx interface{}, id interface{}) *MetaSchemaService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MetaSchemaService_Expecter) List

func (_e *MetaSchemaService_Expecter) List(ctx interface{}) *MetaSchemaService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

func (*MetaSchemaService_Expecter) Update

func (_e *MetaSchemaService_Expecter) Update(ctx interface{}, id interface{}, toUpdate interface{}) *MetaSchemaService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • toUpdate metaschema.MetaSchema

func (*MetaSchemaService_Expecter) Validate

func (_e *MetaSchemaService_Expecter) Validate(schema interface{}, data interface{}) *MetaSchemaService_Validate_Call

Validate is a helper method to define mock.On call

  • schema metadata.Metadata
  • data string

type MetaSchemaService_Get_Call

type MetaSchemaService_Get_Call struct {
	*mock.Call
}

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

func (*MetaSchemaService_Get_Call) Return

func (*MetaSchemaService_Get_Call) Run

func (*MetaSchemaService_Get_Call) RunAndReturn

type MetaSchemaService_List_Call

type MetaSchemaService_List_Call struct {
	*mock.Call
}

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

func (*MetaSchemaService_List_Call) Return

func (*MetaSchemaService_List_Call) Run

func (*MetaSchemaService_List_Call) RunAndReturn

type MetaSchemaService_Update_Call

type MetaSchemaService_Update_Call struct {
	*mock.Call
}

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

func (*MetaSchemaService_Update_Call) Return

func (*MetaSchemaService_Update_Call) Run

func (*MetaSchemaService_Update_Call) RunAndReturn

type MetaSchemaService_Validate_Call

type MetaSchemaService_Validate_Call struct {
	*mock.Call
}

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

func (*MetaSchemaService_Validate_Call) Return

func (*MetaSchemaService_Validate_Call) Run

func (*MetaSchemaService_Validate_Call) RunAndReturn

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NamespaceService

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

func (*NamespaceService) Get

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

func (*NamespaceService) List

List provides a mock function with given fields: ctx

func (*NamespaceService) Update

Update provides a mock function with given fields: ctx, ns

func (*NamespaceService) Upsert

Upsert provides a mock function with given fields: ctx, ns

type NamespaceService_Expecter

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

func (*NamespaceService_Expecter) Get

func (_e *NamespaceService_Expecter) Get(ctx interface{}, id interface{}) *NamespaceService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*NamespaceService_Expecter) List

func (_e *NamespaceService_Expecter) List(ctx interface{}) *NamespaceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

func (*NamespaceService_Expecter) Update

func (_e *NamespaceService_Expecter) Update(ctx interface{}, ns interface{}) *NamespaceService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • ns namespace.Namespace

func (*NamespaceService_Expecter) Upsert

func (_e *NamespaceService_Expecter) Upsert(ctx interface{}, ns interface{}) *NamespaceService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • ns namespace.Namespace

type NamespaceService_Get_Call

type NamespaceService_Get_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Get_Call) Return

func (*NamespaceService_Get_Call) Run

func (*NamespaceService_Get_Call) RunAndReturn

type NamespaceService_List_Call

type NamespaceService_List_Call struct {
	*mock.Call
}

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

func (*NamespaceService_List_Call) Return

func (*NamespaceService_List_Call) Run

func (*NamespaceService_List_Call) RunAndReturn

type NamespaceService_Update_Call

type NamespaceService_Update_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Update_Call) Return

func (*NamespaceService_Update_Call) Run

func (*NamespaceService_Update_Call) RunAndReturn

type NamespaceService_Upsert_Call

type NamespaceService_Upsert_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Upsert_Call) Return

func (*NamespaceService_Upsert_Call) Run

func (*NamespaceService_Upsert_Call) RunAndReturn

type OrganizationService

type OrganizationService struct {
	mock.Mock
}

OrganizationService is an autogenerated mock type for the OrganizationService type

func NewOrganizationService

func NewOrganizationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrganizationService

NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) AddUsers

func (_m *OrganizationService) AddUsers(ctx context.Context, orgID string, userID []string) error

AddUsers provides a mock function with given fields: ctx, orgID, userID

func (*OrganizationService) Create

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

func (*OrganizationService) Disable

func (_m *OrganizationService) Disable(ctx context.Context, id string) error

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

func (*OrganizationService) EXPECT

func (*OrganizationService) Enable

func (_m *OrganizationService) Enable(ctx context.Context, id string) error

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

func (*OrganizationService) Get

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

func (*OrganizationService) GetRaw added in v0.7.5

GetRaw provides a mock function with given fields: ctx, idOrSlug

func (*OrganizationService) List

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

func (*OrganizationService) ListByUser

func (_m *OrganizationService) ListByUser(ctx context.Context, userID string) ([]organization.Organization, error)

ListByUser provides a mock function with given fields: ctx, userID

func (*OrganizationService) Update

Update provides a mock function with given fields: ctx, toUpdate

type OrganizationService_AddUsers_Call

type OrganizationService_AddUsers_Call struct {
	*mock.Call
}

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

func (*OrganizationService_AddUsers_Call) Return

func (*OrganizationService_AddUsers_Call) Run

func (*OrganizationService_AddUsers_Call) RunAndReturn

type OrganizationService_Create_Call

type OrganizationService_Create_Call struct {
	*mock.Call
}

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

func (*OrganizationService_Create_Call) Return

func (*OrganizationService_Create_Call) Run

type OrganizationService_Disable_Call

type OrganizationService_Disable_Call struct {
	*mock.Call
}

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

func (*OrganizationService_Disable_Call) Return

func (*OrganizationService_Disable_Call) Run

func (*OrganizationService_Disable_Call) RunAndReturn

type OrganizationService_Enable_Call

type OrganizationService_Enable_Call struct {
	*mock.Call
}

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

func (*OrganizationService_Enable_Call) Return

func (*OrganizationService_Enable_Call) Run

func (*OrganizationService_Enable_Call) RunAndReturn

type OrganizationService_Expecter

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

func (*OrganizationService_Expecter) AddUsers

func (_e *OrganizationService_Expecter) AddUsers(ctx interface{}, orgID interface{}, userID interface{}) *OrganizationService_AddUsers_Call

AddUsers is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • userID []string

func (*OrganizationService_Expecter) Create

func (_e *OrganizationService_Expecter) Create(ctx interface{}, org interface{}) *OrganizationService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • org organization.Organization

func (*OrganizationService_Expecter) Disable

func (_e *OrganizationService_Expecter) Disable(ctx interface{}, id interface{}) *OrganizationService_Disable_Call

Disable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OrganizationService_Expecter) Enable

func (_e *OrganizationService_Expecter) Enable(ctx interface{}, id interface{}) *OrganizationService_Enable_Call

Enable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OrganizationService_Expecter) Get

func (_e *OrganizationService_Expecter) Get(ctx interface{}, idOrSlug interface{}) *OrganizationService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • idOrSlug string

func (*OrganizationService_Expecter) GetRaw added in v0.7.5

func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, idOrSlug interface{}) *OrganizationService_GetRaw_Call

GetRaw is a helper method to define mock.On call

  • ctx context.Context
  • idOrSlug string

func (*OrganizationService_Expecter) List

func (_e *OrganizationService_Expecter) List(ctx interface{}, f interface{}) *OrganizationService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • f organization.Filter

func (*OrganizationService_Expecter) ListByUser

func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, userID interface{}) *OrganizationService_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string

func (*OrganizationService_Expecter) Update

func (_e *OrganizationService_Expecter) Update(ctx interface{}, toUpdate interface{}) *OrganizationService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • toUpdate organization.Organization

type OrganizationService_GetRaw_Call added in v0.7.5

type OrganizationService_GetRaw_Call struct {
	*mock.Call
}

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

func (*OrganizationService_GetRaw_Call) Return added in v0.7.5

func (*OrganizationService_GetRaw_Call) Run added in v0.7.5

func (*OrganizationService_GetRaw_Call) RunAndReturn added in v0.7.5

type OrganizationService_Get_Call

type OrganizationService_Get_Call struct {
	*mock.Call
}

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

func (*OrganizationService_Get_Call) Return

func (*OrganizationService_Get_Call) Run

func (*OrganizationService_Get_Call) RunAndReturn

type OrganizationService_ListByUser_Call

type OrganizationService_ListByUser_Call struct {
	*mock.Call
}

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

func (*OrganizationService_ListByUser_Call) Return

func (*OrganizationService_ListByUser_Call) Run

func (*OrganizationService_ListByUser_Call) RunAndReturn

type OrganizationService_List_Call

type OrganizationService_List_Call struct {
	*mock.Call
}

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

func (*OrganizationService_List_Call) Return

func (*OrganizationService_List_Call) Run

func (*OrganizationService_List_Call) RunAndReturn

type OrganizationService_Update_Call

type OrganizationService_Update_Call struct {
	*mock.Call
}

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

func (*OrganizationService_Update_Call) Return

func (*OrganizationService_Update_Call) Run

type PermissionService

type PermissionService struct {
	mock.Mock
}

PermissionService is an autogenerated mock type for the PermissionService type

func NewPermissionService

func NewPermissionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PermissionService

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

func (*PermissionService) Get

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

func (*PermissionService) List

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

func (*PermissionService) Update

Update provides a mock function with given fields: ctx, perm

func (*PermissionService) Upsert

Upsert provides a mock function with given fields: ctx, perm

type PermissionService_Expecter

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

func (*PermissionService_Expecter) Get

func (_e *PermissionService_Expecter) Get(ctx interface{}, id interface{}) *PermissionService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*PermissionService_Expecter) List

func (_e *PermissionService_Expecter) List(ctx interface{}, filter interface{}) *PermissionService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter permission.Filter

func (*PermissionService_Expecter) Update

func (_e *PermissionService_Expecter) Update(ctx interface{}, perm interface{}) *PermissionService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • perm permission.Permission

func (*PermissionService_Expecter) Upsert

func (_e *PermissionService_Expecter) Upsert(ctx interface{}, perm interface{}) *PermissionService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • perm permission.Permission

type PermissionService_Get_Call

type PermissionService_Get_Call struct {
	*mock.Call
}

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

func (*PermissionService_Get_Call) Return

func (*PermissionService_Get_Call) Run

func (*PermissionService_Get_Call) RunAndReturn

type PermissionService_List_Call

type PermissionService_List_Call struct {
	*mock.Call
}

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

func (*PermissionService_List_Call) Return

func (*PermissionService_List_Call) Run

func (*PermissionService_List_Call) RunAndReturn

type PermissionService_Update_Call

type PermissionService_Update_Call struct {
	*mock.Call
}

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

func (*PermissionService_Update_Call) Return

func (*PermissionService_Update_Call) Run

func (*PermissionService_Update_Call) RunAndReturn

type PermissionService_Upsert_Call

type PermissionService_Upsert_Call struct {
	*mock.Call
}

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

func (*PermissionService_Upsert_Call) Return

func (*PermissionService_Upsert_Call) Run

func (*PermissionService_Upsert_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) Get

func (_m *PolicyService) Get(ctx context.Context, id string) (policy.Policy, error)

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

func (*PolicyService) List

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

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

func (*PolicyService) ListForUser added in v0.7.5

func (_m *PolicyService) ListForUser(ctx context.Context, userID string, objectNamespace string, objectID string) ([]role.Role, error)

ListForUser provides a mock function with given fields: ctx, userID, objectNamespace, objectID

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

func (_e *PolicyService_Expecter) Get(ctx interface{}, id interface{}) *PolicyService_Get_Call

Get 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{}, f interface{}) *PolicyService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • f policy.Filter

func (*PolicyService_Expecter) ListForUser added in v0.7.5

func (_e *PolicyService_Expecter) ListForUser(ctx interface{}, userID interface{}, objectNamespace interface{}, objectID interface{}) *PolicyService_ListForUser_Call

ListForUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • objectNamespace string
  • objectID string

type PolicyService_Get_Call

type PolicyService_Get_Call struct {
	*mock.Call
}

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

func (*PolicyService_Get_Call) Return

func (*PolicyService_Get_Call) Run

func (*PolicyService_Get_Call) RunAndReturn

type PolicyService_ListForUser_Call added in v0.7.5

type PolicyService_ListForUser_Call struct {
	*mock.Call
}

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

func (*PolicyService_ListForUser_Call) Return added in v0.7.5

func (*PolicyService_ListForUser_Call) Run added in v0.7.5

func (_c *PolicyService_ListForUser_Call) Run(run func(ctx context.Context, userID string, objectNamespace string, objectID string)) *PolicyService_ListForUser_Call

func (*PolicyService_ListForUser_Call) RunAndReturn added in v0.7.5

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

type PreferenceService struct {
	mock.Mock
}

PreferenceService is an autogenerated mock type for the PreferenceService type

func NewPreferenceService added in v0.7.3

func NewPreferenceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PreferenceService

NewPreferenceService creates a new instance of PreferenceService. 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 (*PreferenceService) Create added in v0.7.3

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

func (*PreferenceService) Describe added in v0.7.3

func (_m *PreferenceService) Describe(ctx context.Context) []preference.Trait

Describe provides a mock function with given fields: ctx

func (*PreferenceService) EXPECT added in v0.7.3

func (*PreferenceService) List added in v0.7.3

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

type PreferenceService_Create_Call added in v0.7.3

type PreferenceService_Create_Call struct {
	*mock.Call
}

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

func (*PreferenceService_Create_Call) Return added in v0.7.3

func (*PreferenceService_Create_Call) Run added in v0.7.3

func (*PreferenceService_Create_Call) RunAndReturn added in v0.7.3

type PreferenceService_Describe_Call added in v0.7.3

type PreferenceService_Describe_Call struct {
	*mock.Call
}

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

func (*PreferenceService_Describe_Call) Return added in v0.7.3

func (*PreferenceService_Describe_Call) Run added in v0.7.3

func (*PreferenceService_Describe_Call) RunAndReturn added in v0.7.3

type PreferenceService_Expecter added in v0.7.3

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

func (*PreferenceService_Expecter) Create added in v0.7.3

func (_e *PreferenceService_Expecter) Create(ctx interface{}, _a1 interface{}) *PreferenceService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 preference.Preference

func (*PreferenceService_Expecter) Describe added in v0.7.3

func (_e *PreferenceService_Expecter) Describe(ctx interface{}) *PreferenceService_Describe_Call

Describe is a helper method to define mock.On call

  • ctx context.Context

func (*PreferenceService_Expecter) List added in v0.7.3

func (_e *PreferenceService_Expecter) List(ctx interface{}, filter interface{}) *PreferenceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter preference.Filter

type PreferenceService_List_Call added in v0.7.3

type PreferenceService_List_Call struct {
	*mock.Call
}

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

func (*PreferenceService_List_Call) Return added in v0.7.3

func (*PreferenceService_List_Call) Run added in v0.7.3

func (*PreferenceService_List_Call) RunAndReturn added in v0.7.3

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

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

func (*ProjectService) Disable

func (_m *ProjectService) Disable(ctx context.Context, id string) error

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

func (*ProjectService) EXPECT

func (*ProjectService) Enable

func (_m *ProjectService) Enable(ctx context.Context, id string) error

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

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

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

func (*ProjectService) ListByUser

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

ListByUser provides a mock function with given fields: ctx, userID, flt

func (*ProjectService) ListGroups added in v0.7.6

func (_m *ProjectService) ListGroups(ctx context.Context, id string) ([]group.Group, error)

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

func (*ProjectService) ListServiceUsers added in v0.7.5

func (_m *ProjectService) ListServiceUsers(ctx context.Context, id string, permissionFilter string) ([]serviceuser.ServiceUser, error)

ListServiceUsers provides a mock function with given fields: ctx, id, permissionFilter

func (*ProjectService) ListUsers

func (_m *ProjectService) ListUsers(ctx context.Context, id string, permissionFilter string) ([]user.User, error)

ListUsers provides a mock function with given fields: ctx, id, permissionFilter

func (*ProjectService) Update

func (_m *ProjectService) Update(ctx context.Context, toUpdate project.Project) (project.Project, error)

Update provides a mock function with given fields: ctx, toUpdate

type ProjectService_Create_Call

type ProjectService_Create_Call struct {
	*mock.Call
}

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

func (*ProjectService_Create_Call) Return

func (*ProjectService_Create_Call) Run

func (*ProjectService_Create_Call) RunAndReturn

type ProjectService_Disable_Call

type ProjectService_Disable_Call struct {
	*mock.Call
}

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

func (*ProjectService_Disable_Call) Return

func (*ProjectService_Disable_Call) Run

func (*ProjectService_Disable_Call) RunAndReturn

type ProjectService_Enable_Call

type ProjectService_Enable_Call struct {
	*mock.Call
}

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

func (*ProjectService_Enable_Call) Return

func (*ProjectService_Enable_Call) Run

func (*ProjectService_Enable_Call) RunAndReturn

type ProjectService_Expecter

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

func (*ProjectService_Expecter) Create

func (_e *ProjectService_Expecter) Create(ctx interface{}, prj interface{}) *ProjectService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • prj project.Project

func (*ProjectService_Expecter) Disable

func (_e *ProjectService_Expecter) Disable(ctx interface{}, id interface{}) *ProjectService_Disable_Call

Disable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ProjectService_Expecter) Enable

func (_e *ProjectService_Expecter) Enable(ctx interface{}, id interface{}) *ProjectService_Enable_Call

Enable is a helper method to define mock.On call

  • ctx context.Context
  • id string

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{}, f interface{}) *ProjectService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • f project.Filter

func (*ProjectService_Expecter) ListByUser

func (_e *ProjectService_Expecter) ListByUser(ctx interface{}, userID interface{}, flt interface{}) *ProjectService_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • flt project.Filter

func (*ProjectService_Expecter) ListGroups added in v0.7.6

func (_e *ProjectService_Expecter) ListGroups(ctx interface{}, id interface{}) *ProjectService_ListGroups_Call

ListGroups is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ProjectService_Expecter) ListServiceUsers added in v0.7.5

func (_e *ProjectService_Expecter) ListServiceUsers(ctx interface{}, id interface{}, permissionFilter interface{}) *ProjectService_ListServiceUsers_Call

ListServiceUsers is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • permissionFilter string

func (*ProjectService_Expecter) ListUsers

func (_e *ProjectService_Expecter) ListUsers(ctx interface{}, id interface{}, permissionFilter interface{}) *ProjectService_ListUsers_Call

ListUsers is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • permissionFilter string

func (*ProjectService_Expecter) Update

func (_e *ProjectService_Expecter) Update(ctx interface{}, toUpdate interface{}) *ProjectService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • toUpdate project.Project

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_ListByUser_Call

type ProjectService_ListByUser_Call struct {
	*mock.Call
}

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

func (*ProjectService_ListByUser_Call) Return

func (*ProjectService_ListByUser_Call) Run

func (*ProjectService_ListByUser_Call) RunAndReturn

type ProjectService_ListGroups_Call added in v0.7.6

type ProjectService_ListGroups_Call struct {
	*mock.Call
}

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

func (*ProjectService_ListGroups_Call) Return added in v0.7.6

func (*ProjectService_ListGroups_Call) Run added in v0.7.6

func (*ProjectService_ListGroups_Call) RunAndReturn added in v0.7.6

type ProjectService_ListServiceUsers_Call added in v0.7.5

type ProjectService_ListServiceUsers_Call struct {
	*mock.Call
}

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

func (*ProjectService_ListServiceUsers_Call) Return added in v0.7.5

func (*ProjectService_ListServiceUsers_Call) Run added in v0.7.5

func (*ProjectService_ListServiceUsers_Call) RunAndReturn added in v0.7.5

type ProjectService_ListUsers_Call

type ProjectService_ListUsers_Call struct {
	*mock.Call
}

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

func (*ProjectService_ListUsers_Call) Return

func (*ProjectService_ListUsers_Call) Run

func (_c *ProjectService_ListUsers_Call) Run(run func(ctx context.Context, id string, permissionFilter string)) *ProjectService_ListUsers_Call

func (*ProjectService_ListUsers_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 ProjectService_Update_Call

type ProjectService_Update_Call struct {
	*mock.Call
}

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

func (*ProjectService_Update_Call) Return

func (*ProjectService_Update_Call) Run

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

func (*RelationService) Get

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

func (*RelationService) List

List provides a mock function with given fields: ctx

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

func (*RelationService_Expecter) Get

func (_e *RelationService_Expecter) Get(ctx interface{}, id interface{}) *RelationService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RelationService_Expecter) List

func (_e *RelationService_Expecter) List(ctx interface{}) *RelationService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

type RelationService_Get_Call

type RelationService_Get_Call struct {
	*mock.Call
}

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

func (*RelationService_Get_Call) Return

func (*RelationService_Get_Call) Run

func (*RelationService_Get_Call) RunAndReturn

type RelationService_List_Call

type RelationService_List_Call struct {
	*mock.Call
}

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

func (*RelationService_List_Call) Return

func (*RelationService_List_Call) Run

func (*RelationService_List_Call) RunAndReturn

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the ResourceService type

func NewResourceService

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) BatchCheck added in v0.7.4

func (_m *ResourceService) BatchCheck(ctx context.Context, checks []resource.Check) ([]relation.CheckPair, error)

BatchCheck provides a mock function with given fields: ctx, checks

func (*ResourceService) CheckAuthz

func (_m *ResourceService) CheckAuthz(ctx context.Context, check resource.Check) (bool, error)

CheckAuthz provides a mock function with given fields: ctx, check

func (*ResourceService) Create

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

func (*ResourceService) Delete added in v0.7.2

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

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

func (*ResourceService) EXPECT

func (*ResourceService) Get

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

func (*ResourceService) List

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

func (*ResourceService) Update

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

type ResourceService_BatchCheck_Call added in v0.7.4

type ResourceService_BatchCheck_Call struct {
	*mock.Call
}

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

func (*ResourceService_BatchCheck_Call) Return added in v0.7.4

func (*ResourceService_BatchCheck_Call) Run added in v0.7.4

func (*ResourceService_BatchCheck_Call) RunAndReturn added in v0.7.4

type ResourceService_CheckAuthz_Call

type ResourceService_CheckAuthz_Call struct {
	*mock.Call
}

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

func (*ResourceService_CheckAuthz_Call) Return

func (*ResourceService_CheckAuthz_Call) Run

func (*ResourceService_CheckAuthz_Call) RunAndReturn

type ResourceService_Create_Call

type ResourceService_Create_Call struct {
	*mock.Call
}

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

func (*ResourceService_Create_Call) Return

func (*ResourceService_Create_Call) Run

func (*ResourceService_Create_Call) RunAndReturn

type ResourceService_Delete_Call added in v0.7.2

type ResourceService_Delete_Call struct {
	*mock.Call
}

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

func (*ResourceService_Delete_Call) Return added in v0.7.2

func (*ResourceService_Delete_Call) Run added in v0.7.2

func (*ResourceService_Delete_Call) RunAndReturn added in v0.7.2

type ResourceService_Expecter

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

func (*ResourceService_Expecter) BatchCheck added in v0.7.4

func (_e *ResourceService_Expecter) BatchCheck(ctx interface{}, checks interface{}) *ResourceService_BatchCheck_Call

BatchCheck is a helper method to define mock.On call

  • ctx context.Context
  • checks []resource.Check

func (*ResourceService_Expecter) CheckAuthz

func (_e *ResourceService_Expecter) CheckAuthz(ctx interface{}, check interface{}) *ResourceService_CheckAuthz_Call

CheckAuthz is a helper method to define mock.On call

  • ctx context.Context
  • check resource.Check

func (*ResourceService_Expecter) Create

func (_e *ResourceService_Expecter) Create(ctx interface{}, _a1 interface{}) *ResourceService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 resource.Resource

func (*ResourceService_Expecter) Delete added in v0.7.2

func (_e *ResourceService_Expecter) Delete(ctx interface{}, namespace interface{}, id interface{}) *ResourceService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • id string

func (*ResourceService_Expecter) Get

func (_e *ResourceService_Expecter) Get(ctx interface{}, id interface{}) *ResourceService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ResourceService_Expecter) List

func (_e *ResourceService_Expecter) List(ctx interface{}, flt interface{}) *ResourceService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt resource.Filter

func (*ResourceService_Expecter) Update

func (_e *ResourceService_Expecter) Update(ctx interface{}, _a1 interface{}) *ResourceService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • _a1 resource.Resource

type ResourceService_Get_Call

type ResourceService_Get_Call struct {
	*mock.Call
}

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

func (*ResourceService_Get_Call) Return

func (*ResourceService_Get_Call) Run

func (*ResourceService_Get_Call) RunAndReturn

type ResourceService_List_Call

type ResourceService_List_Call struct {
	*mock.Call
}

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

func (*ResourceService_List_Call) Return

func (*ResourceService_List_Call) Run

func (*ResourceService_List_Call) RunAndReturn

type ResourceService_Update_Call

type ResourceService_Update_Call struct {
	*mock.Call
}

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

func (*ResourceService_Update_Call) Return

func (*ResourceService_Update_Call) Run

func (*ResourceService_Update_Call) RunAndReturn

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

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

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

func (*RoleService) EXPECT

func (_m *RoleService) EXPECT() *RoleService_Expecter

func (*RoleService) Get

func (_m *RoleService) Get(ctx context.Context, id string) (role.Role, error)

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

func (*RoleService) List

func (_m *RoleService) List(ctx context.Context, f role.Filter) ([]role.Role, error)

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

func (*RoleService) Update

func (_m *RoleService) Update(ctx context.Context, toUpdate role.Role) (role.Role, error)

Update provides a mock function with given fields: ctx, toUpdate

func (*RoleService) Upsert

func (_m *RoleService) Upsert(ctx context.Context, toCreate role.Role) (role.Role, error)

Upsert provides a mock function with given fields: ctx, toCreate

type RoleService_Delete_Call

type RoleService_Delete_Call struct {
	*mock.Call
}

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

func (*RoleService_Delete_Call) Return

func (*RoleService_Delete_Call) Run

func (*RoleService_Delete_Call) RunAndReturn

type RoleService_Expecter

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

func (*RoleService_Expecter) Delete

func (_e *RoleService_Expecter) Delete(ctx interface{}, id interface{}) *RoleService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RoleService_Expecter) Get

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

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RoleService_Expecter) List

func (_e *RoleService_Expecter) List(ctx interface{}, f interface{}) *RoleService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • f role.Filter

func (*RoleService_Expecter) Update

func (_e *RoleService_Expecter) Update(ctx interface{}, toUpdate interface{}) *RoleService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • toUpdate role.Role

func (*RoleService_Expecter) Upsert

func (_e *RoleService_Expecter) Upsert(ctx interface{}, toCreate interface{}) *RoleService_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • toCreate role.Role

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, id 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 RoleService_List_Call

type RoleService_List_Call struct {
	*mock.Call
}

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

func (*RoleService_List_Call) Return

func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call

func (*RoleService_List_Call) Run

func (*RoleService_List_Call) RunAndReturn

type RoleService_Update_Call

type RoleService_Update_Call struct {
	*mock.Call
}

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

func (*RoleService_Update_Call) Return

func (*RoleService_Update_Call) Run

func (_c *RoleService_Update_Call) Run(run func(ctx context.Context, toUpdate role.Role)) *RoleService_Update_Call

func (*RoleService_Update_Call) RunAndReturn

type RoleService_Upsert_Call

type RoleService_Upsert_Call struct {
	*mock.Call
}

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

func (*RoleService_Upsert_Call) Return

func (*RoleService_Upsert_Call) Run

func (_c *RoleService_Upsert_Call) Run(run func(ctx context.Context, toCreate role.Role)) *RoleService_Upsert_Call

func (*RoleService_Upsert_Call) RunAndReturn

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

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

func (*ServiceUserService) CreateKey

CreateKey provides a mock function with given fields: ctx, cred

func (*ServiceUserService) CreateSecret

func (_m *ServiceUserService) CreateSecret(ctx context.Context, credential serviceuser.Credential) (serviceuser.Secret, error)

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

func (*ServiceUserService) Delete

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

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

func (*ServiceUserService) DeleteKey

func (_m *ServiceUserService) DeleteKey(ctx context.Context, credID string) error

DeleteKey provides a mock function with given fields: ctx, credID

func (*ServiceUserService) DeleteSecret

func (_m *ServiceUserService) DeleteSecret(ctx context.Context, credID string) error

DeleteSecret provides a mock function with given fields: ctx, credID

func (*ServiceUserService) EXPECT

func (*ServiceUserService) Get

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

func (*ServiceUserService) GetKey

GetKey provides a mock function with given fields: ctx, credID

func (*ServiceUserService) List

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

func (*ServiceUserService) ListByOrg

func (_m *ServiceUserService) ListByOrg(ctx context.Context, orgID string) ([]serviceuser.ServiceUser, error)

ListByOrg provides a mock function with given fields: ctx, orgID

func (*ServiceUserService) ListKeys

func (_m *ServiceUserService) ListKeys(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)

ListKeys provides a mock function with given fields: ctx, serviceUserID

func (*ServiceUserService) ListSecret

func (_m *ServiceUserService) ListSecret(ctx context.Context, serviceUserID string) ([]serviceuser.Credential, error)

ListSecret provides a mock function with given fields: ctx, serviceUserID

type ServiceUserService_CreateKey_Call

type ServiceUserService_CreateKey_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_CreateKey_Call) Return

func (*ServiceUserService_CreateKey_Call) Run

func (*ServiceUserService_CreateKey_Call) RunAndReturn

type ServiceUserService_CreateSecret_Call

type ServiceUserService_CreateSecret_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_CreateSecret_Call) Return

func (*ServiceUserService_CreateSecret_Call) Run

func (*ServiceUserService_CreateSecret_Call) RunAndReturn

type ServiceUserService_Create_Call

type ServiceUserService_Create_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_Create_Call) Return

func (*ServiceUserService_Create_Call) Run

type ServiceUserService_DeleteKey_Call

type ServiceUserService_DeleteKey_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_DeleteKey_Call) Return

func (*ServiceUserService_DeleteKey_Call) Run

func (*ServiceUserService_DeleteKey_Call) RunAndReturn

type ServiceUserService_DeleteSecret_Call

type ServiceUserService_DeleteSecret_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_DeleteSecret_Call) Return

func (*ServiceUserService_DeleteSecret_Call) Run

func (*ServiceUserService_DeleteSecret_Call) RunAndReturn

type ServiceUserService_Delete_Call

type ServiceUserService_Delete_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_Delete_Call) Return

func (*ServiceUserService_Delete_Call) Run

func (*ServiceUserService_Delete_Call) RunAndReturn

type ServiceUserService_Expecter

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

func (*ServiceUserService_Expecter) Create

func (_e *ServiceUserService_Expecter) Create(ctx interface{}, serviceUser interface{}) *ServiceUserService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • serviceUser serviceuser.ServiceUser

func (*ServiceUserService_Expecter) CreateKey

func (_e *ServiceUserService_Expecter) CreateKey(ctx interface{}, cred interface{}) *ServiceUserService_CreateKey_Call

CreateKey is a helper method to define mock.On call

  • ctx context.Context
  • cred serviceuser.Credential

func (*ServiceUserService_Expecter) CreateSecret

func (_e *ServiceUserService_Expecter) CreateSecret(ctx interface{}, credential interface{}) *ServiceUserService_CreateSecret_Call

CreateSecret is a helper method to define mock.On call

  • ctx context.Context
  • credential serviceuser.Credential

func (*ServiceUserService_Expecter) Delete

func (_e *ServiceUserService_Expecter) Delete(ctx interface{}, id interface{}) *ServiceUserService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ServiceUserService_Expecter) DeleteKey

func (_e *ServiceUserService_Expecter) DeleteKey(ctx interface{}, credID interface{}) *ServiceUserService_DeleteKey_Call

DeleteKey is a helper method to define mock.On call

  • ctx context.Context
  • credID string

func (*ServiceUserService_Expecter) DeleteSecret

func (_e *ServiceUserService_Expecter) DeleteSecret(ctx interface{}, credID interface{}) *ServiceUserService_DeleteSecret_Call

DeleteSecret is a helper method to define mock.On call

  • ctx context.Context
  • credID string

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

func (*ServiceUserService_Expecter) GetKey

func (_e *ServiceUserService_Expecter) GetKey(ctx interface{}, credID interface{}) *ServiceUserService_GetKey_Call

GetKey is a helper method to define mock.On call

  • ctx context.Context
  • credID string

func (*ServiceUserService_Expecter) List

func (_e *ServiceUserService_Expecter) List(ctx interface{}, flt interface{}) *ServiceUserService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt serviceuser.Filter

func (*ServiceUserService_Expecter) ListByOrg

func (_e *ServiceUserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}) *ServiceUserService_ListByOrg_Call

ListByOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID string

func (*ServiceUserService_Expecter) ListKeys

func (_e *ServiceUserService_Expecter) ListKeys(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListKeys_Call

ListKeys is a helper method to define mock.On call

  • ctx context.Context
  • serviceUserID string

func (*ServiceUserService_Expecter) ListSecret

func (_e *ServiceUserService_Expecter) ListSecret(ctx interface{}, serviceUserID interface{}) *ServiceUserService_ListSecret_Call

ListSecret is a helper method to define mock.On call

  • ctx context.Context
  • serviceUserID string

type ServiceUserService_GetKey_Call

type ServiceUserService_GetKey_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_GetKey_Call) Return

func (*ServiceUserService_GetKey_Call) Run

func (*ServiceUserService_GetKey_Call) RunAndReturn

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 ServiceUserService_ListByOrg_Call

type ServiceUserService_ListByOrg_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_ListByOrg_Call) Return

func (*ServiceUserService_ListByOrg_Call) Run

func (*ServiceUserService_ListByOrg_Call) RunAndReturn

type ServiceUserService_ListKeys_Call

type ServiceUserService_ListKeys_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_ListKeys_Call) Return

func (*ServiceUserService_ListKeys_Call) Run

func (*ServiceUserService_ListKeys_Call) RunAndReturn

type ServiceUserService_ListSecret_Call

type ServiceUserService_ListSecret_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_ListSecret_Call) Return

func (*ServiceUserService_ListSecret_Call) Run

func (*ServiceUserService_ListSecret_Call) RunAndReturn

type ServiceUserService_List_Call

type ServiceUserService_List_Call struct {
	*mock.Call
}

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

func (*ServiceUserService_List_Call) Return

func (*ServiceUserService_List_Call) Run

func (*ServiceUserService_List_Call) RunAndReturn

type SessionService

type SessionService struct {
	mock.Mock
}

SessionService is an autogenerated mock type for the SessionService type

func NewSessionService

func NewSessionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SessionService

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

func (_m *SessionService) Create(ctx context.Context, userID string) (*session.Session, error)

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

func (*SessionService) Delete

func (_m *SessionService) Delete(ctx context.Context, sessionID uuid.UUID) error

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

func (*SessionService) EXPECT

func (*SessionService) ExtractFromContext

func (_m *SessionService) ExtractFromContext(ctx context.Context) (*session.Session, error)

ExtractFromContext provides a mock function with given fields: ctx

func (*SessionService) Refresh

func (_m *SessionService) Refresh(ctx context.Context, sessionID uuid.UUID) error

Refresh provides a mock function with given fields: ctx, sessionID

type SessionService_Create_Call

type SessionService_Create_Call struct {
	*mock.Call
}

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

func (*SessionService_Create_Call) Return

func (*SessionService_Create_Call) Run

func (*SessionService_Create_Call) RunAndReturn

type SessionService_Delete_Call

type SessionService_Delete_Call struct {
	*mock.Call
}

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

func (*SessionService_Delete_Call) Return

func (*SessionService_Delete_Call) Run

func (*SessionService_Delete_Call) RunAndReturn

type SessionService_Expecter

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

func (*SessionService_Expecter) Create

func (_e *SessionService_Expecter) Create(ctx interface{}, userID interface{}) *SessionService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • userID string

func (*SessionService_Expecter) Delete

func (_e *SessionService_Expecter) Delete(ctx interface{}, sessionID interface{}) *SessionService_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID

func (*SessionService_Expecter) ExtractFromContext

func (_e *SessionService_Expecter) ExtractFromContext(ctx interface{}) *SessionService_ExtractFromContext_Call

ExtractFromContext is a helper method to define mock.On call

  • ctx context.Context

func (*SessionService_Expecter) Refresh

func (_e *SessionService_Expecter) Refresh(ctx interface{}, sessionID interface{}) *SessionService_Refresh_Call

Refresh is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID

type SessionService_ExtractFromContext_Call

type SessionService_ExtractFromContext_Call struct {
	*mock.Call
}

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

func (*SessionService_ExtractFromContext_Call) Return

func (*SessionService_ExtractFromContext_Call) Run

func (*SessionService_ExtractFromContext_Call) RunAndReturn

type SessionService_Refresh_Call

type SessionService_Refresh_Call struct {
	*mock.Call
}

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

func (*SessionService_Refresh_Call) Return

func (*SessionService_Refresh_Call) Run

func (*SessionService_Refresh_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) Create

func (_m *UserService) Create(ctx context.Context, _a1 user.User) (user.User, error)

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

func (*UserService) Disable

func (_m *UserService) Disable(ctx context.Context, id string) error

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

func (*UserService) EXPECT

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) Enable

func (_m *UserService) Enable(ctx context.Context, id string) error

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

func (*UserService) GetByEmail

func (_m *UserService) GetByEmail(ctx context.Context, email string) (user.User, error)

GetByEmail provides a mock function with given fields: ctx, email

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

func (*UserService) GetByIDs

func (_m *UserService) GetByIDs(ctx context.Context, userIDs []string) ([]user.User, error)

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

func (*UserService) IsSudo

func (_m *UserService) IsSudo(ctx context.Context, id string) (bool, error)

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

func (*UserService) List

func (_m *UserService) List(ctx context.Context, flt user.Filter) ([]user.User, error)

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

func (*UserService) ListByGroup

func (_m *UserService) ListByGroup(ctx context.Context, groupID string, capability string) ([]user.User, error)

ListByGroup provides a mock function with given fields: ctx, groupID, capability

func (*UserService) ListByOrg

func (_m *UserService) ListByOrg(ctx context.Context, orgID string, permissionFilter string) ([]user.User, error)

ListByOrg provides a mock function with given fields: ctx, orgID, permissionFilter

func (*UserService) Update

func (_m *UserService) Update(ctx context.Context, toUpdate user.User) (user.User, error)

Update provides a mock function with given fields: ctx, toUpdate

type UserService_Create_Call

type UserService_Create_Call struct {
	*mock.Call
}

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

func (*UserService_Create_Call) Return

func (*UserService_Create_Call) Run

func (*UserService_Create_Call) RunAndReturn

type UserService_Disable_Call

type UserService_Disable_Call struct {
	*mock.Call
}

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

func (*UserService_Disable_Call) Return

func (*UserService_Disable_Call) Run

func (*UserService_Disable_Call) RunAndReturn

type UserService_Enable_Call

type UserService_Enable_Call struct {
	*mock.Call
}

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

func (*UserService_Enable_Call) Return

func (*UserService_Enable_Call) Run

func (*UserService_Enable_Call) RunAndReturn

type UserService_Expecter

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

func (*UserService_Expecter) Create

func (_e *UserService_Expecter) Create(ctx interface{}, _a1 interface{}) *UserService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 user.User

func (*UserService_Expecter) Disable

func (_e *UserService_Expecter) Disable(ctx interface{}, id interface{}) *UserService_Disable_Call

Disable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserService_Expecter) Enable

func (_e *UserService_Expecter) Enable(ctx interface{}, id interface{}) *UserService_Enable_Call

Enable is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserService_Expecter) GetByEmail

func (_e *UserService_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserService_GetByEmail_Call

GetByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

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

func (*UserService_Expecter) GetByIDs

func (_e *UserService_Expecter) GetByIDs(ctx interface{}, userIDs interface{}) *UserService_GetByIDs_Call

GetByIDs is a helper method to define mock.On call

  • ctx context.Context
  • userIDs []string

func (*UserService_Expecter) IsSudo

func (_e *UserService_Expecter) IsSudo(ctx interface{}, id interface{}) *UserService_IsSudo_Call

IsSudo is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserService_Expecter) List

func (_e *UserService_Expecter) List(ctx interface{}, flt interface{}) *UserService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt user.Filter

func (*UserService_Expecter) ListByGroup

func (_e *UserService_Expecter) ListByGroup(ctx interface{}, groupID interface{}, capability interface{}) *UserService_ListByGroup_Call

ListByGroup is a helper method to define mock.On call

  • ctx context.Context
  • groupID string
  • capability string

func (*UserService_Expecter) ListByOrg

func (_e *UserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}, permissionFilter interface{}) *UserService_ListByOrg_Call

ListByOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • permissionFilter string

func (*UserService_Expecter) Update

func (_e *UserService_Expecter) Update(ctx interface{}, toUpdate interface{}) *UserService_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • toUpdate user.User

type UserService_GetByEmail_Call

type UserService_GetByEmail_Call struct {
	*mock.Call
}

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

func (*UserService_GetByEmail_Call) Return

func (*UserService_GetByEmail_Call) Run

func (*UserService_GetByEmail_Call) RunAndReturn

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

type UserService_GetByIDs_Call

type UserService_GetByIDs_Call struct {
	*mock.Call
}

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

func (*UserService_GetByIDs_Call) Return

func (*UserService_GetByIDs_Call) Run

func (_c *UserService_GetByIDs_Call) Run(run func(ctx context.Context, userIDs []string)) *UserService_GetByIDs_Call

func (*UserService_GetByIDs_Call) RunAndReturn

type UserService_IsSudo_Call

type UserService_IsSudo_Call struct {
	*mock.Call
}

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

func (*UserService_IsSudo_Call) Return

func (*UserService_IsSudo_Call) Run

func (*UserService_IsSudo_Call) RunAndReturn

type UserService_ListByGroup_Call

type UserService_ListByGroup_Call struct {
	*mock.Call
}

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

func (*UserService_ListByGroup_Call) Return

func (*UserService_ListByGroup_Call) Run

func (_c *UserService_ListByGroup_Call) Run(run func(ctx context.Context, groupID string, capability string)) *UserService_ListByGroup_Call

func (*UserService_ListByGroup_Call) RunAndReturn

type UserService_ListByOrg_Call

type UserService_ListByOrg_Call struct {
	*mock.Call
}

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

func (*UserService_ListByOrg_Call) Return

func (*UserService_ListByOrg_Call) Run

func (_c *UserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string, permissionFilter string)) *UserService_ListByOrg_Call

func (*UserService_ListByOrg_Call) RunAndReturn

type UserService_List_Call

type UserService_List_Call struct {
	*mock.Call
}

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

func (*UserService_List_Call) Return

func (_c *UserService_List_Call) Return(_a0 []user.User, _a1 error) *UserService_List_Call

func (*UserService_List_Call) Run

func (*UserService_List_Call) RunAndReturn

type UserService_Update_Call

type UserService_Update_Call struct {
	*mock.Call
}

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

func (*UserService_Update_Call) Return

func (*UserService_Update_Call) Run

func (_c *UserService_Update_Call) Run(run func(ctx context.Context, toUpdate user.User)) *UserService_Update_Call

func (*UserService_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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