mocks

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyFinder

type APIKeyFinder struct {
	mock.Mock
}

APIKeyFinder is an autogenerated mock type for the APIKeyFinder type

func NewAPIKeyFinder

func NewAPIKeyFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIKeyFinder

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

func (_m *APIKeyFinder) EXPECT() *APIKeyFinder_Expecter

func (*APIKeyFinder) FindByAPIKey

func (_m *APIKeyFinder) FindByAPIKey(ctx context.Context, rawKey string) (*auth.Auth, error)

FindByAPIKey provides a mock function with given fields: ctx, rawKey

type APIKeyFinder_Expecter

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

func (*APIKeyFinder_Expecter) FindByAPIKey

func (_e *APIKeyFinder_Expecter) FindByAPIKey(ctx interface{}, rawKey interface{}) *APIKeyFinder_FindByAPIKey_Call

FindByAPIKey is a helper method to define mock.On call

  • ctx context.Context
  • rawKey string

type APIKeyFinder_FindByAPIKey_Call

type APIKeyFinder_FindByAPIKey_Call struct {
	*mock.Call
}

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

func (*APIKeyFinder_FindByAPIKey_Call) Return

func (*APIKeyFinder_FindByAPIKey_Call) Run

func (*APIKeyFinder_FindByAPIKey_Call) RunAndReturn

type ClientCertificateExtractor

type ClientCertificateExtractor struct {
	mock.Mock
}

ClientCertificateExtractor is an autogenerated mock type for the ClientCertificateExtractor type

func NewClientCertificateExtractor

func NewClientCertificateExtractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientCertificateExtractor

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

func (*ClientCertificateExtractor) FromXFCC

func (_m *ClientCertificateExtractor) FromXFCC(header string) (*x509.Certificate, error)

FromXFCC provides a mock function with given fields: header

type ClientCertificateExtractor_Expecter

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

func (*ClientCertificateExtractor_Expecter) FromXFCC

FromXFCC is a helper method to define mock.On call

  • header string

type ClientCertificateExtractor_FromXFCC_Call

type ClientCertificateExtractor_FromXFCC_Call struct {
	*mock.Call
}

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

func (*ClientCertificateExtractor_FromXFCC_Call) Return

func (*ClientCertificateExtractor_FromXFCC_Call) Run

func (*ClientCertificateExtractor_FromXFCC_Call) RunAndReturn

type Creator

type Creator struct {
	mock.Mock
}

Creator is an autogenerated mock type for the Creator type

func NewCreator

func NewCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Creator

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

func (_m *Creator) Create(ctx context.Context, in auth.CreateInput) (*domainauth.Auth, error)

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

func (*Creator) EXPECT

func (_m *Creator) EXPECT() *Creator_Expecter

type Creator_Create_Call

type Creator_Create_Call struct {
	*mock.Call
}

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

func (*Creator_Create_Call) Return

func (*Creator_Create_Call) Run

func (*Creator_Create_Call) RunAndReturn

type Creator_Expecter

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

func (*Creator_Expecter) Create

func (_e *Creator_Expecter) Create(ctx interface{}, in interface{}) *Creator_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • in auth.CreateInput

type CredentialFinder

type CredentialFinder struct {
	mock.Mock
}

CredentialFinder is an autogenerated mock type for the CredentialFinder type

func NewCredentialFinder

func NewCredentialFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *CredentialFinder

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

func (*CredentialFinder) MTLSAuths

func (_m *CredentialFinder) MTLSAuths(ctx context.Context) ([]*auth.Auth, error)

MTLSAuths provides a mock function with given fields: ctx

func (*CredentialFinder) OAuth2Auths

func (_m *CredentialFinder) OAuth2Auths(ctx context.Context) ([]*auth.Auth, error)

OAuth2Auths provides a mock function with given fields: ctx

func (*CredentialFinder) OAuth2AuthsForGateway

func (_m *CredentialFinder) OAuth2AuthsForGateway(ctx context.Context, gatewayID ids.GatewayID) ([]*auth.Auth, error)

OAuth2AuthsForGateway provides a mock function with given fields: ctx, gatewayID

type CredentialFinder_Expecter

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

func (*CredentialFinder_Expecter) MTLSAuths

func (_e *CredentialFinder_Expecter) MTLSAuths(ctx interface{}) *CredentialFinder_MTLSAuths_Call

MTLSAuths is a helper method to define mock.On call

  • ctx context.Context

func (*CredentialFinder_Expecter) OAuth2Auths

func (_e *CredentialFinder_Expecter) OAuth2Auths(ctx interface{}) *CredentialFinder_OAuth2Auths_Call

OAuth2Auths is a helper method to define mock.On call

  • ctx context.Context

