From 234465789b5bf579315c56a8aceb332afb80ac04 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Mon, 1 Mar 2021 10:08:57 -0600 Subject: [PATCH] Regenerate gomock mocks with v1.5.0. Signed-off-by: Matt Moyer --- .../credentialrequestmocks.go | 27 +++++------ internal/mocks/mockkeyset/mockkeyset.go | 19 ++++---- .../mocksecrethelper/mocksecrethelper.go | 31 ++++++------ .../mocktokenauthenticator.go | 17 +++---- .../mocktokenauthenticatorcloser.go | 21 +++++---- .../mockupstreamoidcidentityprovider.go | 47 ++++++++++--------- 6 files changed, 82 insertions(+), 80 deletions(-) diff --git a/internal/mocks/credentialrequestmocks/credentialrequestmocks.go b/internal/mocks/credentialrequestmocks/credentialrequestmocks.go index afbee707..58bd134d 100644 --- a/internal/mocks/credentialrequestmocks/credentialrequestmocks.go +++ b/internal/mocks/credentialrequestmocks/credentialrequestmocks.go @@ -15,35 +15,34 @@ import ( time "time" gomock "github.com/golang/mock/gomock" - user "k8s.io/apiserver/pkg/authentication/user" - login "go.pinniped.dev/generated/latest/apis/concierge/login" + user "k8s.io/apiserver/pkg/authentication/user" ) -// MockCertIssuer is a mock of CertIssuer interface +// MockCertIssuer is a mock of CertIssuer interface. type MockCertIssuer struct { ctrl *gomock.Controller recorder *MockCertIssuerMockRecorder } -// MockCertIssuerMockRecorder is the mock recorder for MockCertIssuer +// MockCertIssuerMockRecorder is the mock recorder for MockCertIssuer. type MockCertIssuerMockRecorder struct { mock *MockCertIssuer } -// NewMockCertIssuer creates a new mock instance +// NewMockCertIssuer creates a new mock instance. func NewMockCertIssuer(ctrl *gomock.Controller) *MockCertIssuer { mock := &MockCertIssuer{ctrl: ctrl} mock.recorder = &MockCertIssuerMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockCertIssuer) EXPECT() *MockCertIssuerMockRecorder { return m.recorder } -// IssuePEM mocks base method +// IssuePEM mocks base method. func (m *MockCertIssuer) IssuePEM(arg0 pkix.Name, arg1 []string, arg2 time.Duration) ([]byte, []byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IssuePEM", arg0, arg1, arg2) @@ -53,36 +52,36 @@ func (m *MockCertIssuer) IssuePEM(arg0 pkix.Name, arg1 []string, arg2 time.Durat return ret0, ret1, ret2 } -// IssuePEM indicates an expected call of IssuePEM +// IssuePEM indicates an expected call of IssuePEM. func (mr *MockCertIssuerMockRecorder) IssuePEM(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IssuePEM", reflect.TypeOf((*MockCertIssuer)(nil).IssuePEM), arg0, arg1, arg2) } -// MockTokenCredentialRequestAuthenticator is a mock of TokenCredentialRequestAuthenticator interface +// MockTokenCredentialRequestAuthenticator is a mock of TokenCredentialRequestAuthenticator interface. type MockTokenCredentialRequestAuthenticator struct { ctrl *gomock.Controller recorder *MockTokenCredentialRequestAuthenticatorMockRecorder } -// MockTokenCredentialRequestAuthenticatorMockRecorder is the mock recorder for MockTokenCredentialRequestAuthenticator +// MockTokenCredentialRequestAuthenticatorMockRecorder is the mock recorder for MockTokenCredentialRequestAuthenticator. type MockTokenCredentialRequestAuthenticatorMockRecorder struct { mock *MockTokenCredentialRequestAuthenticator } -// NewMockTokenCredentialRequestAuthenticator creates a new mock instance +// NewMockTokenCredentialRequestAuthenticator creates a new mock instance. func NewMockTokenCredentialRequestAuthenticator(ctrl *gomock.Controller) *MockTokenCredentialRequestAuthenticator { mock := &MockTokenCredentialRequestAuthenticator{ctrl: ctrl} mock.recorder = &MockTokenCredentialRequestAuthenticatorMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockTokenCredentialRequestAuthenticator) EXPECT() *MockTokenCredentialRequestAuthenticatorMockRecorder { return m.recorder } -// AuthenticateTokenCredentialRequest mocks base method +// AuthenticateTokenCredentialRequest mocks base method. func (m *MockTokenCredentialRequestAuthenticator) AuthenticateTokenCredentialRequest(arg0 context.Context, arg1 *login.TokenCredentialRequest) (user.Info, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthenticateTokenCredentialRequest", arg0, arg1) @@ -91,7 +90,7 @@ func (m *MockTokenCredentialRequestAuthenticator) AuthenticateTokenCredentialReq return ret0, ret1 } -// AuthenticateTokenCredentialRequest indicates an expected call of AuthenticateTokenCredentialRequest +// AuthenticateTokenCredentialRequest indicates an expected call of AuthenticateTokenCredentialRequest. func (mr *MockTokenCredentialRequestAuthenticatorMockRecorder) AuthenticateTokenCredentialRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateTokenCredentialRequest", reflect.TypeOf((*MockTokenCredentialRequestAuthenticator)(nil).AuthenticateTokenCredentialRequest), arg0, arg1) diff --git a/internal/mocks/mockkeyset/mockkeyset.go b/internal/mocks/mockkeyset/mockkeyset.go index ff1050ff..a2cb28e6 100644 --- a/internal/mocks/mockkeyset/mockkeyset.go +++ b/internal/mocks/mockkeyset/mockkeyset.go @@ -1,43 +1,44 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/coreos/go-oidc (interfaces: KeySet) +// Source: github.com/coreos/go-oidc/v3/oidc (interfaces: KeySet) // Package mockkeyset is a generated GoMock package. package mockkeyset import ( context "context" - gomock "github.com/golang/mock/gomock" reflect "reflect" + + gomock "github.com/golang/mock/gomock" ) -// MockKeySet is a mock of KeySet interface +// MockKeySet is a mock of KeySet interface. type MockKeySet struct { ctrl *gomock.Controller recorder *MockKeySetMockRecorder } -// MockKeySetMockRecorder is the mock recorder for MockKeySet +// MockKeySetMockRecorder is the mock recorder for MockKeySet. type MockKeySetMockRecorder struct { mock *MockKeySet } -// NewMockKeySet creates a new mock instance +// NewMockKeySet creates a new mock instance. func NewMockKeySet(ctrl *gomock.Controller) *MockKeySet { mock := &MockKeySet{ctrl: ctrl} mock.recorder = &MockKeySetMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockKeySet) EXPECT() *MockKeySetMockRecorder { return m.recorder } -// VerifySignature mocks base method +// VerifySignature mocks base method. func (m *MockKeySet) VerifySignature(arg0 context.Context, arg1 string) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifySignature", arg0, arg1) @@ -46,7 +47,7 @@ func (m *MockKeySet) VerifySignature(arg0 context.Context, arg1 string) ([]byte, return ret0, ret1 } -// VerifySignature indicates an expected call of VerifySignature +// VerifySignature indicates an expected call of VerifySignature. func (mr *MockKeySetMockRecorder) VerifySignature(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySignature", reflect.TypeOf((*MockKeySet)(nil).VerifySignature), arg0, arg1) diff --git a/internal/mocks/mocksecrethelper/mocksecrethelper.go b/internal/mocks/mocksecrethelper/mocksecrethelper.go index 6003de78..051c7548 100644 --- a/internal/mocks/mocksecrethelper/mocksecrethelper.go +++ b/internal/mocks/mocksecrethelper/mocksecrethelper.go @@ -12,36 +12,35 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" + v1alpha1 "go.pinniped.dev/generated/latest/apis/supervisor/config/v1alpha1" v1 "k8s.io/api/core/v1" v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - - v1alpha1 "go.pinniped.dev/generated/latest/apis/supervisor/config/v1alpha1" ) -// MockSecretHelper is a mock of SecretHelper interface +// MockSecretHelper is a mock of SecretHelper interface. type MockSecretHelper struct { ctrl *gomock.Controller recorder *MockSecretHelperMockRecorder } -// MockSecretHelperMockRecorder is the mock recorder for MockSecretHelper +// MockSecretHelperMockRecorder is the mock recorder for MockSecretHelper. type MockSecretHelperMockRecorder struct { mock *MockSecretHelper } -// NewMockSecretHelper creates a new mock instance +// NewMockSecretHelper creates a new mock instance. func NewMockSecretHelper(ctrl *gomock.Controller) *MockSecretHelper { mock := &MockSecretHelper{ctrl: ctrl} mock.recorder = &MockSecretHelperMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockSecretHelper) EXPECT() *MockSecretHelperMockRecorder { return m.recorder } -// Generate mocks base method +// Generate mocks base method. func (m *MockSecretHelper) Generate(arg0 *v1alpha1.FederationDomain) (*v1.Secret, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Generate", arg0) @@ -50,13 +49,13 @@ func (m *MockSecretHelper) Generate(arg0 *v1alpha1.FederationDomain) (*v1.Secret return ret0, ret1 } -// Generate indicates an expected call of Generate +// Generate indicates an expected call of Generate. func (mr *MockSecretHelperMockRecorder) Generate(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generate", reflect.TypeOf((*MockSecretHelper)(nil).Generate), arg0) } -// Handles mocks base method +// Handles mocks base method. func (m *MockSecretHelper) Handles(arg0 v10.Object) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Handles", arg0) @@ -64,13 +63,13 @@ func (m *MockSecretHelper) Handles(arg0 v10.Object) bool { return ret0 } -// Handles indicates an expected call of Handles +// Handles indicates an expected call of Handles. func (mr *MockSecretHelperMockRecorder) Handles(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handles", reflect.TypeOf((*MockSecretHelper)(nil).Handles), arg0) } -// IsValid mocks base method +// IsValid mocks base method. func (m *MockSecretHelper) IsValid(arg0 *v1alpha1.FederationDomain, arg1 *v1.Secret) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IsValid", arg0, arg1) @@ -78,13 +77,13 @@ func (m *MockSecretHelper) IsValid(arg0 *v1alpha1.FederationDomain, arg1 *v1.Sec return ret0 } -// IsValid indicates an expected call of IsValid +// IsValid indicates an expected call of IsValid. func (mr *MockSecretHelperMockRecorder) IsValid(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValid", reflect.TypeOf((*MockSecretHelper)(nil).IsValid), arg0, arg1) } -// NamePrefix mocks base method +// NamePrefix mocks base method. func (m *MockSecretHelper) NamePrefix() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "NamePrefix") @@ -92,13 +91,13 @@ func (m *MockSecretHelper) NamePrefix() string { return ret0 } -// NamePrefix indicates an expected call of NamePrefix +// NamePrefix indicates an expected call of NamePrefix. func (mr *MockSecretHelperMockRecorder) NamePrefix() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamePrefix", reflect.TypeOf((*MockSecretHelper)(nil).NamePrefix)) } -// ObserveActiveSecretAndUpdateParentFederationDomain mocks base method +// ObserveActiveSecretAndUpdateParentFederationDomain mocks base method. func (m *MockSecretHelper) ObserveActiveSecretAndUpdateParentFederationDomain(arg0 *v1alpha1.FederationDomain, arg1 *v1.Secret) *v1alpha1.FederationDomain { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ObserveActiveSecretAndUpdateParentFederationDomain", arg0, arg1) @@ -106,7 +105,7 @@ func (m *MockSecretHelper) ObserveActiveSecretAndUpdateParentFederationDomain(ar return ret0 } -// ObserveActiveSecretAndUpdateParentFederationDomain indicates an expected call of ObserveActiveSecretAndUpdateParentFederationDomain +// ObserveActiveSecretAndUpdateParentFederationDomain indicates an expected call of ObserveActiveSecretAndUpdateParentFederationDomain. func (mr *MockSecretHelperMockRecorder) ObserveActiveSecretAndUpdateParentFederationDomain(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObserveActiveSecretAndUpdateParentFederationDomain", reflect.TypeOf((*MockSecretHelper)(nil).ObserveActiveSecretAndUpdateParentFederationDomain), arg0, arg1) diff --git a/internal/mocks/mocktokenauthenticator/mocktokenauthenticator.go b/internal/mocks/mocktokenauthenticator/mocktokenauthenticator.go index b43334f3..31349d33 100644 --- a/internal/mocks/mocktokenauthenticator/mocktokenauthenticator.go +++ b/internal/mocks/mocktokenauthenticator/mocktokenauthenticator.go @@ -1,4 +1,4 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // @@ -10,35 +10,36 @@ package mocktokenauthenticator import ( context "context" + reflect "reflect" + gomock "github.com/golang/mock/gomock" authenticator "k8s.io/apiserver/pkg/authentication/authenticator" - reflect "reflect" ) -// MockToken is a mock of Token interface +// MockToken is a mock of Token interface. type MockToken struct { ctrl *gomock.Controller recorder *MockTokenMockRecorder } -// MockTokenMockRecorder is the mock recorder for MockToken +// MockTokenMockRecorder is the mock recorder for MockToken. type MockTokenMockRecorder struct { mock *MockToken } -// NewMockToken creates a new mock instance +// NewMockToken creates a new mock instance. func NewMockToken(ctrl *gomock.Controller) *MockToken { mock := &MockToken{ctrl: ctrl} mock.recorder = &MockTokenMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockToken) EXPECT() *MockTokenMockRecorder { return m.recorder } -// AuthenticateToken mocks base method +// AuthenticateToken mocks base method. func (m *MockToken) AuthenticateToken(arg0 context.Context, arg1 string) (*authenticator.Response, bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthenticateToken", arg0, arg1) @@ -48,7 +49,7 @@ func (m *MockToken) AuthenticateToken(arg0 context.Context, arg1 string) (*authe return ret0, ret1, ret2 } -// AuthenticateToken indicates an expected call of AuthenticateToken +// AuthenticateToken indicates an expected call of AuthenticateToken. func (mr *MockTokenMockRecorder) AuthenticateToken(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateToken", reflect.TypeOf((*MockToken)(nil).AuthenticateToken), arg0, arg1) diff --git a/internal/mocks/mocktokenauthenticatorcloser/mocktokenauthenticatorcloser.go b/internal/mocks/mocktokenauthenticatorcloser/mocktokenauthenticatorcloser.go index c4ddc1f4..b8c7c28c 100644 --- a/internal/mocks/mocktokenauthenticatorcloser/mocktokenauthenticatorcloser.go +++ b/internal/mocks/mocktokenauthenticatorcloser/mocktokenauthenticatorcloser.go @@ -1,4 +1,4 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // @@ -10,35 +10,36 @@ package mocktokenauthenticatorcloser import ( context "context" + reflect "reflect" + gomock "github.com/golang/mock/gomock" authenticator "k8s.io/apiserver/pkg/authentication/authenticator" - reflect "reflect" ) -// MockTokenAuthenticatorCloser is a mock of TokenAuthenticatorCloser interface +// MockTokenAuthenticatorCloser is a mock of TokenAuthenticatorCloser interface. type MockTokenAuthenticatorCloser struct { ctrl *gomock.Controller recorder *MockTokenAuthenticatorCloserMockRecorder } -// MockTokenAuthenticatorCloserMockRecorder is the mock recorder for MockTokenAuthenticatorCloser +// MockTokenAuthenticatorCloserMockRecorder is the mock recorder for MockTokenAuthenticatorCloser. type MockTokenAuthenticatorCloserMockRecorder struct { mock *MockTokenAuthenticatorCloser } -// NewMockTokenAuthenticatorCloser creates a new mock instance +// NewMockTokenAuthenticatorCloser creates a new mock instance. func NewMockTokenAuthenticatorCloser(ctrl *gomock.Controller) *MockTokenAuthenticatorCloser { mock := &MockTokenAuthenticatorCloser{ctrl: ctrl} mock.recorder = &MockTokenAuthenticatorCloserMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockTokenAuthenticatorCloser) EXPECT() *MockTokenAuthenticatorCloserMockRecorder { return m.recorder } -// AuthenticateToken mocks base method +// AuthenticateToken mocks base method. func (m *MockTokenAuthenticatorCloser) AuthenticateToken(arg0 context.Context, arg1 string) (*authenticator.Response, bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthenticateToken", arg0, arg1) @@ -48,19 +49,19 @@ func (m *MockTokenAuthenticatorCloser) AuthenticateToken(arg0 context.Context, a return ret0, ret1, ret2 } -// AuthenticateToken indicates an expected call of AuthenticateToken +// AuthenticateToken indicates an expected call of AuthenticateToken. func (mr *MockTokenAuthenticatorCloserMockRecorder) AuthenticateToken(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateToken", reflect.TypeOf((*MockTokenAuthenticatorCloser)(nil).AuthenticateToken), arg0, arg1) } -// Close mocks base method +// Close mocks base method. func (m *MockTokenAuthenticatorCloser) Close() { m.ctrl.T.Helper() m.ctrl.Call(m, "Close") } -// Close indicates an expected call of Close +// Close indicates an expected call of Close. func (mr *MockTokenAuthenticatorCloserMockRecorder) Close() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockTokenAuthenticatorCloser)(nil).Close)) diff --git a/internal/mocks/mockupstreamoidcidentityprovider/mockupstreamoidcidentityprovider.go b/internal/mocks/mockupstreamoidcidentityprovider/mockupstreamoidcidentityprovider.go index 539f5727..0414fd41 100644 --- a/internal/mocks/mockupstreamoidcidentityprovider/mockupstreamoidcidentityprovider.go +++ b/internal/mocks/mockupstreamoidcidentityprovider/mockupstreamoidcidentityprovider.go @@ -1,4 +1,4 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // @@ -10,39 +10,40 @@ package mockupstreamoidcidentityprovider import ( context "context" + url "net/url" + reflect "reflect" + gomock "github.com/golang/mock/gomock" nonce "go.pinniped.dev/pkg/oidcclient/nonce" oidctypes "go.pinniped.dev/pkg/oidcclient/oidctypes" pkce "go.pinniped.dev/pkg/oidcclient/pkce" oauth2 "golang.org/x/oauth2" - url "net/url" - reflect "reflect" ) -// MockUpstreamOIDCIdentityProviderI is a mock of UpstreamOIDCIdentityProviderI interface +// MockUpstreamOIDCIdentityProviderI is a mock of UpstreamOIDCIdentityProviderI interface. type MockUpstreamOIDCIdentityProviderI struct { ctrl *gomock.Controller recorder *MockUpstreamOIDCIdentityProviderIMockRecorder } -// MockUpstreamOIDCIdentityProviderIMockRecorder is the mock recorder for MockUpstreamOIDCIdentityProviderI +// MockUpstreamOIDCIdentityProviderIMockRecorder is the mock recorder for MockUpstreamOIDCIdentityProviderI. type MockUpstreamOIDCIdentityProviderIMockRecorder struct { mock *MockUpstreamOIDCIdentityProviderI } -// NewMockUpstreamOIDCIdentityProviderI creates a new mock instance +// NewMockUpstreamOIDCIdentityProviderI creates a new mock instance. func NewMockUpstreamOIDCIdentityProviderI(ctrl *gomock.Controller) *MockUpstreamOIDCIdentityProviderI { mock := &MockUpstreamOIDCIdentityProviderI{ctrl: ctrl} mock.recorder = &MockUpstreamOIDCIdentityProviderIMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockUpstreamOIDCIdentityProviderI) EXPECT() *MockUpstreamOIDCIdentityProviderIMockRecorder { return m.recorder } -// ExchangeAuthcodeAndValidateTokens mocks base method +// ExchangeAuthcodeAndValidateTokens mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) ExchangeAuthcodeAndValidateTokens(arg0 context.Context, arg1 string, arg2 pkce.Code, arg3 nonce.Nonce, arg4 string) (*oidctypes.Token, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ExchangeAuthcodeAndValidateTokens", arg0, arg1, arg2, arg3, arg4) @@ -51,13 +52,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) ExchangeAuthcodeAndValidateTokens(ar return ret0, ret1 } -// ExchangeAuthcodeAndValidateTokens indicates an expected call of ExchangeAuthcodeAndValidateTokens +// ExchangeAuthcodeAndValidateTokens indicates an expected call of ExchangeAuthcodeAndValidateTokens. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) ExchangeAuthcodeAndValidateTokens(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExchangeAuthcodeAndValidateTokens", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).ExchangeAuthcodeAndValidateTokens), arg0, arg1, arg2, arg3, arg4) } -// GetAuthorizationURL mocks base method +// GetAuthorizationURL mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) GetAuthorizationURL() *url.URL { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAuthorizationURL") @@ -65,13 +66,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) GetAuthorizationURL() *url.URL { return ret0 } -// GetAuthorizationURL indicates an expected call of GetAuthorizationURL +// GetAuthorizationURL indicates an expected call of GetAuthorizationURL. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) GetAuthorizationURL() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthorizationURL", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).GetAuthorizationURL)) } -// GetClientID mocks base method +// GetClientID mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) GetClientID() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetClientID") @@ -79,13 +80,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) GetClientID() string { return ret0 } -// GetClientID indicates an expected call of GetClientID +// GetClientID indicates an expected call of GetClientID. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) GetClientID() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientID", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).GetClientID)) } -// GetGroupsClaim mocks base method +// GetGroupsClaim mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) GetGroupsClaim() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetGroupsClaim") @@ -93,13 +94,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) GetGroupsClaim() string { return ret0 } -// GetGroupsClaim indicates an expected call of GetGroupsClaim +// GetGroupsClaim indicates an expected call of GetGroupsClaim. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) GetGroupsClaim() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupsClaim", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).GetGroupsClaim)) } -// GetName mocks base method +// GetName mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) GetName() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetName") @@ -107,13 +108,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) GetName() string { return ret0 } -// GetName indicates an expected call of GetName +// GetName indicates an expected call of GetName. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) GetName() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetName", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).GetName)) } -// GetScopes mocks base method +// GetScopes mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) GetScopes() []string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetScopes") @@ -121,13 +122,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) GetScopes() []string { return ret0 } -// GetScopes indicates an expected call of GetScopes +// GetScopes indicates an expected call of GetScopes. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) GetScopes() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScopes", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).GetScopes)) } -// GetUsernameClaim mocks base method +// GetUsernameClaim mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) GetUsernameClaim() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUsernameClaim") @@ -135,13 +136,13 @@ func (m *MockUpstreamOIDCIdentityProviderI) GetUsernameClaim() string { return ret0 } -// GetUsernameClaim indicates an expected call of GetUsernameClaim +// GetUsernameClaim indicates an expected call of GetUsernameClaim. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) GetUsernameClaim() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsernameClaim", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).GetUsernameClaim)) } -// ValidateToken mocks base method +// ValidateToken mocks base method. func (m *MockUpstreamOIDCIdentityProviderI) ValidateToken(arg0 context.Context, arg1 *oauth2.Token, arg2 nonce.Nonce) (*oidctypes.Token, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ValidateToken", arg0, arg1, arg2) @@ -150,7 +151,7 @@ func (m *MockUpstreamOIDCIdentityProviderI) ValidateToken(arg0 context.Context, return ret0, ret1 } -// ValidateToken indicates an expected call of ValidateToken +// ValidateToken indicates an expected call of ValidateToken. func (mr *MockUpstreamOIDCIdentityProviderIMockRecorder) ValidateToken(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateToken", reflect.TypeOf((*MockUpstreamOIDCIdentityProviderI)(nil).ValidateToken), arg0, arg1, arg2)