Documentation
¶
Index ¶
- type APIKeyFinder
- type APIKeyFinder_Expecter
- type APIKeyFinder_FindByAPIKey_Call
- func (_c *APIKeyFinder_FindByAPIKey_Call) Return(_a0 *auth.Auth, _a1 error) *APIKeyFinder_FindByAPIKey_Call
- func (_c *APIKeyFinder_FindByAPIKey_Call) Run(run func(ctx context.Context, rawKey string)) *APIKeyFinder_FindByAPIKey_Call
- func (_c *APIKeyFinder_FindByAPIKey_Call) RunAndReturn(run func(context.Context, string) (*auth.Auth, error)) *APIKeyFinder_FindByAPIKey_Call
- type ClientCertificateExtractor
- type ClientCertificateExtractor_Expecter
- type ClientCertificateExtractor_FromXFCC_Call
- func (_c *ClientCertificateExtractor_FromXFCC_Call) Return(_a0 *x509.Certificate, _a1 error) *ClientCertificateExtractor_FromXFCC_Call
- func (_c *ClientCertificateExtractor_FromXFCC_Call) Run(run func(header string)) *ClientCertificateExtractor_FromXFCC_Call
- func (_c *ClientCertificateExtractor_FromXFCC_Call) RunAndReturn(run func(string) (*x509.Certificate, error)) *ClientCertificateExtractor_FromXFCC_Call
- type Creator
- type Creator_Create_Call
- func (_c *Creator_Create_Call) Return(_a0 *domainauth.Auth, _a1 error) *Creator_Create_Call
- func (_c *Creator_Create_Call) Run(run func(ctx context.Context, in auth.CreateInput)) *Creator_Create_Call
- func (_c *Creator_Create_Call) RunAndReturn(run func(context.Context, auth.CreateInput) (*domainauth.Auth, error)) *Creator_Create_Call
- type Creator_Expecter
- type CredentialFinder
- func (_m *CredentialFinder) EXPECT() *CredentialFinder_Expecter
- func (_m *CredentialFinder) MTLSAuths(ctx context.Context) ([]*auth.Auth, error)
- func (_m *CredentialFinder) OAuth2Auths(ctx context.Context) ([]*auth.Auth, error)
- func (_m *CredentialFinder) OAuth2AuthsForGateway(ctx context.Context, gatewayID ids.GatewayID) ([]*auth.Auth, error)
- type CredentialFinder_Expecter
- func (_e *CredentialFinder_Expecter) MTLSAuths(ctx interface{}) *CredentialFinder_MTLSAuths_Call
- func (_e *CredentialFinder_Expecter) OAuth2Auths(ctx interface{}) *CredentialFinder_OAuth2Auths_Call
- func (_e *CredentialFinder_Expecter) OAuth2AuthsForGateway(ctx interface{}, gatewayID interface{}) *CredentialFinder_OAuth2AuthsForGateway_Call
- type CredentialFinder_MTLSAuths_Call
- func (_c *CredentialFinder_MTLSAuths_Call) Return(_a0 []*auth.Auth, _a1 error) *CredentialFinder_MTLSAuths_Call
- func (_c *CredentialFinder_MTLSAuths_Call) Run(run func(ctx context.Context)) *CredentialFinder_MTLSAuths_Call
- func (_c *CredentialFinder_MTLSAuths_Call) RunAndReturn(run func(context.Context) ([]*auth.Auth, error)) *CredentialFinder_MTLSAuths_Call
- type CredentialFinder_OAuth2AuthsForGateway_Call
- func (_c *CredentialFinder_OAuth2AuthsForGateway_Call) Return(_a0 []*auth.Auth, _a1 error) *CredentialFinder_OAuth2AuthsForGateway_Call
- func (_c *CredentialFinder_OAuth2AuthsForGateway_Call) Run(run func(ctx context.Context, gatewayID ids.GatewayID)) *CredentialFinder_OAuth2AuthsForGateway_Call
- func (_c *CredentialFinder_OAuth2AuthsForGateway_Call) RunAndReturn(run func(context.Context, ids.GatewayID) ([]*auth.Auth, error)) *CredentialFinder_OAuth2AuthsForGateway_Call
- type CredentialFinder_OAuth2Auths_Call
- func (_c *CredentialFinder_OAuth2Auths_Call) Return(_a0 []*auth.Auth, _a1 error) *CredentialFinder_OAuth2Auths_Call
- func (_c *CredentialFinder_OAuth2Auths_Call) Run(run func(ctx context.Context)) *CredentialFinder_OAuth2Auths_Call
- func (_c *CredentialFinder_OAuth2Auths_Call) RunAndReturn(run func(context.Context) ([]*auth.Auth, error)) *CredentialFinder_OAuth2Auths_Call
- type Deleter
- type Deleter_Delete_Call
- func (_c *Deleter_Delete_Call) Return(_a0 error) *Deleter_Delete_Call
- func (_c *Deleter_Delete_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Deleter_Delete_Call
- func (_c *Deleter_Delete_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.AuthKind]) error) *Deleter_Delete_Call
- type Deleter_Expecter
- type Finder
- type Finder_Expecter
- type Finder_FindByID_Call
- type Finder_List_Call
- func (_c *Finder_List_Call) Return(_a0 []*auth.Auth, _a1 int, _a2 error) *Finder_List_Call
- func (_c *Finder_List_Call) Run(run func(ctx context.Context, filter auth.ListFilter)) *Finder_List_Call
- func (_c *Finder_List_Call) RunAndReturn(run func(context.Context, auth.ListFilter) ([]*auth.Auth, int, error)) *Finder_List_Call
- type IntrospectionValidator
- type IntrospectionValidator_Expecter
- type IntrospectionValidator_Validate_Call
- func (_c *IntrospectionValidator_Validate_Call) Return(_a0 *identity.Principal, _a1 error) *IntrospectionValidator_Validate_Call
- func (_c *IntrospectionValidator_Validate_Call) Run(run func(ctx context.Context, raw string, cfg *auth.OAuth2Config)) *IntrospectionValidator_Validate_Call
- func (_c *IntrospectionValidator_Validate_Call) RunAndReturn(...) *IntrospectionValidator_Validate_Call
- type JWTValidator
- type JWTValidator_Expecter
- type JWTValidator_Validate_Call
- func (_c *JWTValidator_Validate_Call) Return(_a0 *identity.Principal, _a1 error) *JWTValidator_Validate_Call
- func (_c *JWTValidator_Validate_Call) Run(run func(ctx context.Context, raw string, cfg *auth.OAuth2Config)) *JWTValidator_Validate_Call
- func (_c *JWTValidator_Validate_Call) RunAndReturn(...) *JWTValidator_Validate_Call
- type MTLSValidator
- type MTLSValidator_Expecter
- type MTLSValidator_Validate_Call
- func (_c *MTLSValidator_Validate_Call) Return(_a0 *identity.Principal, _a1 error) *MTLSValidator_Validate_Call
- func (_c *MTLSValidator_Validate_Call) Run(run func(cert *x509.Certificate, cfg *auth.MTLSConfig)) *MTLSValidator_Validate_Call
- func (_c *MTLSValidator_Validate_Call) RunAndReturn(run func(*x509.Certificate, *auth.MTLSConfig) (*identity.Principal, error)) *MTLSValidator_Validate_Call
- type OIDCFinder
- type OIDCFinder_Expecter
- type OIDCFinder_FindOIDCAuth_Call
- func (_c *OIDCFinder_FindOIDCAuth_Call) Return(_a0 *auth.Auth, _a1 error) *OIDCFinder_FindOIDCAuth_Call
- func (_c *OIDCFinder_FindOIDCAuth_Call) Run(run func(ctx context.Context, auths []*auth.Auth, token string)) *OIDCFinder_FindOIDCAuth_Call
- func (_c *OIDCFinder_FindOIDCAuth_Call) RunAndReturn(run func(context.Context, []*auth.Auth, string) (*auth.Auth, error)) *OIDCFinder_FindOIDCAuth_Call
- type OIDCVerifier
- type OIDCVerifier_Expecter
- type OIDCVerifier_Peek_Call
- type OIDCVerifier_Verify_Call
- func (_c *OIDCVerifier_Verify_Call) Return(_a0 *auth.VerifiedClaims, _a1 error) *OIDCVerifier_Verify_Call
- func (_c *OIDCVerifier_Verify_Call) Run(run func(ctx context.Context, token string, cfg domainauth.OIDCConfig)) *OIDCVerifier_Verify_Call
- func (_c *OIDCVerifier_Verify_Call) RunAndReturn(...) *OIDCVerifier_Verify_Call
- type SessionTokenVerifier
- type SessionTokenVerifier_Expecter
- type SessionTokenVerifier_Issuer_Call
- func (_c *SessionTokenVerifier_Issuer_Call) Return(_a0 string) *SessionTokenVerifier_Issuer_Call
- func (_c *SessionTokenVerifier_Issuer_Call) Run(run func()) *SessionTokenVerifier_Issuer_Call
- func (_c *SessionTokenVerifier_Issuer_Call) RunAndReturn(run func() string) *SessionTokenVerifier_Issuer_Call
- type SessionTokenVerifier_Verify_Call
- func (_c *SessionTokenVerifier_Verify_Call) Return(_a0 *identity.Principal, _a1 error) *SessionTokenVerifier_Verify_Call
- func (_c *SessionTokenVerifier_Verify_Call) Run(run func(ctx context.Context, raw string)) *SessionTokenVerifier_Verify_Call
- func (_c *SessionTokenVerifier_Verify_Call) RunAndReturn(run func(context.Context, string) (*identity.Principal, error)) *SessionTokenVerifier_Verify_Call
- type Updater
- type Updater_Expecter
- type Updater_Update_Call
- func (_c *Updater_Update_Call) Return(_a0 *domainauth.Auth, _a1 error) *Updater_Update_Call
- func (_c *Updater_Update_Call) Run(run func(ctx context.Context, in auth.UpdateInput)) *Updater_Update_Call
- func (_c *Updater_Update_Call) RunAndReturn(run func(context.Context, auth.UpdateInput) (*domainauth.Auth, error)) *Updater_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyFinder ¶
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 ¶
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 ¶
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 (_c *APIKeyFinder_FindByAPIKey_Call) Return(_a0 *auth.Auth, _a1 error) *APIKeyFinder_FindByAPIKey_Call
func (*APIKeyFinder_FindByAPIKey_Call) Run ¶
func (_c *APIKeyFinder_FindByAPIKey_Call) Run(run func(ctx context.Context, rawKey string)) *APIKeyFinder_FindByAPIKey_Call
func (*APIKeyFinder_FindByAPIKey_Call) RunAndReturn ¶
func (_c *APIKeyFinder_FindByAPIKey_Call) RunAndReturn(run func(context.Context, string) (*auth.Auth, error)) *APIKeyFinder_FindByAPIKey_Call
type ClientCertificateExtractor ¶
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 (_m *ClientCertificateExtractor) EXPECT() *ClientCertificateExtractor_Expecter
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 ¶
func (_e *ClientCertificateExtractor_Expecter) FromXFCC(header interface{}) *ClientCertificateExtractor_FromXFCC_Call
FromXFCC is a helper method to define mock.On call
- header string
type ClientCertificateExtractor_FromXFCC_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 (_c *ClientCertificateExtractor_FromXFCC_Call) Return(_a0 *x509.Certificate, _a1 error) *ClientCertificateExtractor_FromXFCC_Call
func (*ClientCertificateExtractor_FromXFCC_Call) Run ¶
func (_c *ClientCertificateExtractor_FromXFCC_Call) Run(run func(header string)) *ClientCertificateExtractor_FromXFCC_Call
func (*ClientCertificateExtractor_FromXFCC_Call) RunAndReturn ¶
func (_c *ClientCertificateExtractor_FromXFCC_Call) RunAndReturn(run func(string) (*x509.Certificate, error)) *ClientCertificateExtractor_FromXFCC_Call
type Creator ¶
Creator is an autogenerated mock type for the Creator type
func NewCreator ¶
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 ¶
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 (_c *Creator_Create_Call) Return(_a0 *domainauth.Auth, _a1 error) *Creator_Create_Call
func (*Creator_Create_Call) Run ¶
func (_c *Creator_Create_Call) Run(run func(ctx context.Context, in auth.CreateInput)) *Creator_Create_Call
func (*Creator_Create_Call) RunAndReturn ¶
func (_c *Creator_Create_Call) RunAndReturn(run func(context.Context, auth.CreateInput) (*domainauth.Auth, error)) *Creator_Create_Call
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 ¶
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 (_m *CredentialFinder) EXPECT() *CredentialFinder_Expecter
func (*CredentialFinder) OAuth2Auths ¶
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 ¶
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 (_c *CredentialFinder_MTLSAuths_Call) Return(_a0 []*auth.Auth, _a1 error) *CredentialFinder_MTLSAuths_Call
func (*CredentialFinder_MTLSAuths_Call) Run ¶
func (_c *CredentialFinder_MTLSAuths_Call) Run(run func(ctx context.Context)) *CredentialFinder_MTLSAuths_Call
func (*CredentialFinder_MTLSAuths_Call) RunAndReturn ¶
func (_c *CredentialFinder_MTLSAuths_Call) RunAndReturn(run func(context.Context) ([]*auth.Auth, error)) *CredentialFinder_MTLSAuths_Call
type CredentialFinder_OAuth2AuthsForGateway_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 (_c *CredentialFinder_OAuth2AuthsForGateway_Call) Return(_a0 []*auth.Auth, _a1 error) *CredentialFinder_OAuth2AuthsForGateway_Call
func (*CredentialFinder_OAuth2AuthsForGateway_Call) Run ¶
func (_c *CredentialFinder_OAuth2AuthsForGateway_Call) Run(run func(ctx context.Context, gatewayID ids.GatewayID)) *CredentialFinder_OAuth2AuthsForGateway_Call
func (*CredentialFinder_OAuth2AuthsForGateway_Call) RunAndReturn ¶
func (_c *CredentialFinder_OAuth2AuthsForGateway_Call) RunAndReturn(run func(context.Context, ids.GatewayID) ([]*auth.Auth, error)) *CredentialFinder_OAuth2AuthsForGateway_Call
type CredentialFinder_OAuth2Auths_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 (_c *CredentialFinder_OAuth2Auths_Call) Return(_a0 []*auth.Auth, _a1 error) *CredentialFinder_OAuth2Auths_Call
func (*CredentialFinder_OAuth2Auths_Call) Run ¶
func (_c *CredentialFinder_OAuth2Auths_Call) Run(run func(ctx context.Context)) *CredentialFinder_OAuth2Auths_Call
func (*CredentialFinder_OAuth2Auths_Call) RunAndReturn ¶
func (_c *CredentialFinder_OAuth2Auths_Call) RunAndReturn(run func(context.Context) ([]*auth.Auth, error)) *CredentialFinder_OAuth2Auths_Call
type Deleter ¶
Deleter is an autogenerated mock type for the Deleter type
func NewDeleter ¶
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 ¶
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 (_c *Deleter_Delete_Call) Return(_a0 error) *Deleter_Delete_Call
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 ¶
func (_c *Deleter_Delete_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.AuthKind]) error) *Deleter_Delete_Call
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 ¶
Finder is an autogenerated mock type for the Finder type
func NewFinder ¶
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
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 ¶
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 ¶
func (_c *Finder_FindByID_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.AuthKind]) (*auth.Auth, error)) *Finder_FindByID_Call
type Finder_List_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 ¶
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 (_m *IntrospectionValidator) EXPECT() *IntrospectionValidator_Expecter
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 ¶
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 (_c *IntrospectionValidator_Validate_Call) Return(_a0 *identity.Principal, _a1 error) *IntrospectionValidator_Validate_Call
func (*IntrospectionValidator_Validate_Call) Run ¶
func (_c *IntrospectionValidator_Validate_Call) Run(run func(ctx context.Context, raw string, cfg *auth.OAuth2Config)) *IntrospectionValidator_Validate_Call
func (*IntrospectionValidator_Validate_Call) RunAndReturn ¶
func (_c *IntrospectionValidator_Validate_Call) RunAndReturn(run func(context.Context, string, *auth.OAuth2Config) (*identity.Principal, error)) *IntrospectionValidator_Validate_Call
type JWTValidator ¶
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
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 ¶
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 (_c *JWTValidator_Validate_Call) Return(_a0 *identity.Principal, _a1 error) *JWTValidator_Validate_Call
func (*JWTValidator_Validate_Call) Run ¶
func (_c *JWTValidator_Validate_Call) Run(run func(ctx context.Context, raw string, cfg *auth.OAuth2Config)) *JWTValidator_Validate_Call
func (*JWTValidator_Validate_Call) RunAndReturn ¶
func (_c *JWTValidator_Validate_Call) RunAndReturn(run func(context.Context, string, *auth.OAuth2Config) (*identity.Principal, error)) *JWTValidator_Validate_Call
type MTLSValidator ¶
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 ¶
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 (_c *MTLSValidator_Validate_Call) Return(_a0 *identity.Principal, _a1 error) *MTLSValidator_Validate_Call
func (*MTLSValidator_Validate_Call) Run ¶
func (_c *MTLSValidator_Validate_Call) Run(run func(cert *x509.Certificate, cfg *auth.MTLSConfig)) *MTLSValidator_Validate_Call
func (*MTLSValidator_Validate_Call) RunAndReturn ¶
func (_c *MTLSValidator_Validate_Call) RunAndReturn(run func(*x509.Certificate, *auth.MTLSConfig) (*identity.Principal, error)) *MTLSValidator_Validate_Call
type OIDCFinder ¶
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
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 ¶
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 (_c *OIDCFinder_FindOIDCAuth_Call) Return(_a0 *auth.Auth, _a1 error) *OIDCFinder_FindOIDCAuth_Call
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 ¶
func (_c *OIDCFinder_FindOIDCAuth_Call) RunAndReturn(run func(context.Context, []*auth.Auth, string) (*auth.Auth, error)) *OIDCFinder_FindOIDCAuth_Call
type OIDCVerifier ¶
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 ¶
func (_m *OIDCVerifier) Verify(ctx context.Context, token string, cfg domainauth.OIDCConfig) (*auth.VerifiedClaims, error)
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 ¶
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 (_c *OIDCVerifier_Peek_Call) Return(_a0 auth.TokenHints, _a1 error) *OIDCVerifier_Peek_Call
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 ¶
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 (_c *OIDCVerifier_Verify_Call) Return(_a0 *auth.VerifiedClaims, _a1 error) *OIDCVerifier_Verify_Call
func (*OIDCVerifier_Verify_Call) Run ¶
func (_c *OIDCVerifier_Verify_Call) Run(run func(ctx context.Context, token string, cfg domainauth.OIDCConfig)) *OIDCVerifier_Verify_Call
func (*OIDCVerifier_Verify_Call) RunAndReturn ¶
func (_c *OIDCVerifier_Verify_Call) RunAndReturn(run func(context.Context, string, domainauth.OIDCConfig) (*auth.VerifiedClaims, error)) *OIDCVerifier_Verify_Call
type SessionTokenVerifier ¶ added in v0.2.3
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 (_m *SessionTokenVerifier) EXPECT() *SessionTokenVerifier_Expecter
func (*SessionTokenVerifier) Issuer ¶ added in v0.2.3
func (_m *SessionTokenVerifier) Issuer() string
Issuer provides a mock function with no fields
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
func (_e *SessionTokenVerifier_Expecter) Issuer() *SessionTokenVerifier_Issuer_Call
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
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 (_c *SessionTokenVerifier_Issuer_Call) Return(_a0 string) *SessionTokenVerifier_Issuer_Call
func (*SessionTokenVerifier_Issuer_Call) Run ¶ added in v0.2.3
func (_c *SessionTokenVerifier_Issuer_Call) Run(run func()) *SessionTokenVerifier_Issuer_Call
func (*SessionTokenVerifier_Issuer_Call) RunAndReturn ¶ added in v0.2.3
func (_c *SessionTokenVerifier_Issuer_Call) RunAndReturn(run func() string) *SessionTokenVerifier_Issuer_Call
type SessionTokenVerifier_Verify_Call ¶ added in v0.2.3
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 (_c *SessionTokenVerifier_Verify_Call) Return(_a0 *identity.Principal, _a1 error) *SessionTokenVerifier_Verify_Call
func (*SessionTokenVerifier_Verify_Call) Run ¶ added in v0.2.3
func (_c *SessionTokenVerifier_Verify_Call) Run(run func(ctx context.Context, raw string)) *SessionTokenVerifier_Verify_Call
func (*SessionTokenVerifier_Verify_Call) RunAndReturn ¶ added in v0.2.3
func (_c *SessionTokenVerifier_Verify_Call) RunAndReturn(run func(context.Context, string) (*identity.Principal, error)) *SessionTokenVerifier_Verify_Call
type Updater ¶
Updater is an autogenerated mock type for the Updater type
func NewUpdater ¶
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 ¶
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 (_c *Updater_Update_Call) Return(_a0 *domainauth.Auth, _a1 error) *Updater_Update_Call
func (*Updater_Update_Call) Run ¶
func (_c *Updater_Update_Call) Run(run func(ctx context.Context, in auth.UpdateInput)) *Updater_Update_Call
func (*Updater_Update_Call) RunAndReturn ¶
func (_c *Updater_Update_Call) RunAndReturn(run func(context.Context, auth.UpdateInput) (*domainauth.Auth, error)) *Updater_Update_Call
Source Files
¶
- auth_api_key_finder_mock.go
- auth_client_certificate_extractor_mock.go
- auth_creator_mock.go
- auth_credential_finder_mock.go
- auth_deleter_mock.go
- auth_finder_mock.go
- auth_introspection_validator_mock.go
- auth_jwt_validator_mock.go
- auth_mtls_validator_mock.go
- auth_session_token_verifier_mock.go
- auth_updater_mock.go
- oidc_finder_mock.go
- oidc_verifier_mock.go