mock

package
v0.0.0-...-8450a52 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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 MockFormatter

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

MockFormatter is a mock of Formatter interface.

func NewMockFormatter

func NewMockFormatter(ctrl *gomock.Controller) *MockFormatter

NewMockFormatter creates a new mock instance.

func (*MockFormatter) AccessGrant

AccessGrant mocks base method.

func (*MockFormatter) AccessGrantFromAuthorizationRequestInsertable

func (m *MockFormatter) AccessGrantFromAuthorizationRequestInsertable(r entity.AuthorizationRequestJSON, application entity.OauthApplication) entity.OauthAccessGrantInsertable

AccessGrantFromAuthorizationRequestInsertable mocks base method.

func (*MockFormatter) AccessToken

func (m *MockFormatter) AccessToken(e entity.OauthAccessToken, redirectURI string, refreshTokenJSON *entity.OauthRefreshTokenJSON) entity.OauthAccessTokenJSON

AccessToken mocks base method.

func (*MockFormatter) AccessTokenFromAuthorizationRequestInsertable

func (m *MockFormatter) AccessTokenFromAuthorizationRequestInsertable(r entity.AuthorizationRequestJSON, application entity.OauthApplication) entity.OauthAccessTokenInsertable

AccessTokenFromAuthorizationRequestInsertable mocks base method.

func (*MockFormatter) AccessTokenFromOauthAccessGrantInsertable

func (m *MockFormatter) AccessTokenFromOauthAccessGrantInsertable(oauthAccessGrant entity.OauthAccessGrant, application entity.OauthApplication) entity.OauthAccessTokenInsertable

AccessTokenFromOauthAccessGrantInsertable mocks base method.

func (*MockFormatter) AccessTokenFromOauthRefreshTokenInsertable

func (m *MockFormatter) AccessTokenFromOauthRefreshTokenInsertable(application entity.OauthApplication, accessToken entity.OauthAccessToken) entity.OauthAccessTokenInsertable

AccessTokenFromOauthRefreshTokenInsertable mocks base method.

func (*MockFormatter) EXPECT

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

func (*MockFormatter) OauthApplicationInsertable

OauthApplicationInsertable mocks base method.

func (*MockFormatter) RefreshToken

RefreshToken mocks base method.

func (*MockFormatter) RefreshTokenInsertable

func (m *MockFormatter) RefreshTokenInsertable(application entity.OauthApplication, accessToken entity.OauthAccessToken) entity.OauthRefreshTokenInsertable

RefreshTokenInsertable mocks base method.

type MockFormatterMockRecorder

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

MockFormatterMockRecorder is the mock recorder for MockFormatter.

func (*MockFormatterMockRecorder) AccessGrant

func (mr *MockFormatterMockRecorder) AccessGrant(e interface{}) *gomock.Call

AccessGrant indicates an expected call of AccessGrant.

func (*MockFormatterMockRecorder) AccessGrantFromAuthorizationRequestInsertable

func (mr *MockFormatterMockRecorder) AccessGrantFromAuthorizationRequestInsertable(r, application interface{}) *gomock.Call

AccessGrantFromAuthorizationRequestInsertable indicates an expected call of AccessGrantFromAuthorizationRequestInsertable.

func (*MockFormatterMockRecorder) AccessToken

func (mr *MockFormatterMockRecorder) AccessToken(e, redirectURI, refreshTokenJSON interface{}) *gomock.Call

AccessToken indicates an expected call of AccessToken.

func (*MockFormatterMockRecorder) AccessTokenFromAuthorizationRequestInsertable

func (mr *MockFormatterMockRecorder) AccessTokenFromAuthorizationRequestInsertable(r, application interface{}) *gomock.Call

AccessTokenFromAuthorizationRequestInsertable indicates an expected call of AccessTokenFromAuthorizationRequestInsertable.

func (*MockFormatterMockRecorder) AccessTokenFromOauthAccessGrantInsertable

func (mr *MockFormatterMockRecorder) AccessTokenFromOauthAccessGrantInsertable(oauthAccessGrant, application interface{}) *gomock.Call

AccessTokenFromOauthAccessGrantInsertable indicates an expected call of AccessTokenFromOauthAccessGrantInsertable.

func (*MockFormatterMockRecorder) AccessTokenFromOauthRefreshTokenInsertable

func (mr *MockFormatterMockRecorder) AccessTokenFromOauthRefreshTokenInsertable(application, accessToken interface{}) *gomock.Call

