mock

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 8 Imported by: 0

README

对Auth的API的mock

mock文件生成方法

./store目录执行

mockgen -source=api.go -aux_files github.com/polarismesh/polaris-server/store=config_file_api.go,github.com/polarismesh/polaris-server/store=discover_api.go,github.com/polarismesh/polaris-server/store=auth_api.go -destination=./mock/api_mock.go -package=mock

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthChecker

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

MockAuthChecker is a mock of AuthChecker interface

func NewMockAuthChecker

func NewMockAuthChecker(ctrl *gomock.Controller) *MockAuthChecker

NewMockAuthChecker creates a new mock instance

func (*MockAuthChecker) CheckClientPermission

func (m *MockAuthChecker) CheckClientPermission(preCtx *model.AcquireContext) (bool, error)

CheckClientPermission mocks base method

func (*MockAuthChecker) CheckConsolePermission

func (m *MockAuthChecker) CheckConsolePermission(preCtx *model.AcquireContext) (bool, error)

CheckConsolePermission mocks base method

func (*MockAuthChecker) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAuthChecker) Initialize

func (m *MockAuthChecker) Initialize(options *auth.Config, cacheMgn *cache.CacheManager) error

Initialize mocks base method

func (*MockAuthChecker) IsOpenAuth

func (m *MockAuthChecker) IsOpenAuth() bool

IsOpenAuth mocks base method

func (*MockAuthChecker) VerifyCredential

func (m *MockAuthChecker) VerifyCredential(preCtx *model.AcquireContext) error

VerifyCredential mocks base method

type MockAuthCheckerMockRecorder

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

MockAuthCheckerMockRecorder is the mock recorder for MockAuthChecker

func (*MockAuthCheckerMockRecorder) CheckClientPermission

func (mr *MockAuthCheckerMockRecorder) CheckClientPermission(preCtx interface{}) *gomock.Call

CheckClientPermission indicates an expected call of CheckClientPermission

func (*MockAuthCheckerMockRecorder) CheckConsolePermission

func (mr *MockAuthCheckerMockRecorder) CheckConsolePermission(preCtx interface{}) *gomock.Call

CheckConsolePermission indicates an expected call of CheckConsolePermission

func (*MockAuthCheckerMockRecorder) Initialize

func (mr *MockAuthCheckerMockRecorder) Initialize(options, cacheMgn interface{}) *gomock.Call

Initialize indicates an expected call of Initialize

func (*MockAuthCheckerMockRecorder) IsOpenAuth

func (mr *MockAuthCheckerMockRecorder) IsOpenAuth() *gomock.Call

IsOpenAuth indicates an expected call of IsOpenAuth

func (*MockAuthCheckerMockRecorder) VerifyCredential

func (mr *MockAuthCheckerMockRecorder) VerifyCredential(preCtx interface{}) *gomock.Call

VerifyCredential indicates an expected call of VerifyCredential

type MockAuthServer

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

MockAuthServer is a mock of AuthServer interface

func NewMockAuthServer

func NewMockAuthServer(ctrl *gomock.Controller) *MockAuthServer

NewMockAuthServer creates a new mock instance

func (*MockAuthServer) AfterResourceOperation

func (m *MockAuthServer) AfterResourceOperation(afterCtx *model.AcquireContext) error

AfterResourceOperation mocks base method

func (*MockAuthServer) CreateGroup

func (m *MockAuthServer) CreateGroup(ctx context.Context, group *v1.UserGroup) *v1.Response

CreateGroup mocks base method

func (*MockAuthServer) CreateStrategy

func (m *MockAuthServer) CreateStrategy(ctx context.Context, strategy *v1.AuthStrategy) *v1.Response

CreateStrategy mocks base method

func (*MockAuthServer) CreateUsers

func (m *MockAuthServer) CreateUsers(ctx context.Context, users []*v1.User) *v1.BatchWriteResponse

CreateUsers mocks base method

func (*MockAuthServer) DeleteGroups

func (m *MockAuthServer) DeleteGroups(ctx context.Context, group []*v1.UserGroup) *v1.BatchWriteResponse

