diff --git a/go.mod b/go.mod index 5d4601f0..7d8ee847 100644 --- a/go.mod +++ b/go.mod @@ -237,7 +237,7 @@ require ( github.com/ultraware/whitespace v0.2.0 // indirect github.com/uudashr/gocognit v1.2.1 // indirect github.com/uudashr/iface v1.4.2 // indirect - github.com/vektra/mockery/v3 v3.7.0 // indirect + github.com/vektra/mockery/v3 v3.7.1 // indirect github.com/x448/float16 v0.8.4 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect diff --git a/go.sum b/go.sum index a1e3b380..358d8174 100644 --- a/go.sum +++ b/go.sum @@ -694,8 +694,8 @@ github.com/uudashr/gocognit v1.2.1 h1:CSJynt5txTnORn/DkhiB4mZjwPuifyASC8/6Q0I/QS github.com/uudashr/gocognit v1.2.1/go.mod h1:acaubQc6xYlXFEMb9nWX2dYBzJ/bIjEkc1zzvyIZg5Q= github.com/uudashr/iface v1.4.2 h1:06Vq5RKVYThBsj0Bnw4oasMjD1r+7CE/bcKOA8dVSvg= github.com/uudashr/iface v1.4.2/go.mod h1:pbeBPlbuU2qkNDn0mmfrxP2X+wjPMIQAy+r1MBXSXtg= -github.com/vektra/mockery/v3 v3.7.0 h1:Dd0EeaOcRJBVP9n3oYOVPV7KdPaaE3EcwTppaZIsFSM= -github.com/vektra/mockery/v3 v3.7.0/go.mod h1:z9Wr23Ha8etImqQwS3boTNR9WkjX6tIklW5c88DRkSw= +github.com/vektra/mockery/v3 v3.7.1 h1:4jZJCTzf5CEXSXHOtgIu3TuHYUuDKwcc/0vurjQEpjk= +github.com/vektra/mockery/v3 v3.7.1/go.mod h1:fbChccNiUvQaUVaCHS6/7OL5/D65KljJVk31LuPPUjY= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= diff --git a/mocks/github.com/int128/kubelogin/integration_test/oidcserver/service_mock/mocks.go b/mocks/github.com/int128/kubelogin/integration_test/oidcserver/service_mock/mocks.go index 47e464fb..390f7268 100644 --- a/mocks/github.com/int128/kubelogin/integration_test/oidcserver/service_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/integration_test/oidcserver/service_mock/mocks.go @@ -70,7 +70,7 @@ type MockService_AuthenticateCode_Call struct { // AuthenticateCode is a helper method to define mock.On call // - req service.AuthenticationRequest -func (_e *MockService_Expecter) AuthenticateCode(req interface{}) *MockService_AuthenticateCode_Call { +func (_e *MockService_Expecter) AuthenticateCode(req any) *MockService_AuthenticateCode_Call { return &MockService_AuthenticateCode_Call{Call: _e.mock.On("AuthenticateCode", req)} } @@ -134,7 +134,7 @@ type MockService_AuthenticatePassword_Call struct { // - username string // - password string // - scope string -func (_e *MockService_Expecter) AuthenticatePassword(username interface{}, password interface{}, scope interface{}) *MockService_AuthenticatePassword_Call { +func (_e *MockService_Expecter) AuthenticatePassword(username any, password any, scope any) *MockService_AuthenticatePassword_Call { return &MockService_AuthenticatePassword_Call{Call: _e.mock.On("AuthenticatePassword", username, password, scope)} } @@ -252,7 +252,7 @@ type MockService_Exchange_Call struct { // Exchange is a helper method to define mock.On call // - req service.TokenRequest -func (_e *MockService_Expecter) Exchange(req interface{}) *MockService_Exchange_Call { +func (_e *MockService_Expecter) Exchange(req any) *MockService_Exchange_Call { return &MockService_Exchange_Call{Call: _e.mock.On("Exchange", req)} } @@ -450,7 +450,7 @@ type MockService_Refresh_Call struct { // Refresh is a helper method to define mock.On call // - refreshToken string -func (_e *MockService_Expecter) Refresh(refreshToken interface{}) *MockService_Refresh_Call { +func (_e *MockService_Expecter) Refresh(refreshToken any) *MockService_Refresh_Call { return &MockService_Refresh_Call{Call: _e.mock.On("Refresh", refreshToken)} } @@ -490,7 +490,7 @@ type MockService_SetConfig_Call struct { // SetConfig is a helper method to define mock.On call // - config testconfig.Config -func (_e *MockService_Expecter) SetConfig(config interface{}) *MockService_SetConfig_Call { +func (_e *MockService_Expecter) SetConfig(config any) *MockService_SetConfig_Call { return &MockService_SetConfig_Call{Call: _e.mock.On("SetConfig", config)} } @@ -577,7 +577,7 @@ type MockProvider_AuthenticateCode_Call struct { // AuthenticateCode is a helper method to define mock.On call // - req service.AuthenticationRequest -func (_e *MockProvider_Expecter) AuthenticateCode(req interface{}) *MockProvider_AuthenticateCode_Call { +func (_e *MockProvider_Expecter) AuthenticateCode(req any) *MockProvider_AuthenticateCode_Call { return &MockProvider_AuthenticateCode_Call{Call: _e.mock.On("AuthenticateCode", req)} } @@ -641,7 +641,7 @@ type MockProvider_AuthenticatePassword_Call struct { // - username string // - password string // - scope string -func (_e *MockProvider_Expecter) AuthenticatePassword(username interface{}, password interface{}, scope interface{}) *MockProvider_AuthenticatePassword_Call { +func (_e *MockProvider_Expecter) AuthenticatePassword(username any, password any, scope any) *MockProvider_AuthenticatePassword_Call { return &MockProvider_AuthenticatePassword_Call{Call: _e.mock.On("AuthenticatePassword", username, password, scope)} } @@ -759,7 +759,7 @@ type MockProvider_Exchange_Call struct { // Exchange is a helper method to define mock.On call // - req service.TokenRequest -func (_e *MockProvider_Expecter) Exchange(req interface{}) *MockProvider_Exchange_Call { +func (_e *MockProvider_Expecter) Exchange(req any) *MockProvider_Exchange_Call { return &MockProvider_Exchange_Call{Call: _e.mock.On("Exchange", req)} } @@ -867,7 +867,7 @@ type MockProvider_Refresh_Call struct { // Refresh is a helper method to define mock.On call // - refreshToken string -func (_e *MockProvider_Expecter) Refresh(refreshToken interface{}) *MockProvider_Refresh_Call { +func (_e *MockProvider_Expecter) Refresh(refreshToken any) *MockProvider_Refresh_Call { return &MockProvider_Refresh_Call{Call: _e.mock.On("Refresh", refreshToken)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/cmd_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/cmd_mock/mocks.go index 3a825df4..f2732ff8 100644 --- a/mocks/github.com/int128/kubelogin/pkg/cmd_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/cmd_mock/mocks.go @@ -63,7 +63,7 @@ type MockInterface_Run_Call struct { // - ctx context.Context // - args []string // - version string -func (_e *MockInterface_Expecter) Run(ctx interface{}, args interface{}, version interface{}) *MockInterface_Run_Call { +func (_e *MockInterface_Expecter) Run(ctx any, args any, version any) *MockInterface_Run_Call { return &MockInterface_Run_Call{Call: _e.mock.On("Run", ctx, args, version)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/credentialplugin/writer_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/credentialplugin/writer_mock/mocks.go index 37c013dd..bee269c7 100644 --- a/mocks/github.com/int128/kubelogin/pkg/credentialplugin/writer_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/credentialplugin/writer_mock/mocks.go @@ -60,7 +60,7 @@ type MockInterface_Write_Call struct { // Write is a helper method to define mock.On call // - out credentialplugin.Output -func (_e *MockInterface_Expecter) Write(out interface{}) *MockInterface_Write_Call { +func (_e *MockInterface_Expecter) Write(out any) *MockInterface_Write_Call { return &MockInterface_Write_Call{Call: _e.mock.On("Write", out)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/infrastructure/browser_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/infrastructure/browser_mock/mocks.go index 570da4f6..6cd4837e 100644 --- a/mocks/github.com/int128/kubelogin/pkg/infrastructure/browser_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/infrastructure/browser_mock/mocks.go @@ -61,7 +61,7 @@ type MockInterface_Open_Call struct { // Open is a helper method to define mock.On call // - url string -func (_e *MockInterface_Expecter) Open(url interface{}) *MockInterface_Open_Call { +func (_e *MockInterface_Expecter) Open(url any) *MockInterface_Open_Call { return &MockInterface_Open_Call{Call: _e.mock.On("Open", url)} } @@ -114,7 +114,7 @@ type MockInterface_OpenCommand_Call struct { // - ctx context.Context // - url string // - command string -func (_e *MockInterface_Expecter) OpenCommand(ctx interface{}, url interface{}, command interface{}) *MockInterface_OpenCommand_Call { +func (_e *MockInterface_Expecter) OpenCommand(ctx any, url any, command any) *MockInterface_OpenCommand_Call { return &MockInterface_OpenCommand_Call{Call: _e.mock.On("OpenCommand", ctx, url, command)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/infrastructure/logger_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/infrastructure/logger_mock/mocks.go index 0bcf7838..1796ec9a 100644 --- a/mocks/github.com/int128/kubelogin/pkg/infrastructure/logger_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/infrastructure/logger_mock/mocks.go @@ -50,7 +50,7 @@ type MockInterface_AddFlags_Call struct { // AddFlags is a helper method to define mock.On call // - f *pflag.FlagSet -func (_e *MockInterface_Expecter) AddFlags(f interface{}) *MockInterface_AddFlags_Call { +func (_e *MockInterface_Expecter) AddFlags(f any) *MockInterface_AddFlags_Call { return &MockInterface_AddFlags_Call{Call: _e.mock.On("AddFlags", f)} } @@ -101,7 +101,7 @@ type MockInterface_IsEnabled_Call struct { // IsEnabled is a helper method to define mock.On call // - level int -func (_e *MockInterface_Expecter) IsEnabled(level interface{}) *MockInterface_IsEnabled_Call { +func (_e *MockInterface_Expecter) IsEnabled(level any) *MockInterface_IsEnabled_Call { return &MockInterface_IsEnabled_Call{Call: _e.mock.On("IsEnabled", level)} } @@ -147,9 +147,9 @@ type MockInterface_Printf_Call struct { // Printf is a helper method to define mock.On call // - format string // - args ...interface{} -func (_e *MockInterface_Expecter) Printf(format interface{}, args ...interface{}) *MockInterface_Printf_Call { +func (_e *MockInterface_Expecter) Printf(format any, args ...any) *MockInterface_Printf_Call { return &MockInterface_Printf_Call{Call: _e.mock.On("Printf", - append([]interface{}{format}, args...)...)} + append([]any{format}, args...)...)} } func (_c *MockInterface_Printf_Call) Run(run func(format string, args ...interface{})) *MockInterface_Printf_Call { @@ -208,7 +208,7 @@ type MockInterface_V_Call struct { // V is a helper method to define mock.On call // - level int -func (_e *MockInterface_Expecter) V(level interface{}) *MockInterface_V_Call { +func (_e *MockInterface_Expecter) V(level any) *MockInterface_V_Call { return &MockInterface_V_Call{Call: _e.mock.On("V", level)} } @@ -281,9 +281,9 @@ type MockVerbose_Infof_Call struct { // Infof is a helper method to define mock.On call // - format string // - args ...interface{} -func (_e *MockVerbose_Expecter) Infof(format interface{}, args ...interface{}) *MockVerbose_Infof_Call { +func (_e *MockVerbose_Expecter) Infof(format any, args ...any) *MockVerbose_Infof_Call { return &MockVerbose_Infof_Call{Call: _e.mock.On("Infof", - append([]interface{}{format}, args...)...)} + append([]any{format}, args...)...)} } func (_c *MockVerbose_Infof_Call) Run(run func(format string, args ...interface{})) *MockVerbose_Infof_Call { @@ -362,9 +362,9 @@ type mockgoLogger_Printf_Call struct { // Printf is a helper method to define mock.On call // - format string // - v ...interface{} -func (_e *mockgoLogger_Expecter) Printf(format interface{}, v ...interface{}) *mockgoLogger_Printf_Call { +func (_e *mockgoLogger_Expecter) Printf(format any, v ...any) *mockgoLogger_Printf_Call { return &mockgoLogger_Printf_Call{Call: _e.mock.On("Printf", - append([]interface{}{format}, v...)...)} + append([]any{format}, v...)...)} } func (_c *mockgoLogger_Printf_Call) Run(run func(format string, v ...interface{})) *mockgoLogger_Printf_Call { diff --git a/mocks/github.com/int128/kubelogin/pkg/infrastructure/reader_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/infrastructure/reader_mock/mocks.go index 4f3c2701..bf20e312 100644 --- a/mocks/github.com/int128/kubelogin/pkg/infrastructure/reader_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/infrastructure/reader_mock/mocks.go @@ -68,7 +68,7 @@ type MockInterface_ReadPassword_Call struct { // ReadPassword is a helper method to define mock.On call // - prompt string -func (_e *MockInterface_Expecter) ReadPassword(prompt interface{}) *MockInterface_ReadPassword_Call { +func (_e *MockInterface_Expecter) ReadPassword(prompt any) *MockInterface_ReadPassword_Call { return &MockInterface_ReadPassword_Call{Call: _e.mock.On("ReadPassword", prompt)} } @@ -128,7 +128,7 @@ type MockInterface_ReadString_Call struct { // ReadString is a helper method to define mock.On call // - prompt string -func (_e *MockInterface_Expecter) ReadString(prompt interface{}) *MockInterface_ReadString_Call { +func (_e *MockInterface_Expecter) ReadString(prompt any) *MockInterface_ReadString_Call { return &MockInterface_ReadString_Call{Call: _e.mock.On("ReadString", prompt)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/infrastructure/stdio_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/infrastructure/stdio_mock/mocks.go index f1d838f3..f4fd85c6 100644 --- a/mocks/github.com/int128/kubelogin/pkg/infrastructure/stdio_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/infrastructure/stdio_mock/mocks.go @@ -68,7 +68,7 @@ type MockStdout_Write_Call struct { // Write is a helper method to define mock.On call // - p []byte -func (_e *MockStdout_Expecter) Write(p interface{}) *MockStdout_Write_Call { +func (_e *MockStdout_Expecter) Write(p any) *MockStdout_Write_Call { return &MockStdout_Write_Call{Call: _e.mock.On("Write", p)} } @@ -155,7 +155,7 @@ type MockStdin_Read_Call struct { // Read is a helper method to define mock.On call // - p []byte -func (_e *MockStdin_Expecter) Read(p interface{}) *MockStdin_Read_Call { +func (_e *MockStdin_Expecter) Read(p any) *MockStdin_Read_Call { return &MockStdin_Read_Call{Call: _e.mock.On("Read", p)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/kubeconfig/loader_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/kubeconfig/loader_mock/mocks.go index 91b23e35..95c0e0f6 100644 --- a/mocks/github.com/int128/kubelogin/pkg/kubeconfig/loader_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/kubeconfig/loader_mock/mocks.go @@ -73,7 +73,7 @@ type MockInterface_GetCurrentAuthProvider_Call struct { // - explicitFilename string // - contextName kubeconfig.ContextName // - userName kubeconfig.UserName -func (_e *MockInterface_Expecter) GetCurrentAuthProvider(explicitFilename interface{}, contextName interface{}, userName interface{}) *MockInterface_GetCurrentAuthProvider_Call { +func (_e *MockInterface_Expecter) GetCurrentAuthProvider(explicitFilename any, contextName any, userName any) *MockInterface_GetCurrentAuthProvider_Call { return &MockInterface_GetCurrentAuthProvider_Call{Call: _e.mock.On("GetCurrentAuthProvider", explicitFilename, contextName, userName)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/kubeconfig/writer_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/kubeconfig/writer_mock/mocks.go index 95d506b8..f0082f15 100644 --- a/mocks/github.com/int128/kubelogin/pkg/kubeconfig/writer_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/kubeconfig/writer_mock/mocks.go @@ -60,7 +60,7 @@ type MockInterface_UpdateAuthProvider_Call struct { // UpdateAuthProvider is a helper method to define mock.On call // - p kubeconfig.AuthProvider -func (_e *MockInterface_Expecter) UpdateAuthProvider(p interface{}) *MockInterface_UpdateAuthProvider_Call { +func (_e *MockInterface_Expecter) UpdateAuthProvider(p any) *MockInterface_UpdateAuthProvider_Call { return &MockInterface_UpdateAuthProvider_Call{Call: _e.mock.On("UpdateAuthProvider", p)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/oidc/client_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/oidc/client_mock/mocks.go index effdf87c..6a3b163c 100644 --- a/mocks/github.com/int128/kubelogin/pkg/oidc/client_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/oidc/client_mock/mocks.go @@ -78,7 +78,7 @@ type MockInterface_ExchangeAuthCode_Call struct { // ExchangeAuthCode is a helper method to define mock.On call // - ctx context.Context // - in client.ExchangeAuthCodeInput -func (_e *MockInterface_Expecter) ExchangeAuthCode(ctx interface{}, in interface{}) *MockInterface_ExchangeAuthCode_Call { +func (_e *MockInterface_Expecter) ExchangeAuthCode(ctx any, in any) *MockInterface_ExchangeAuthCode_Call { return &MockInterface_ExchangeAuthCode_Call{Call: _e.mock.On("ExchangeAuthCode", ctx, in)} } @@ -146,7 +146,7 @@ type MockInterface_ExchangeDeviceCode_Call struct { // ExchangeDeviceCode is a helper method to define mock.On call // - ctx context.Context // - authResponse *oauth2dev.AuthorizationResponse -func (_e *MockInterface_Expecter) ExchangeDeviceCode(ctx interface{}, authResponse interface{}) *MockInterface_ExchangeDeviceCode_Call { +func (_e *MockInterface_Expecter) ExchangeDeviceCode(ctx any, authResponse any) *MockInterface_ExchangeDeviceCode_Call { return &MockInterface_ExchangeDeviceCode_Call{Call: _e.mock.On("ExchangeDeviceCode", ctx, authResponse)} } @@ -202,7 +202,7 @@ type MockInterface_GetAuthCodeURL_Call struct { // GetAuthCodeURL is a helper method to define mock.On call // - in client.AuthCodeURLInput -func (_e *MockInterface_Expecter) GetAuthCodeURL(in interface{}) *MockInterface_GetAuthCodeURL_Call { +func (_e *MockInterface_Expecter) GetAuthCodeURL(in any) *MockInterface_GetAuthCodeURL_Call { return &MockInterface_GetAuthCodeURL_Call{Call: _e.mock.On("GetAuthCodeURL", in)} } @@ -264,7 +264,7 @@ type MockInterface_GetDeviceAuthorization_Call struct { // GetDeviceAuthorization is a helper method to define mock.On call // - ctx context.Context -func (_e *MockInterface_Expecter) GetDeviceAuthorization(ctx interface{}) *MockInterface_GetDeviceAuthorization_Call { +func (_e *MockInterface_Expecter) GetDeviceAuthorization(ctx any) *MockInterface_GetDeviceAuthorization_Call { return &MockInterface_GetDeviceAuthorization_Call{Call: _e.mock.On("GetDeviceAuthorization", ctx)} } @@ -328,7 +328,7 @@ type MockInterface_GetTokenByAuthCode_Call struct { // - ctx context.Context // - in client.GetTokenByAuthCodeInput // - localServerReadyChan chan<- string -func (_e *MockInterface_Expecter) GetTokenByAuthCode(ctx interface{}, in interface{}, localServerReadyChan interface{}) *MockInterface_GetTokenByAuthCode_Call { +func (_e *MockInterface_Expecter) GetTokenByAuthCode(ctx any, in any, localServerReadyChan any) *MockInterface_GetTokenByAuthCode_Call { return &MockInterface_GetTokenByAuthCode_Call{Call: _e.mock.On("GetTokenByAuthCode", ctx, in, localServerReadyChan)} } @@ -401,7 +401,7 @@ type MockInterface_GetTokenByClientCredentials_Call struct { // GetTokenByClientCredentials is a helper method to define mock.On call // - ctx context.Context // - in client.GetTokenByClientCredentialsInput -func (_e *MockInterface_Expecter) GetTokenByClientCredentials(ctx interface{}, in interface{}) *MockInterface_GetTokenByClientCredentials_Call { +func (_e *MockInterface_Expecter) GetTokenByClientCredentials(ctx any, in any) *MockInterface_GetTokenByClientCredentials_Call { return &MockInterface_GetTokenByClientCredentials_Call{Call: _e.mock.On("GetTokenByClientCredentials", ctx, in)} } @@ -470,7 +470,7 @@ type MockInterface_GetTokenByROPC_Call struct { // - ctx context.Context // - username string // - password string -func (_e *MockInterface_Expecter) GetTokenByROPC(ctx interface{}, username interface{}, password interface{}) *MockInterface_GetTokenByROPC_Call { +func (_e *MockInterface_Expecter) GetTokenByROPC(ctx any, username any, password any) *MockInterface_GetTokenByROPC_Call { return &MockInterface_GetTokenByROPC_Call{Call: _e.mock.On("GetTokenByROPC", ctx, username, password)} } @@ -587,7 +587,7 @@ type MockInterface_Refresh_Call struct { // Refresh is a helper method to define mock.On call // - ctx context.Context // - refreshToken string -func (_e *MockInterface_Expecter) Refresh(ctx interface{}, refreshToken interface{}) *MockInterface_Refresh_Call { +func (_e *MockInterface_Expecter) Refresh(ctx any, refreshToken any) *MockInterface_Refresh_Call { return &MockInterface_Refresh_Call{Call: _e.mock.On("Refresh", ctx, refreshToken)} } @@ -683,7 +683,7 @@ type MockFactoryInterface_New_Call struct { // - ctx context.Context // - prov oidc.Provider // - tlsClientConfig tlsclientconfig.Config -func (_e *MockFactoryInterface_Expecter) New(ctx interface{}, prov interface{}, tlsClientConfig interface{}) *MockFactoryInterface_New_Call { +func (_e *MockFactoryInterface_Expecter) New(ctx any, prov any, tlsClientConfig any) *MockFactoryInterface_New_Call { return &MockFactoryInterface_New_Call{Call: _e.mock.On("New", ctx, prov, tlsClientConfig)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/testing/logger_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/testing/logger_mock/mocks.go index 4a8a11dc..cf23684e 100644 --- a/mocks/github.com/int128/kubelogin/pkg/testing/logger_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/testing/logger_mock/mocks.go @@ -54,9 +54,9 @@ type mocktestingLogger_Logf_Call struct { // Logf is a helper method to define mock.On call // - format string // - v ...interface{} -func (_e *mocktestingLogger_Expecter) Logf(format interface{}, v ...interface{}) *mocktestingLogger_Logf_Call { +func (_e *mocktestingLogger_Expecter) Logf(format any, v ...any) *mocktestingLogger_Logf_Call { return &mocktestingLogger_Logf_Call{Call: _e.mock.On("Logf", - append([]interface{}{format}, v...)...)} + append([]any{format}, v...)...)} } func (_c *mocktestingLogger_Logf_Call) Run(run func(format string, v ...interface{})) *mocktestingLogger_Logf_Call { diff --git a/mocks/github.com/int128/kubelogin/pkg/tlsclientconfig/loader_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/tlsclientconfig/loader_mock/mocks.go index 17e764ca..4fd818dc 100644 --- a/mocks/github.com/int128/kubelogin/pkg/tlsclientconfig/loader_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/tlsclientconfig/loader_mock/mocks.go @@ -73,7 +73,7 @@ type MockInterface_Load_Call struct { // Load is a helper method to define mock.On call // - config tlsclientconfig.Config -func (_e *MockInterface_Expecter) Load(config interface{}) *MockInterface_Load_Call { +func (_e *MockInterface_Expecter) Load(config any) *MockInterface_Load_Call { return &MockInterface_Load_Call{Call: _e.mock.On("Load", config)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/tokencache/repository_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/tokencache/repository_mock/mocks.go index aa650757..dd012fbf 100644 --- a/mocks/github.com/int128/kubelogin/pkg/tokencache/repository_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/tokencache/repository_mock/mocks.go @@ -63,7 +63,7 @@ type MockInterface_DeleteAll_Call struct { // DeleteAll is a helper method to define mock.On call // - config tokencache.Config -func (_e *MockInterface_Expecter) DeleteAll(config interface{}) *MockInterface_DeleteAll_Call { +func (_e *MockInterface_Expecter) DeleteAll(config any) *MockInterface_DeleteAll_Call { return &MockInterface_DeleteAll_Call{Call: _e.mock.On("DeleteAll", config)} } @@ -126,7 +126,7 @@ type MockInterface_FindByKey_Call struct { // FindByKey is a helper method to define mock.On call // - config tokencache.Config // - key tokencache.Key -func (_e *MockInterface_Expecter) FindByKey(config interface{}, key interface{}) *MockInterface_FindByKey_Call { +func (_e *MockInterface_Expecter) FindByKey(config any, key any) *MockInterface_FindByKey_Call { return &MockInterface_FindByKey_Call{Call: _e.mock.On("FindByKey", config, key)} } @@ -194,7 +194,7 @@ type MockInterface_Lock_Call struct { // Lock is a helper method to define mock.On call // - config tokencache.Config // - key tokencache.Key -func (_e *MockInterface_Expecter) Lock(config interface{}, key interface{}) *MockInterface_Lock_Call { +func (_e *MockInterface_Expecter) Lock(config any, key any) *MockInterface_Lock_Call { return &MockInterface_Lock_Call{Call: _e.mock.On("Lock", config, key)} } @@ -252,7 +252,7 @@ type MockInterface_Save_Call struct { // - config tokencache.Config // - key tokencache.Key // - tokenSet oidc.TokenSet -func (_e *MockInterface_Expecter) Save(config interface{}, key interface{}, tokenSet interface{}) *MockInterface_Save_Call { +func (_e *MockInterface_Expecter) Save(config any, key any, tokenSet any) *MockInterface_Save_Call { return &MockInterface_Save_Call{Call: _e.mock.On("Save", config, key, tokenSet)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/usecases/authentication_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/usecases/authentication_mock/mocks.go index 6e9a6312..5d0b34bf 100644 --- a/mocks/github.com/int128/kubelogin/pkg/usecases/authentication_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/usecases/authentication_mock/mocks.go @@ -74,7 +74,7 @@ type MockInterface_Do_Call struct { // Do is a helper method to define mock.On call // - ctx context.Context // - in authentication.Input -func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call { +func (_e *MockInterface_Expecter) Do(ctx any, in any) *MockInterface_Do_Call { return &MockInterface_Do_Call{Call: _e.mock.On("Do", ctx, in)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/usecases/clean_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/usecases/clean_mock/mocks.go index 711d35ac..d780b2e6 100644 --- a/mocks/github.com/int128/kubelogin/pkg/usecases/clean_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/usecases/clean_mock/mocks.go @@ -63,7 +63,7 @@ type MockInterface_Do_Call struct { // Do is a helper method to define mock.On call // - ctx context.Context // - in clean.Input -func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call { +func (_e *MockInterface_Expecter) Do(ctx any, in any) *MockInterface_Do_Call { return &MockInterface_Do_Call{Call: _e.mock.On("Do", ctx, in)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/usecases/credentialplugin_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/usecases/credentialplugin_mock/mocks.go index 29fdc4db..62f7a034 100644 --- a/mocks/github.com/int128/kubelogin/pkg/usecases/credentialplugin_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/usecases/credentialplugin_mock/mocks.go @@ -63,7 +63,7 @@ type MockInterface_Do_Call struct { // Do is a helper method to define mock.On call // - ctx context.Context // - in credentialplugin.Input -func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call { +func (_e *MockInterface_Expecter) Do(ctx any, in any) *MockInterface_Do_Call { return &MockInterface_Do_Call{Call: _e.mock.On("Do", ctx, in)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/usecases/setup_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/usecases/setup_mock/mocks.go index 04687afc..967e5e19 100644 --- a/mocks/github.com/int128/kubelogin/pkg/usecases/setup_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/usecases/setup_mock/mocks.go @@ -63,7 +63,7 @@ type MockInterface_Do_Call struct { // Do is a helper method to define mock.On call // - ctx context.Context // - in setup.Input -func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call { +func (_e *MockInterface_Expecter) Do(ctx any, in any) *MockInterface_Do_Call { return &MockInterface_Do_Call{Call: _e.mock.On("Do", ctx, in)} } diff --git a/mocks/github.com/int128/kubelogin/pkg/usecases/standalone_mock/mocks.go b/mocks/github.com/int128/kubelogin/pkg/usecases/standalone_mock/mocks.go index 01bdcf44..cd018c82 100644 --- a/mocks/github.com/int128/kubelogin/pkg/usecases/standalone_mock/mocks.go +++ b/mocks/github.com/int128/kubelogin/pkg/usecases/standalone_mock/mocks.go @@ -63,7 +63,7 @@ type MockInterface_Do_Call struct { // Do is a helper method to define mock.On call // - ctx context.Context // - in standalone.Input -func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call { +func (_e *MockInterface_Expecter) Do(ctx any, in any) *MockInterface_Do_Call { return &MockInterface_Do_Call{Call: _e.mock.On("Do", ctx, in)} }