AccessTokenFromOauthRefreshTokenInsertable indicates an expected call of AccessTokenFromOauthRefreshTokenInsertable.

func (*MockFormatterMockRecorder) OauthApplicationInsertable

func (mr *MockFormatterMockRecorder) OauthApplicationInsertable(r interface{}) *gomock.Call

OauthApplicationInsertable indicates an expected call of OauthApplicationInsertable.

func (*MockFormatterMockRecorder) RefreshToken

func (mr *MockFormatterMockRecorder) RefreshToken(e interface{}) *gomock.Call

RefreshToken indicates an expected call of RefreshToken.

func (*MockFormatterMockRecorder) RefreshTokenInsertable

func (mr *MockFormatterMockRecorder) RefreshTokenInsertable(application, accessToken interface{}) *gomock.Call

RefreshTokenInsertable indicates an expected call of RefreshTokenInsertable.

type MockOauthAccessGrantRepository

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

MockOauthAccessGrantRepository is a mock of OauthAccessGrantRepository interface.

func NewMockOauthAccessGrantRepository

func NewMockOauthAccessGrantRepository(ctrl *gomock.Controller) *MockOauthAccessGrantRepository

NewMockOauthAccessGrantRepository creates a new mock instance.

func (*MockOauthAccessGrantRepository) Create

Create mocks base method.

func (*MockOauthAccessGrantRepository) EXPECT

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

func (*MockOauthAccessGrantRepository) One

One mocks base method.

func (*MockOauthAccessGrantRepository) OneByCode

OneByCode mocks base method.

func (*MockOauthAccessGrantRepository) Revoke

Revoke mocks base method.

type MockOauthAccessGrantRepositoryMockRecorder

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

MockOauthAccessGrantRepositoryMockRecorder is the mock recorder for MockOauthAccessGrantRepository.

func (*MockOauthAccessGrantRepositoryMockRecorder) Create

func (mr *MockOauthAccessGrantRepositoryMockRecorder) Create(ktx, data, tx interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockOauthAccessGrantRepositoryMockRecorder) One

func (mr *MockOauthAccessGrantRepositoryMockRecorder) One(ktx, ID, tx interface{}) *gomock.Call

One indicates an expected call of One.

func (*MockOauthAccessGrantRepositoryMockRecorder) OneByCode

func (mr *MockOauthAccessGrantRepositoryMockRecorder) OneByCode(ktx, code, tx interface{}) *gomock.Call

OneByCode indicates an expected call of OneByCode.

func (*MockOauthAccessGrantRepositoryMockRecorder) Revoke

func (mr *MockOauthAccessGrantRepositoryMockRecorder) Revoke(ktx, code, tx interface{}) *gomock.Call

Revoke indicates an expected call of Revoke.

type MockOauthAccessTokenRepository

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

MockOauthAccessTokenRepository is a mock of OauthAccessTokenRepository interface.

func NewMockOauthAccessTokenRepository

func NewMockOauthAccessTokenRepository(ctrl *gomock.Controller) *MockOauthAccessTokenRepository

NewMockOauthAccessTokenRepository creates a new mock instance.

func (*MockOauthAccessTokenRepository) Create

Create mocks base method.

func (*MockOauthAccessTokenRepository) EXPECT

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

func (*MockOauthAccessTokenRepository) One

One mocks base method.

func (*MockOauthAccessTokenRepository) OneByToken

OneByToken mocks base method.

func (*MockOauthAccessTokenRepository) Revoke

Revoke mocks base method.

type MockOauthAccessTokenRepositoryMockRecorder

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

MockOauthAccessTokenRepositoryMockRecorder is the mock recorder for MockOauthAccessTokenRepository.

func (*MockOauthAccessTokenRepositoryMockRecorder) Create

func (mr *MockOauthAccessTokenRepositoryMockRecorder) Create(ktx, data, tx interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockOauthAccessTokenRepositoryMockRecorder) One

func (mr *MockOauthAccessTokenRepositoryMockRecorder) One(ktx, ID, tx interface{}) *gomock.Call

One indicates an expected call of One.

func (*MockOauthAccessTokenRepositoryMockRecorder) OneByToken

func (mr *MockOauthAccessTokenRepositoryMockRecorder) OneByToken(ktx, token, tx interface{}) *gomock.Call

OneByToken indicates an expected call of OneByToken.

func (*MockOauthAccessTokenRepositoryMockRecorder) Revoke

func (mr *MockOauthAccessTokenRepositoryMockRecorder) Revoke(ktx, token, tx interface{}) *gomock.Call