DeleteGroups mocks base method

func (*MockAuthServer) DeleteStrategies

func (m *MockAuthServer) DeleteStrategies(ctx context.Context, reqs []*v1.AuthStrategy) *v1.BatchWriteResponse

DeleteStrategies mocks base method

func (*MockAuthServer) DeleteUsers

func (m *MockAuthServer) DeleteUsers(ctx context.Context, users []*v1.User) *v1.BatchWriteResponse

DeleteUsers mocks base method

func (*MockAuthServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAuthServer) GetAuthChecker

func (m *MockAuthServer) GetAuthChecker() auth.AuthChecker

GetAuthChecker mocks base method

func (*MockAuthServer) GetGroup

func (m *MockAuthServer) GetGroup(ctx context.Context, req *v1.UserGroup) *v1.Response

GetGroup mocks base method

func (*MockAuthServer) GetGroupToken

func (m *MockAuthServer) GetGroupToken(ctx context.Context, group *v1.UserGroup) *v1.Response

GetGroupToken mocks base method

func (*MockAuthServer) GetGroups

func (m *MockAuthServer) GetGroups(ctx context.Context, query map[string]string) *v1.BatchQueryResponse

GetGroups mocks base method

func (*MockAuthServer) GetPrincipalResources

func (m *MockAuthServer) GetPrincipalResources(ctx context.Context, query map[string]string) *v1.Response

GetPrincipalResources mocks base method

func (*MockAuthServer) GetStrategies

func (m *MockAuthServer) GetStrategies(ctx context.Context, query map[string]string) *v1.BatchQueryResponse

GetStrategies mocks base method

func (*MockAuthServer) GetStrategy

func (m *MockAuthServer) GetStrategy(ctx context.Context, strategy *v1.AuthStrategy) *v1.Response

GetStrategy mocks base method

func (*MockAuthServer) GetUserToken

func (m *MockAuthServer) GetUserToken(ctx context.Context, user *v1.User) *v1.Response

GetUserToken mocks base method

func (*MockAuthServer) GetUsers

func (m *MockAuthServer) GetUsers(ctx context.Context, query map[string]string) *v1.BatchQueryResponse

GetUsers mocks base method

func (*MockAuthServer) Initialize

func (m *MockAuthServer) Initialize(authOpt *auth.Config, storage store.Store, cacheMgn *cache.CacheManager) error

Initialize mocks base method

func (*MockAuthServer) Login

func (m *MockAuthServer) Login(req *v1.LoginRequest) *v1.Response

Login mocks base method

func (*MockAuthServer) Name

func (m *MockAuthServer) Name() string

Name mocks base method

func (*MockAuthServer) ResetGroupToken

func (m *MockAuthServer) ResetGroupToken(ctx context.Context, group *v1.UserGroup) *v1.Response

ResetGroupToken mocks base method

func (*MockAuthServer) ResetUserToken

func (m *MockAuthServer) ResetUserToken(ctx context.Context, user *v1.User) *v1.Response

ResetUserToken mocks base method

func (*MockAuthServer) UpdateGroupToken

func (m *MockAuthServer) UpdateGroupToken(ctx context.Context, group *v1.UserGroup) *v1.Response

UpdateGroupToken mocks base method

func (*MockAuthServer) UpdateGroups

func (m *MockAuthServer) UpdateGroups(ctx context.Context, groups []*v1.ModifyUserGroup) *v1.BatchWriteResponse

UpdateGroups mocks base method

func (*MockAuthServer) UpdateStrategies

func (m *MockAuthServer) UpdateStrategies(ctx context.Context, reqs []*v1.ModifyAuthStrategy) *v1.BatchWriteResponse

UpdateStrategies mocks base method

func (*MockAuthServer) UpdateUser

func (m *MockAuthServer) UpdateUser(ctx context.Context, user *v1.User) *v1.Response

UpdateUser mocks base method

func (*MockAuthServer) UpdateUserPassword

func (m *MockAuthServer) UpdateUserPassword(ctx context.Context, req *v1.ModifyUserPassword) *v1.Response