func (*CredentialFinder_Expecter) OAuth2AuthsForGateway

func (_e *CredentialFinder_Expecter) OAuth2AuthsForGateway(ctx interface{}, gatewayID interface{}) *CredentialFinder_OAuth2AuthsForGateway_Call

OAuth2AuthsForGateway is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.GatewayID

type CredentialFinder_MTLSAuths_Call

type CredentialFinder_MTLSAuths_Call struct {
	*mock.Call
}

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

func (*CredentialFinder_MTLSAuths_Call) Return

func (*CredentialFinder_MTLSAuths_Call) Run

func (*CredentialFinder_MTLSAuths_Call) RunAndReturn

type CredentialFinder_OAuth2AuthsForGateway_Call

type CredentialFinder_OAuth2AuthsForGateway_Call struct {
	*mock.Call
}

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

func (*CredentialFinder_OAuth2AuthsForGateway_Call) Return

func (*CredentialFinder_OAuth2AuthsForGateway_Call) Run

func (*CredentialFinder_OAuth2AuthsForGateway_Call) RunAndReturn

type CredentialFinder_OAuth2Auths_Call

type CredentialFinder_OAuth2Auths_Call struct {
	*mock.Call
}

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

func (*CredentialFinder_OAuth2Auths_Call) Return

func (*CredentialFinder_OAuth2Auths_Call) Run

func (*CredentialFinder_OAuth2Auths_Call) RunAndReturn

type Deleter

type Deleter struct {
	mock.Mock
}

Deleter is an autogenerated mock type for the Deleter type

func NewDeleter

func NewDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Deleter

NewDeleter creates a new instance of Deleter. 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 (*Deleter) Delete

func (_m *Deleter) Delete(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.AuthKind]) error

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

func (*Deleter) EXPECT

func (_m *Deleter) EXPECT() *Deleter_Expecter

type Deleter_Delete_Call

type Deleter_Delete_Call struct {
	*mock.Call
}

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

func (*Deleter_Delete_Call) Return

func (*Deleter_Delete_Call) Run

func (_c *Deleter_Delete_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.AuthKind])) *Deleter_Delete_Call

func (*Deleter_Delete_Call) RunAndReturn

type Deleter_Expecter

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

func (*Deleter_Expecter) Delete

func (_e *Deleter_Expecter) Delete(ctx interface{}, gatewayID interface{}, id interface{}) *Deleter_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • id ids.ID[ids.AuthKind]

type Finder

type Finder struct {
	mock.Mock
}

Finder is an autogenerated mock type for the Finder type

func NewFinder

func NewFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Finder

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

func (_m *Finder) EXPECT() *Finder_Expecter

func (*Finder) FindByID

func (_m *Finder) FindByID(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.AuthKind]) (*auth.Auth, error)

FindByID provides a mock function with given fields: ctx, gatewayID, id

func (*Finder) List

func (_m *Finder) List(ctx context.Context, filter auth.ListFilter) ([]*auth.Auth, int, error)

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

type Finder_Expecter

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

func (*Finder_Expecter) FindByID

func (_e *Finder_Expecter) FindByID(ctx interface{}, gatewayID interface{}, id interface{}) *Finder_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • id ids.ID[ids.AuthKind]

func (*Finder_Expecter) List

func (_e *Finder_Expecter) List(ctx interface{}, filter interface{}) *Finder_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter auth.ListFilter

type Finder_FindByID_Call

type Finder_FindByID_Call struct {
	*mock.Call
}

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

func (*Finder_FindByID_Call) Return

func (_c *Finder_FindByID_Call) Return(_a0 *auth.Auth, _a1 error) *Finder_FindByID_Call

func (*Finder_FindByID_Call) Run

func (_c *Finder_FindByID_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.AuthKind])) *Finder_FindByID_Call

func (*Finder_FindByID_Call) RunAndReturn

type Finder_List_Call

type Finder_List_Call struct {
	*mock.Call
}

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

func (*Finder_List_Call) Return

func (_c *Finder_List_Call) Return(_a0 []*auth.Auth, _a1 int, _a2 error) *Finder_List_Call

func (*Finder_List_Call) Run

func (_c *Finder_List_Call) Run(run func(ctx context.Context, filter auth.ListFilter)) *Finder_List_Call

func (*Finder_List_Call) RunAndReturn

func (_c *Finder_List_Call) RunAndReturn(run func(context.Context, auth.ListFilter) ([]*auth.Auth, int, error)) *Finder_List_Call

type IntrospectionValidator

type IntrospectionValidator struct {
	mock.Mock
}

IntrospectionValidator is an autogenerated mock type for the IntrospectionValidator type