Revoke indicates an expected call of Revoke.

type MockOauthApplicationRepository

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

MockOauthApplicationRepository is a mock of OauthApplicationRepository interface.

func NewMockOauthApplicationRepository

func NewMockOauthApplicationRepository(ctrl *gomock.Controller) *MockOauthApplicationRepository

NewMockOauthApplicationRepository creates a new mock instance.

func (*MockOauthApplicationRepository) Count

Count mocks base method.

func (*MockOauthApplicationRepository) Create

Create mocks base method.

func (*MockOauthApplicationRepository) EXPECT

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

func (*MockOauthApplicationRepository) One

One mocks base method.

func (*MockOauthApplicationRepository) OneByUIDandSecret

func (m *MockOauthApplicationRepository) OneByUIDandSecret(ktx kontext.Context, clientUID, clientSecret string, tx db.TX) (entity.OauthApplication, exception.Exception)

OneByUIDandSecret mocks base method.

func (*MockOauthApplicationRepository) Paginate

Paginate mocks base method.

func (*MockOauthApplicationRepository) Update

Update mocks base method.

type MockOauthApplicationRepositoryMockRecorder

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

MockOauthApplicationRepositoryMockRecorder is the mock recorder for MockOauthApplicationRepository.

func (*MockOauthApplicationRepositoryMockRecorder) Count

func (mr *MockOauthApplicationRepositoryMockRecorder) Count(ktx, tx interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockOauthApplicationRepositoryMockRecorder) Create

func (mr *MockOauthApplicationRepositoryMockRecorder) Create(ktx, data, tx interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockOauthApplicationRepositoryMockRecorder) One

func (mr *MockOauthApplicationRepositoryMockRecorder) One(ktx, ID, tx interface{}) *gomock.Call

One indicates an expected call of One.

func (*MockOauthApplicationRepositoryMockRecorder) OneByUIDandSecret

func (mr *MockOauthApplicationRepositoryMockRecorder) OneByUIDandSecret(ktx, clientUID, clientSecret, tx interface{}) *gomock.Call

OneByUIDandSecret indicates an expected call of OneByUIDandSecret.

func (*MockOauthApplicationRepositoryMockRecorder) Paginate

func (mr *MockOauthApplicationRepositoryMockRecorder) Paginate(ktx, offset, limit, tx interface{}) *gomock.Call

Paginate indicates an expected call of Paginate.

func (*MockOauthApplicationRepositoryMockRecorder) Update

func (mr *MockOauthApplicationRepositoryMockRecorder) Update(ktx, ID, data, tx interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockOauthRefreshTokenRepository

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

MockOauthRefreshTokenRepository is a mock of OauthRefreshTokenRepository interface.

func NewMockOauthRefreshTokenRepository

func NewMockOauthRefreshTokenRepository(ctrl *gomock.Controller) *MockOauthRefreshTokenRepository

NewMockOauthRefreshTokenRepository creates a new mock instance.

func (*MockOauthRefreshTokenRepository) Create

Create mocks base method.

func (*MockOauthRefreshTokenRepository) EXPECT

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

func (*MockOauthRefreshTokenRepository) One

One mocks base method.

func (*MockOauthRefreshTokenRepository) OneByToken

OneByToken mocks base method.

func (*MockOauthRefreshTokenRepository) Revoke

Revoke mocks base method.

type MockOauthRefreshTokenRepositoryMockRecorder

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

MockOauthRefreshTokenRepositoryMockRecorder is the mock recorder for MockOauthRefreshTokenRepository.

func (*MockOauthRefreshTokenRepositoryMockRecorder) Create

func (mr *MockOauthRefreshTokenRepositoryMockRecorder) Create(ktx, data, tx interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockOauthRefreshTokenRepositoryMockRecorder) One

func (mr *MockOauthRefreshTokenRepositoryMockRecorder) One(ktx, ID, tx interface{}) *gomock.Call

One indicates an expected call of One.

func (*MockOauthRefreshTokenRepositoryMockRecorder) OneByToken

func (mr *MockOauthRefreshTokenRepositoryMockRecorder) OneByToken(ktx, token, tx interface{}) *gomock.Call

OneByToken indicates an expected call of OneByToken.

func (*MockOauthRefreshTokenRepositoryMockRecorder) Revoke

func (mr *MockOauthRefreshTokenRepositoryMockRecorder) Revoke(ktx, token, tx interface{}) *gomock.Call

Revoke indicates an expected call of Revoke.

Jump to

Keyboard shortcuts

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