UpdateUserPassword mocks base method

func (*MockAuthServer) UpdateUserToken

func (m *MockAuthServer) UpdateUserToken(ctx context.Context, user *v1.User) *v1.Response

UpdateUserToken mocks base method

type MockAuthServerMockRecorder

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

MockAuthServerMockRecorder is the mock recorder for MockAuthServer

func (*MockAuthServerMockRecorder) AfterResourceOperation

func (mr *MockAuthServerMockRecorder) AfterResourceOperation(afterCtx interface{}) *gomock.Call

AfterResourceOperation indicates an expected call of AfterResourceOperation

func (*MockAuthServerMockRecorder) CreateGroup

func (mr *MockAuthServerMockRecorder) CreateGroup(ctx, group interface{}) *gomock.Call

CreateGroup indicates an expected call of CreateGroup

func (*MockAuthServerMockRecorder) CreateStrategy

func (mr *MockAuthServerMockRecorder) CreateStrategy(ctx, strategy interface{}) *gomock.Call

CreateStrategy indicates an expected call of CreateStrategy

func (*MockAuthServerMockRecorder) CreateUsers

func (mr *MockAuthServerMockRecorder) CreateUsers(ctx, users interface{}) *gomock.Call

CreateUsers indicates an expected call of CreateUsers

func (*MockAuthServerMockRecorder) DeleteGroups

func (mr *MockAuthServerMockRecorder) DeleteGroups(ctx, group interface{}) *gomock.Call

DeleteGroups indicates an expected call of DeleteGroups

func (*MockAuthServerMockRecorder) DeleteStrategies

func (mr *MockAuthServerMockRecorder) DeleteStrategies(ctx, reqs interface{}) *gomock.Call

DeleteStrategies indicates an expected call of DeleteStrategies

func (*MockAuthServerMockRecorder) DeleteUsers

func (mr *MockAuthServerMockRecorder) DeleteUsers(ctx, users interface{}) *gomock.Call

DeleteUsers indicates an expected call of DeleteUsers

func (*MockAuthServerMockRecorder) GetAuthChecker

func (mr *MockAuthServerMockRecorder) GetAuthChecker() *gomock.Call

GetAuthChecker indicates an expected call of GetAuthChecker

func (*MockAuthServerMockRecorder) GetGroup

func (mr *MockAuthServerMockRecorder) GetGroup(ctx, req interface{}) *gomock.Call

GetGroup indicates an expected call of GetGroup

func (*MockAuthServerMockRecorder) GetGroupToken

func (mr *MockAuthServerMockRecorder) GetGroupToken(ctx, group interface{}) *gomock.Call

GetGroupToken indicates an expected call of GetGroupToken

func (*MockAuthServerMockRecorder) GetGroups

func (mr *MockAuthServerMockRecorder) GetGroups(ctx, query interface{}) *gomock.Call

GetGroups indicates an expected call of GetGroups

func (*MockAuthServerMockRecorder) GetPrincipalResources

func (mr *MockAuthServerMockRecorder) GetPrincipalResources(ctx, query interface{}) *gomock.Call

GetPrincipalResources indicates an expected call of GetPrincipalResources

func (*MockAuthServerMockRecorder) GetStrategies

func (mr *MockAuthServerMockRecorder) GetStrategies(ctx, query interface{}) *gomock.Call

GetStrategies indicates an expected call of GetStrategies

func (*MockAuthServerMockRecorder) GetStrategy

func (mr *MockAuthServerMockRecorder) GetStrategy(ctx, strategy interface{}) *gomock.Call

GetStrategy indicates an expected call of GetStrategy

func (*MockAuthServerMockRecorder) GetUserToken

func (mr *MockAuthServerMockRecorder) GetUserToken(ctx, user interface{}) *gomock.Call

GetUserToken indicates an expected call of GetUserToken

func (*MockAuthServerMockRecorder) GetUsers