func NewIntrospectionValidator

func NewIntrospectionValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntrospectionValidator

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

func (*IntrospectionValidator) Validate

Validate provides a mock function with given fields: ctx, raw, cfg

type IntrospectionValidator_Expecter

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

func (*IntrospectionValidator_Expecter) Validate

func (_e *IntrospectionValidator_Expecter) Validate(ctx interface{}, raw interface{}, cfg interface{}) *IntrospectionValidator_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • raw string
  • cfg *auth.OAuth2Config

type IntrospectionValidator_Validate_Call

type IntrospectionValidator_Validate_Call struct {
	*mock.Call
}

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

func (*IntrospectionValidator_Validate_Call) Return

func (*IntrospectionValidator_Validate_Call) Run

func (*IntrospectionValidator_Validate_Call) RunAndReturn

type JWTValidator

type JWTValidator struct {
	mock.Mock
}

JWTValidator is an autogenerated mock type for the JWTValidator type

func NewJWTValidator

func NewJWTValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *JWTValidator

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

func (_m *JWTValidator) EXPECT() *JWTValidator_Expecter

func (*JWTValidator) Validate

func (_m *JWTValidator) Validate(ctx context.Context, raw string, cfg *auth.OAuth2Config) (*identity.Principal, error)

Validate provides a mock function with given fields: ctx, raw, cfg

type JWTValidator_Expecter

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

func (*JWTValidator_Expecter) Validate

func (_e *JWTValidator_Expecter) Validate(ctx interface{}, raw interface{}, cfg interface{}) *JWTValidator_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • raw string
  • cfg *auth.OAuth2Config

type JWTValidator_Validate_Call

type JWTValidator_Validate_Call struct {
	*mock.Call
}

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

func (*JWTValidator_Validate_Call) Return

func (*JWTValidator_Validate_Call) Run

func (*JWTValidator_Validate_Call) RunAndReturn

type MTLSValidator

type MTLSValidator struct {
	mock.Mock
}

MTLSValidator is an autogenerated mock type for the MTLSValidator type

func NewMTLSValidator

func NewMTLSValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MTLSValidator

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

func (_m *MTLSValidator) EXPECT() *MTLSValidator_Expecter

func (*MTLSValidator) Validate

func (_m *MTLSValidator) Validate(cert *x509.Certificate, cfg *auth.MTLSConfig) (*identity.Principal, error)

Validate provides a mock function with given fields: cert, cfg

type MTLSValidator_Expecter

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

func (*MTLSValidator_Expecter) Validate

func (_e *MTLSValidator_Expecter) Validate(cert interface{}, cfg interface{}) *MTLSValidator_Validate_Call

Validate is a helper method to define mock.On call

  • cert *x509.Certificate
  • cfg *auth.MTLSConfig

type MTLSValidator_Validate_Call

type MTLSValidator_Validate_Call struct {
	*mock.Call
}

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

func (*MTLSValidator_Validate_Call) Return

func (*MTLSValidator_Validate_Call) Run

func (*MTLSValidator_Validate_Call) RunAndReturn

type OIDCFinder

type OIDCFinder struct {
	mock.Mock
}

OIDCFinder is an autogenerated mock type for the OIDCFinder type

func NewOIDCFinder

func NewOIDCFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *OIDCFinder

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

func (_m *OIDCFinder) EXPECT() *OIDCFinder_Expecter

func (*OIDCFinder) FindOIDCAuth

func (_m *OIDCFinder) FindOIDCAuth(ctx context.Context, auths []*auth.Auth, token string) (*auth.Auth, error)

FindOIDCAuth provides a mock function with given fields: ctx, auths, token

type OIDCFinder_Expecter

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

func (*OIDCFinder_Expecter) FindOIDCAuth

func (_e *OIDCFinder_Expecter) FindOIDCAuth(ctx interface{}, auths interface{}, token interface{}) *OIDCFinder_FindOIDCAuth_Call

FindOIDCAuth is a helper method to define mock.On call

  • ctx context.Context
  • auths []*auth.Auth
  • token string

type OIDCFinder_FindOIDCAuth_Call

type OIDCFinder_FindOIDCAuth_Call struct {
	*mock.Call
}

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

func (*OIDCFinder_FindOIDCAuth_Call) Return

func (*OIDCFinder_FindOIDCAuth_Call) Run

func (_c *OIDCFinder_FindOIDCAuth_Call) Run(run func(ctx context.Context, auths []*auth.Auth, token string)) *OIDCFinder_FindOIDCAuth_Call

func (*OIDCFinder_FindOIDCAuth_Call) RunAndReturn

type OIDCVerifier

type OIDCVerifier struct {
	mock.Mock
}

OIDCVerifier is an autogenerated mock type for the OIDCVerifier type

func NewOIDCVerifier

func NewOIDCVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *OIDCVerifier

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

func (_m *OIDCVerifier) EXPECT() *OIDCVerifier_Expecter

func (*OIDCVerifier) Peek

func (_m *OIDCVerifier) Peek(token string) (auth.TokenHints, error)

Peek provides a mock function with given fields: token

func (*OIDCVerifier) Verify

Verify provides a mock function with given fields: ctx, token, cfg

type OIDCVerifier_Expecter

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

func (*OIDCVerifier_Expecter) Peek

func (_e *OIDCVerifier_Expecter) Peek(token interface{}) *OIDCVerifier_Peek_Call

Peek is a helper method to define mock.On call

  • token string

func (*OIDCVerifier_Expecter) Verify

func (_e *OIDCVerifier_Expecter) Verify(ctx interface{}, token interface{}, cfg interface{}) *OIDCVerifier_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context
  • token string
  • cfg domainauth.OIDCConfig

type OIDCVerifier_Peek_Call

type OIDCVerifier_Peek_Call struct {
	*mock.Call
}

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

func (*OIDCVerifier_Peek_Call) Return

func (*OIDCVerifier_Peek_Call) Run

func (_c *OIDCVerifier_Peek_Call) Run(run func(token string)) *OIDCVerifier_Peek_Call

func (*OIDCVerifier_Peek_Call) RunAndReturn

func (_c *OIDCVerifier_Peek_Call) RunAndReturn(run func(string) (auth.TokenHints, error)) *OIDCVerifier_Peek_Call

type OIDCVerifier_Verify_Call

type OIDCVerifier_Verify_Call struct {
	*mock.Call
}

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

func (*OIDCVerifier_Verify_Call) Return

func (*OIDCVerifier_Verify_Call) Run

func (*OIDCVerifier_Verify_Call) RunAndReturn

type SessionTokenVerifier added in v0.2.3

type SessionTokenVerifier struct {
	mock.Mock
}

SessionTokenVerifier is an autogenerated mock type for the SessionTokenVerifier type

func NewSessionTokenVerifier added in v0.2.3

func NewSessionTokenVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *SessionTokenVerifier

NewSessionTokenVerifier creates a new instance of SessionTokenVerifier. 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 (*SessionTokenVerifier) EXPECT added in v0.2.3

func (*SessionTokenVerifier) Issuer added in v0.2.3

func (_m *SessionTokenVerifier) Issuer() string

Issuer provides a mock function with no fields

func (*SessionTokenVerifier) Verify added in v0.2.3

Verify provides a mock function with given fields: ctx, raw

type SessionTokenVerifier_Expecter added in v0.2.3

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

func (*SessionTokenVerifier_Expecter) Issuer added in v0.2.3

Issuer is a helper method to define mock.On call

func (*SessionTokenVerifier_Expecter) Verify added in v0.2.3

func (_e *SessionTokenVerifier_Expecter) Verify(ctx interface{}, raw interface{}) *SessionTokenVerifier_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context
  • raw string

type SessionTokenVerifier_Issuer_Call added in v0.2.3

type SessionTokenVerifier_Issuer_Call struct {
	*mock.Call
}

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

func (*SessionTokenVerifier_Issuer_Call) Return added in v0.2.3

func (*SessionTokenVerifier_Issuer_Call) Run added in v0.2.3

func (*SessionTokenVerifier_Issuer_Call) RunAndReturn added in v0.2.3

type SessionTokenVerifier_Verify_Call added in v0.2.3

type SessionTokenVerifier_Verify_Call struct {
	*mock.Call
}

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

func (*SessionTokenVerifier_Verify_Call) Return added in v0.2.3

func (*SessionTokenVerifier_Verify_Call) Run added in v0.2.3

func (*SessionTokenVerifier_Verify_Call) RunAndReturn added in v0.2.3

type Updater

type Updater struct {
	mock.Mock
}

Updater is an autogenerated mock type for the Updater type

func NewUpdater

func NewUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *Updater

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

func (_m *Updater) EXPECT() *Updater_Expecter

func (*Updater) Update

func (_m *Updater) Update(ctx context.Context, in auth.UpdateInput) (*domainauth.Auth, error)

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

type Updater_Expecter

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

func (*Updater_Expecter) Update

func (_e *Updater_Expecter) Update(ctx interface{}, in interface{}) *Updater_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • in auth.UpdateInput

type Updater_Update_Call

type Updater_Update_Call struct {
	*mock.Call
}

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

func (*Updater_Update_Call) Return

func (*Updater_Update_Call) Run

func (*Updater_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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