func (mr *MockAuthServerMockRecorder) GetUsers(ctx, query interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers

func (*MockAuthServerMockRecorder) Initialize

func (mr *MockAuthServerMockRecorder) Initialize(authOpt, storage, cacheMgn interface{}) *gomock.Call

Initialize indicates an expected call of Initialize

func (*MockAuthServerMockRecorder) Login

func (mr *MockAuthServerMockRecorder) Login(req interface{}) *gomock.Call

Login indicates an expected call of Login

func (*MockAuthServerMockRecorder) Name

Name indicates an expected call of Name

func (*MockAuthServerMockRecorder) ResetGroupToken

func (mr *MockAuthServerMockRecorder) ResetGroupToken(ctx, group interface{}) *gomock.Call

ResetGroupToken indicates an expected call of ResetGroupToken

func (*MockAuthServerMockRecorder) ResetUserToken

func (mr *MockAuthServerMockRecorder) ResetUserToken(ctx, user interface{}) *gomock.Call

ResetUserToken indicates an expected call of ResetUserToken

func (*MockAuthServerMockRecorder) UpdateGroupToken

func (mr *MockAuthServerMockRecorder) UpdateGroupToken(ctx, group interface{}) *gomock.Call

UpdateGroupToken indicates an expected call of UpdateGroupToken

func (*MockAuthServerMockRecorder) UpdateGroups

func (mr *MockAuthServerMockRecorder) UpdateGroups(ctx, groups interface{}) *gomock.Call

UpdateGroups indicates an expected call of UpdateGroups

func (*MockAuthServerMockRecorder) UpdateStrategies

func (mr *MockAuthServerMockRecorder) UpdateStrategies(ctx, reqs interface{}) *gomock.Call

UpdateStrategies indicates an expected call of UpdateStrategies

func (*MockAuthServerMockRecorder) UpdateUser

func (mr *MockAuthServerMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser

func (*MockAuthServerMockRecorder) UpdateUserPassword

func (mr *MockAuthServerMockRecorder) UpdateUserPassword(ctx, req interface{}) *gomock.Call

UpdateUserPassword indicates an expected call of UpdateUserPassword

func (*MockAuthServerMockRecorder) UpdateUserToken

func (mr *MockAuthServerMockRecorder) UpdateUserToken(ctx, user interface{}) *gomock.Call

UpdateUserToken indicates an expected call of UpdateUserToken

type MockAuthority

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

MockAuthority is a mock of Authority interface

func NewMockAuthority

func NewMockAuthority(ctrl *gomock.Controller) *MockAuthority

NewMockAuthority creates a new mock instance

func (*MockAuthority) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAuthority) VerifyInstance

func (m *MockAuthority) VerifyInstance(expectToken, actualToken string) bool

VerifyInstance mocks base method

func (*MockAuthority) VerifyMesh

func (m *MockAuthority) VerifyMesh(expectToken, actualToken string) bool

VerifyMesh mocks base method

func (*MockAuthority) VerifyNamespace

func (m *MockAuthority) VerifyNamespace(expectToken, actualToken string) bool

VerifyNamespace mocks base method

func (*MockAuthority) VerifyPlatform

func (m *MockAuthority) VerifyPlatform(expectToken, actualToken string) bool

VerifyPlatform mocks base method

func (*MockAuthority) VerifyRule

func (m *MockAuthority) VerifyRule(expectToken, actualToken string) bool

VerifyRule mocks base method

func (*MockAuthority) VerifyService

func (m *MockAuthority) VerifyService(expectToken, actualToken string) bool

VerifyService mocks base method

func (*MockAuthority) VerifyToken

func (m *MockAuthority) VerifyToken(actualToken string) bool

VerifyToken mocks base method

type MockAuthorityMockRecorder

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

MockAuthorityMockRecorder is the mock recorder for MockAuthority

func (*MockAuthorityMockRecorder) VerifyInstance

func (mr *MockAuthorityMockRecorder) VerifyInstance(expectToken, actualToken interface{}) *gomock.Call

VerifyInstance indicates an expected call of VerifyInstance

func (*MockAuthorityMockRecorder) VerifyMesh

func (mr *MockAuthorityMockRecorder) VerifyMesh(expectToken, actualToken interface{}) *gomock.Call

VerifyMesh indicates an expected call of VerifyMesh

func (*MockAuthorityMockRecorder) VerifyNamespace

func (mr *MockAuthorityMockRecorder) VerifyNamespace(expectToken, actualToken interface{}) *gomock.Call

VerifyNamespace indicates an expected call of VerifyNamespace

func (*MockAuthorityMockRecorder) VerifyPlatform

func (mr *MockAuthorityMockRecorder) VerifyPlatform(expectToken, actualToken interface{}) *gomock.Call

VerifyPlatform indicates an expected call of VerifyPlatform

func (*MockAuthorityMockRecorder) VerifyRule

func (mr *MockAuthorityMockRecorder) VerifyRule(expectToken, actualToken interface{}) *gomock.Call

VerifyRule indicates an expected call of VerifyRule

func (*MockAuthorityMockRecorder) VerifyService

func (mr *MockAuthorityMockRecorder) VerifyService(expectToken, actualToken interface{}) *gomock.Call

VerifyService indicates an expected call of VerifyService

func (*MockAuthorityMockRecorder) VerifyToken

func (mr *MockAuthorityMockRecorder) VerifyToken(actualToken interface{}) *gomock.Call

VerifyToken indicates an expected call of VerifyToken

type MockGroupOperator

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

MockGroupOperator is a mock of GroupOperator interface

func NewMockGroupOperator

func NewMockGroupOperator(ctrl *gomock.Controller) *MockGroupOperator

NewMockGroupOperator creates a new mock instance

func (*MockGroupOperator) CreateGroup

func (m *MockGroupOperator) CreateGroup(ctx context.Context, group *v1.UserGroup) *v1.Response

CreateGroup mocks base method

func (*MockGroupOperator) DeleteGroups

func (m *MockGroupOperator) DeleteGroups(ctx context.Context, group []*v1.UserGroup) *v1.BatchWriteResponse

DeleteGroups mocks base method

func (*MockGroupOperator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockGroupOperator) GetGroup

func (m *MockGroupOperator) GetGroup(ctx context.Context, req *v1.UserGroup) *v1.Response

GetGroup mocks base method

func (*MockGroupOperator) GetGroupToken

func (m *MockGroupOperator) GetGroupToken(ctx context.Context, group *v1.UserGroup) *v1.Response

GetGroupToken mocks base method

func (*MockGroupOperator) GetGroups

func (m *MockGroupOperator) GetGroups(ctx context.Context, query map[string]string) *v1.BatchQueryResponse

GetGroups mocks base method

func (*MockGroupOperator) ResetGroupToken

func (m *MockGroupOperator) ResetGroupToken(ctx context.Context, group *v1.UserGroup) *v1.Response

ResetGroupToken mocks base method

func (*MockGroupOperator) UpdateGroupToken

func (m *MockGroupOperator) UpdateGroupToken(ctx context.Context, group *v1.UserGroup) *v1.Response

UpdateGroupToken mocks base method

func (*MockGroupOperator) UpdateGroups

func (m *MockGroupOperator) UpdateGroups(ctx context.Context, groups []*v1.ModifyUserGroup) *v1.BatchWriteResponse

UpdateGroups mocks base method

type MockGroupOperatorMockRecorder

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

MockGroupOperatorMockRecorder is the mock recorder for MockGroupOperator

func (*MockGroupOperatorMockRecorder) CreateGroup

func (mr *MockGroupOperatorMockRecorder) CreateGroup(ctx, group interface{}) *gomock.Call

CreateGroup indicates an expected call of CreateGroup

func (*MockGroupOperatorMockRecorder) DeleteGroups

func (mr *MockGroupOperatorMockRecorder) DeleteGroups(ctx, group interface{}) *gomock.Call

DeleteGroups indicates an expected call of DeleteGroups

func (*MockGroupOperatorMockRecorder) GetGroup

func (mr *MockGroupOperatorMockRecorder) GetGroup(ctx, req interface{}) *gomock.Call

GetGroup indicates an expected call of GetGroup

func (*MockGroupOperatorMockRecorder) GetGroupToken

func (mr *MockGroupOperatorMockRecorder) GetGroupToken(ctx, group interface{}) *gomock.Call

GetGroupToken indicates an expected call of GetGroupToken

func (*MockGroupOperatorMockRecorder) GetGroups

func (mr *MockGroupOperatorMockRecorder) GetGroups(ctx, query interface{}) *gomock.Call

GetGroups indicates an expected call of GetGroups

func (*MockGroupOperatorMockRecorder) ResetGroupToken

func (mr *MockGroupOperatorMockRecorder) ResetGroupToken(ctx, group interface{}) *gomock.Call

ResetGroupToken indicates an expected call of ResetGroupToken

func (*MockGroupOperatorMockRecorder) UpdateGroupToken

func (mr *MockGroupOperatorMockRecorder) UpdateGroupToken(ctx, group interface{}) *gomock.Call

UpdateGroupToken indicates an expected call of UpdateGroupToken

func (*MockGroupOperatorMockRecorder) UpdateGroups

func (mr *MockGroupOperatorMockRecorder) UpdateGroups(ctx, groups interface{}) *gomock.Call

UpdateGroups indicates an expected call of UpdateGroups

type MockStrategyOperator

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

MockStrategyOperator is a mock of StrategyOperator interface

func NewMockStrategyOperator

func NewMockStrategyOperator(ctrl *gomock.Controller) *MockStrategyOperator

NewMockStrategyOperator creates a new mock instance

func (*MockStrategyOperator) CreateStrategy

func (m *MockStrategyOperator) CreateStrategy(ctx context.Context, strategy *v1.AuthStrategy) *v1.Response

CreateStrategy mocks base method

func (*MockStrategyOperator) DeleteStrategies

func (m *MockStrategyOperator) DeleteStrategies(ctx context.Context, reqs []*v1.AuthStrategy) *v1.BatchWriteResponse

DeleteStrategies mocks base method

func (*MockStrategyOperator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStrategyOperator) GetPrincipalResources

func (m *MockStrategyOperator) GetPrincipalResources(ctx context.Context, query map[string]string) *v1.Response

GetPrincipalResources mocks base method

func (*MockStrategyOperator) GetStrategies

func (m *MockStrategyOperator) GetStrategies(ctx context.Context, query map[string]string) *v1.BatchQueryResponse

GetStrategies mocks base method

func (*MockStrategyOperator) GetStrategy

func (m *MockStrategyOperator) GetStrategy(ctx context.Context, strategy *v1.AuthStrategy) *v1.Response

GetStrategy mocks base method

func (*MockStrategyOperator) UpdateStrategies

func (m *MockStrategyOperator) UpdateStrategies(ctx context.Context, reqs []*v1.ModifyAuthStrategy) *v1.BatchWriteResponse

UpdateStrategies mocks base method

type MockStrategyOperatorMockRecorder

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

MockStrategyOperatorMockRecorder is the mock recorder for MockStrategyOperator

func (*MockStrategyOperatorMockRecorder) CreateStrategy

func (mr *MockStrategyOperatorMockRecorder) CreateStrategy(ctx, strategy interface{}) *gomock.Call

CreateStrategy indicates an expected call of CreateStrategy

func (*MockStrategyOperatorMockRecorder) DeleteStrategies

func (mr *MockStrategyOperatorMockRecorder) DeleteStrategies(ctx, reqs interface{}) *gomock.Call

DeleteStrategies indicates an expected call of DeleteStrategies

func (*MockStrategyOperatorMockRecorder) GetPrincipalResources

func (mr *MockStrategyOperatorMockRecorder) GetPrincipalResources(ctx, query interface{}) *gomock.Call

GetPrincipalResources indicates an expected call of GetPrincipalResources

func (*MockStrategyOperatorMockRecorder) GetStrategies

func (mr *MockStrategyOperatorMockRecorder) GetStrategies(ctx, query interface{}) *gomock.Call

GetStrategies indicates an expected call of GetStrategies

func (*MockStrategyOperatorMockRecorder) GetStrategy

func (mr *MockStrategyOperatorMockRecorder) GetStrategy(ctx, strategy interface{}) *gomock.Call

GetStrategy indicates an expected call of GetStrategy

func (*MockStrategyOperatorMockRecorder) UpdateStrategies

func (mr *MockStrategyOperatorMockRecorder) UpdateStrategies(ctx, reqs interface{}) *gomock.Call

UpdateStrategies indicates an expected call of UpdateStrategies

type MockUserOperator

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

MockUserOperator is a mock of UserOperator interface

func NewMockUserOperator

func NewMockUserOperator(ctrl *gomock.Controller) *MockUserOperator

NewMockUserOperator creates a new mock instance

func (*MockUserOperator) CreateUsers

func (m *MockUserOperator) CreateUsers(ctx context.Context, users []*v1.User) *v1.BatchWriteResponse

CreateUsers mocks base method

func (*MockUserOperator) DeleteUsers

func (m *MockUserOperator) DeleteUsers(ctx context.Context, users []*v1.User) *v1.BatchWriteResponse

DeleteUsers mocks base method

func (*MockUserOperator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUserOperator) GetUserToken

func (m *MockUserOperator) GetUserToken(ctx context.Context, user *v1.User) *v1.Response

GetUserToken mocks base method

func (*MockUserOperator) GetUsers

func (m *MockUserOperator) GetUsers(ctx context.Context, query map[string]string) *v1.BatchQueryResponse

GetUsers mocks base method

func (*MockUserOperator) ResetUserToken

func (m *MockUserOperator) ResetUserToken(ctx context.Context, user *v1.User) *v1.Response

ResetUserToken mocks base method

func (*MockUserOperator) UpdateUser

func (m *MockUserOperator) UpdateUser(ctx context.Context, user *v1.User) *v1.Response

UpdateUser mocks base method

func (*MockUserOperator) UpdateUserPassword

func (m *MockUserOperator) UpdateUserPassword(ctx context.Context, req *v1.ModifyUserPassword) *v1.Response

UpdateUserPassword mocks base method

func (*MockUserOperator) UpdateUserToken

func (m *MockUserOperator) UpdateUserToken(ctx context.Context, user *v1.User) *v1.Response

UpdateUserToken mocks base method

type MockUserOperatorMockRecorder

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

MockUserOperatorMockRecorder is the mock recorder for MockUserOperator

func (*MockUserOperatorMockRecorder) CreateUsers

func (mr *MockUserOperatorMockRecorder) CreateUsers(ctx, users interface{}) *gomock.Call

CreateUsers indicates an expected call of CreateUsers

func (*MockUserOperatorMockRecorder) DeleteUsers

func (mr *MockUserOperatorMockRecorder) DeleteUsers(ctx, users interface{}) *gomock.Call

DeleteUsers indicates an expected call of DeleteUsers

func (*MockUserOperatorMockRecorder) GetUserToken

func (mr *MockUserOperatorMockRecorder) GetUserToken(ctx, user interface{}) *gomock.Call

GetUserToken indicates an expected call of GetUserToken

func (*MockUserOperatorMockRecorder) GetUsers

func (mr *MockUserOperatorMockRecorder) GetUsers(ctx, query interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers

func (*MockUserOperatorMockRecorder) ResetUserToken

func (mr *MockUserOperatorMockRecorder) ResetUserToken(ctx, user interface{}) *gomock.Call

ResetUserToken indicates an expected call of ResetUserToken

func (*MockUserOperatorMockRecorder) UpdateUser

func (mr *MockUserOperatorMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser

func (*MockUserOperatorMockRecorder) UpdateUserPassword

func (mr *MockUserOperatorMockRecorder) UpdateUserPassword(ctx, req interface{}) *gomock.Call

UpdateUserPassword indicates an expected call of UpdateUserPassword

func (*MockUserOperatorMockRecorder) UpdateUserToken

func (mr *MockUserOperatorMockRecorder) UpdateUserToken(ctx, user interface{}) *gomock.Call

UpdateUserToken indicates an expected call of UpdateUserToken

Jump to

Keyboard shortcuts

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